Ignore:
Timestamp:
Mar 6, 2003, 11:44:34 AM (23 years ago)
Author:
sandervl
Message:

cleanup/resync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/mmap.h

    r9824 r9911  
    1 /* $Id: mmap.h,v 1.25 2003-02-18 18:48:55 sandervl Exp $ */
     1/* $Id: mmap.h,v 1.26 2003-03-06 10:44:34 sandervl Exp $ */
    22
    33/*
     
    2828#define NRPAGES_TOCOMMIT        16
    2929
    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
    3337
    3438class Win32MemMapView;
     
    4549  ~Win32MemMap();
    4650
    47   BOOL   Init(DWORD aMSize=0);
    48    BOOL   flushView(ULONG offset, ULONG cbFlush);
    49   LPVOID mapViewOfFile(ULONG size, ULONG offset, ULONG fdwAccess);
    50   BOOL   unmapViewOfFile(LPVOID addr);
     51virtual BOOL   Init(DWORD aMSize=0);
     52virtual BOOL   flushView(ULONG viewaddr, ULONG offset, ULONG cbFlush);
     53virtual LPVOID mapViewOfFile(ULONG size, ULONG offset, ULONG fdwAccess);
     54virtual BOOL   unmapViewOfFile(LPVOID addr);
    5155
    5256   HFILE  getFileHandle()                { return hMemFile; };
     
    6367   void   Release();
    6468
    65    BOOL   commitPage(ULONG offset, BOOL fWriteAccess, int nrpages = NRPAGES_TOCOMMIT);
     69virtual BOOL   invalidatePages(ULONG offset, ULONG size);
     70virtual BOOL   commitPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages = NRPAGES_TOCOMMIT);
     71virtual BOOL   commitGuardPage(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess);
     72        BOOL   commitRange(ULONG ulFaultAddr, ULONG offset, BOOL fWriteAccess, int nrpages);
    6673
    6774static Win32MemMap *findMap(LPSTR lpszName);
Note: See TracChangeset for help on using the changeset viewer.