Changeset 9911 for trunk/src/kernel32/mmap.h
- Timestamp:
- Mar 6, 2003, 11:44:34 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/mmap.h
r9824 r9911 1 /* $Id: mmap.h,v 1.2 5 2003-02-18 18:48:55sandervl Exp $ */1 /* $Id: mmap.h,v 1.26 2003-03-06 10:44:34 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #define NRPAGES_TOCOMMIT 16 29 29 30 #define MEMMAP_ACCESS_READ 1 31 #define MEMMAP_ACCESS_WRITE 2 32 #define MEMMAP_ACCESS_EXECUTE 4 30 #define MEMMAP_ACCESS_INVALID 0 31 #define MEMMAP_ACCESS_READ 1 32 #define MEMMAP_ACCESS_WRITE 2 33 #define MEMMAP_ACCESS_EXECUTE 4 34 #define MEMMAP_ACCESS_COPYONWRITE 8 35 36 #define MMAP_FLUSHVIEW_ALL 0xFFFFFFFF 33 37 34 38 class Win32MemMapView; … … 45 49 ~Win32MemMap(); 46 50 47 48 BOOL flushView(ULONG offset, ULONG cbFlush);49 50 51 virtual BOOL Init(DWORD aMSize=0); 52 virtual BOOL flushView(ULONG viewaddr, ULONG offset, ULONG cbFlush); 53 virtual LPVOID mapViewOfFile(ULONG size, ULONG offset, ULONG fdwAccess); 54 virtual BOOL unmapViewOfFile(LPVOID addr); 51 55 52 56 HFILE getFileHandle() { return hMemFile; }; … … 63 67 void Release(); 64 68 65 BOOL commitPage(ULONG offset, BOOL fWriteAccess, int nrpages = NRPAGES_TOCOMMIT); 69 virtual BOOL invalidatePages(ULONG offset, ULONG size); 70 virtual BOOL commitPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages = NRPAGES_TOCOMMIT); 71 virtual BOOL commitGuardPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess); 72 BOOL commitRange(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages); 66 73 67 74 static Win32MemMap *findMap(LPSTR lpszName);
Note:
See TracChangeset
for help on using the changeset viewer.