source: trunk/src/kernel32/hmmmap.h@ 673

Last change on this file since 673 was 673, checked in by phaller, 26 years ago

Add: HMDeviceMemMapClass fixed

File size: 4.0 KB
Line 
1/* $Id: hmmmap.h,v 1.2 1999-08-25 08:55:19 phaller Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 * Win32 Unified Handle Manager for OS/2
6 * 1999/06/17 PH Patrick Haller (phaller@gmx.net)
7 */
8
9#ifndef _HM_DEVICE_MEMMAP_H_
10#define _HM_DEVICE_MEMMAP_H_
11
12
13/*****************************************************************************
14 * Remark *
15 *****************************************************************************
16 */
17
18
19/*****************************************************************************
20 * Includes *
21 *****************************************************************************/
22
23#include "HMDevice.h"
24#include "HMObjects.h"
25
26
27/*****************************************************************************
28 * Structures *
29 *****************************************************************************/
30
31class HMDeviceMemMapClass : public HMDeviceKernelObjectClass
32{
33public:
34 HMDeviceMemMapClass(LPCSTR lpDeviceName) : HMDeviceKernelObjectClass(lpDeviceName) {}
35
36 // identify a memmap object by its base address
37 static int findByBaseAddress(LPVOID lpBaseAddress);
38
39
40 /* this is a handler method for calls to CreateFileMapping() */
41 virtual DWORD CreateFileMapping (PHMHANDLEDATA pHMHandleData,
42 HANDLE hFile,
43 LPSECURITY_ATTRIBUTES lpFileMappingAttributes,
44 DWORD flProtect,
45 DWORD dwMaximumSizeHigh,
46 DWORD dwMaximumSizeLow,
47 LPCSTR lpName);
48
49 /* this is a handler method for calls to OpenFileMapping() */
50 virtual DWORD OpenFileMapping (PHMHANDLEDATA pHMHandleData,
51 DWORD access, /* [in] Access mode */
52 BOOL fInherit,
53 LPCSTR lpName);
54
55 /* this is a handler method for calls to MapViewOfFile() */
56 virtual LPVOID MapViewOfFile (PHMHANDLEDATA pHMHandleData,
57 DWORD dwDesiredAccess,
58 DWORD dwFileOffsetHigh,
59 DWORD dwFileOffsetLow,
60 DWORD dwNumberOfBytesToMap);
61
62 /* this is a handler method for calls to MapViewOfFileEx() */
63 virtual LPVOID MapViewOfFileEx (PHMHANDLEDATA pHMHandleData,
64 DWORD dwDesiredAccess,
65 DWORD dwFileOffsetHigh,
66 DWORD dwFileOffsetLow,
67 DWORD dwNumberOfBytesToMap,
68 LPVOID lpBaseAddress);
69
70 /* this is a handler method for calls to UnmapViewOfFile() */
71 virtual BOOL UnmapViewOfFile (PHMHANDLEDATA pHMHandleData,
72 LPVOID lpBaseAddress);
73
74 /* this is a handler method for calls to FlushViewOfFile() */
75 virtual BOOL FlushViewOfFile (PHMHANDLEDATA pHMHandleData,
76 LPVOID lpBaseAddress,
77 DWORD dwNumberOfBytesToFlush);
78
79
80 /* this is a handler method for calls to CloseHandle() */
81 virtual DWORD CloseHandle(PHMHANDLEDATA pHMHandleData);
82};
83
84
85#endif /* _HM_DEVICE_MEMMAP_H_ */
86
Note: See TracBrowser for help on using the repository browser.