Changeset 10376
- Timestamp:
 - Jan 11, 2004, 12:52:18 PM (22 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 2 added
 - 1 edited
 
- 
          
  include/memmap.h (added)
 - 
          
  src/kernel32/mmap.h (modified) (4 diffs)
 - 
          
  src/kernel32/mmapnotify.cpp (added)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/kernel32/mmap.h
r10357 r10376 1 /* $Id: mmap.h,v 1.3 0 2003-12-12 11:09:37sandervl Exp $ */1 /* $Id: mmap.h,v 1.31 2004-01-11 11:52:18 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 PAGEVIEW_GUARD 47 47 } PAGEVIEW; 48 49 #ifndef _DEF_PFNEXCEPTIONNOTIFY 50 #define _DEF_PFNEXCEPTIONNOTIFY 51 typedef BOOL (WIN32API * PFNEXCEPTIONNOTIFY)(LPVOID lpBase, ULONG offset, BOOL fWriteAccess, DWORD dwSize, DWORD dwUserData); 52 #endif 48 53 49 54 class Win32MemMapView; … … 247 252 }; 248 253 //****************************************************************************** 254 //Notification memory mapped file Class 255 //****************************************************************************** 256 class Win32MemMapNotify 257 { 258 public: 259 Win32MemMapNotify(PFNEXCEPTIONNOTIFY pfnNotify, LPVOID lpViewaddr, ULONG size, ULONG dwUserData); 260 ~Win32MemMapNotify(); 261 262 LPVOID getViewAddr() { return pMapView; }; 263 DWORD getSize() { return mSize; }; 264 DWORD getUserData() { return dwUserData; }; 265 266 BOOL notify(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess); 267 268 static Win32MemMapNotify *findMapByView(ULONG address, 269 ULONG *offset, 270 ULONG accessType); 271 static Win32MemMapNotify *findView(ULONG address); 272 273 274 protected: 275 ULONG mSize, dwUserData; 276 LPVOID pMapView; 277 PFNEXCEPTIONNOTIFY pfnNotify; 278 279 private: 280 static Win32MemMapNotify *mapviews; 281 Win32MemMapNotify *next; 282 }; 283 //****************************************************************************** 249 284 //****************************************************************************** 250 285 … … 254 289 255 290 void InitializeMemMaps(); 291 void FinalizeMemMaps(); 256 292 257 293 #endif //__MMAP_H__  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  