File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,24 @@ public class MemoryAPI {
6969 @ CConstant
7070 public static native int PAGE_WRITECOPY ();
7171
72+ @ CConstant
73+ public static native int FILE_MAP_READ ();
74+
75+ @ CConstant
76+ public static native int FILE_MAP_WRITE ();
77+
7278 /** Creates or opens a named or unnamed file mapping object for a specified file. */
7379 @ CFunction (transition = NO_TRANSITION )
7480 public static native HANDLE CreateFileMappingW (HANDLE hFile , PointerBase lpFileMappingAttributes , int flProtect ,
7581 int dwMaximumSizeHigh , int dwMaximumSizeLow , WCharPointer lpName );
7682
83+ /**
84+ * Maps a view of a file mapping into the address space of a calling process.
85+ */
86+ @ CFunction (transition = NO_TRANSITION )
87+ public static native Pointer MapViewOfFile (HANDLE hFileMappingObject , int dwDesiredAccess , int dwFileOffsetHigh ,
88+ int dwFileOffsetLow , UnsignedWord dwNumberOfBytesToMap );
89+
7790 /** Unmaps a mapped view of a file from the calling process's address space. */
7891 @ CFunction (transition = NO_TRANSITION )
7992 public static native int UnmapViewOfFile (PointerBase lpBaseAddress );
You can’t perform that action at this time.
0 commit comments