Changeset 9824 for trunk/src/kernel32/mmap.h
- Timestamp:
- Feb 18, 2003, 7:48:55 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/mmap.h
r8913 r9824 1 /* $Id: mmap.h,v 1.2 4 2002-07-23 13:51:48sandervl Exp $ */1 /* $Id: mmap.h,v 1.25 2003-02-18 18:48:55 sandervl Exp $ */ 2 2 3 3 /* … … 26 26 27 27 //commit 4 pages at once when the app accesses it 28 #define NRPAGES_TOCOMMIT 1628 #define NRPAGES_TOCOMMIT 16 29 29 30 #define MEMMAP_ACCESS_READ 131 #define MEMMAP_ACCESS_WRITE 230 #define MEMMAP_ACCESS_READ 1 31 #define MEMMAP_ACCESS_WRITE 2 32 32 #define MEMMAP_ACCESS_EXECUTE 4 33 33 … … 48 48 BOOL flushView(ULONG offset, ULONG cbFlush); 49 49 LPVOID mapViewOfFile(ULONG size, ULONG offset, ULONG fdwAccess); 50 BOOL unmapViewOfFile( Win32MemMapView *view);50 BOOL unmapViewOfFile(LPVOID addr); 51 51 52 52 HFILE getFileHandle() { return hMemFile; }; 53 53 LPSTR getMemName() { return lpszMapName; }; 54 54 DWORD getProtFlags() { return mProtFlags; }; 55 BOOL setProtFlags(DWORD dwNewProtect); 55 56 LPVOID getMappingAddr() { return pMapping; }; 56 57 DWORD getProcessId() { return mProcessId;}; … … 65 66 66 67 static Win32MemMap *findMap(LPSTR lpszName); 68 static Win32MemMap *findMapByFile(HANDLE hFile); 67 69 static Win32MemMap *findMap(ULONG address); 68 70 … … 92 94 protected: 93 95 HFILE hMemFile; 96 HFILE hOrgMemFile; 94 97 ULONG mSize; 95 98 ULONG mProtFlags; … … 131 134 132 135 static void deleteViews(Win32MemMap *map); 133 static Win32MemMap *findMapByView(ULONG address, ULONG *offset, ULONG accessType, Win32MemMapView **pView=NULL); 134 static Win32MemMapView *findView(LPVOID address); 136 static Win32MemMap *findMapByView(ULONG address, ULONG *offset = NULL, 137 ULONG accessType = MEMMAP_ACCESS_READ); 138 static Win32MemMapView *findView(ULONG address); 135 139 136 140 #ifdef __DEBUG_ALLOC__
Note:
See TracChangeset
for help on using the changeset viewer.