Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
Declare Function MapViewOfFile Lib "kernel32" (ByVal hFileMappingObject As IntPtr, ByVal dwDesiredAccess As UInt32, ByVal dwFileOffsetHigh As UInt32, ByVal dwFileOffsetLow As UInt32, ByVal dwNumberOfBytesToMap As UInt32) As UInt32
Sample Code:
Please add some!
VB .Net Sample Code:
Declare Function MapViewOfFile Lib "kernel32" (ByVal hFileMappingObject As IntPtr, ByVal dwDesiredAccess As UInt32, ByVal dwFileOffsetHigh As UInt32, ByVal dwFileOffsetLow As UInt32, ByVal dwNumberOfBytesToMap As UInt32) As UInt32
Alternative Managed API:
Do you know one? Please contribute it!
Public Structure SECURITY_ATTRIBUTES
Public lLength As Long
Public lSecurityDescriptor As Long
Public lInhertitHandle As Long
End Structure
Dim SecAttrib As SECURITY_ATTRIBUTES
Dim nAckEvent As Integer
Dim nReadyEvent As Integer
Dim nSharedFile As Long
Dim nSharedMem As Long
Dim nSecurityDesc As Integer
Public Const GPTR As Long = &H40
Public Const SECURITY_DESCRIPTOR_REVISION As Long = (1)
Public Const SECURITY_DESCRIPTOR_MIN_LENGTH As Long = (20)
Public Const PAGE_READWRITE As Int32 = &H4
Public Const FILE_MAP_READ As Int32 = &H40&, 512)
Specifies the desired access type to the view of memory mapped file
3/16/2007 7:42:05 AM - anonymous
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).