source: trunk/src/kernel32/hmstd.h@ 5019

Last change on this file since 5019 was 5019, checked in by sandervl, 25 years ago

handle manager class for standard handles added

File size: 2.9 KB
Line 
1/* $Id: hmstd.h,v 1.1 2001-01-23 18:31:26 sandervl 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_STANDARD_H_
10#define _HM_DEVICE_STANDARD_H_
11
12
13/*****************************************************************************
14 * Remark *
15 *****************************************************************************
16 */
17
18
19/*****************************************************************************
20 * Includes *
21 *****************************************************************************/
22
23#include "HMDevice.h"
24#include "HMOpen32.h"
25
26
27/*****************************************************************************
28 * Structures *
29 *****************************************************************************/
30
31class HMDeviceStandardClass : public HMDeviceOpen32Class
32{
33public:
34 HMDeviceStandardClass(LPCSTR lpDeviceName) : HMDeviceOpen32Class(lpDeviceName) {}
35
36 /* this is a handler method for calls to ReadFile() */
37 virtual BOOL ReadFile (PHMHANDLEDATA pHMHandleData,
38 LPCVOID lpBuffer,
39 DWORD nNumberOfBytesToRead,
40 LPDWORD lpNumberOfBytesRead,
41 LPOVERLAPPED lpOverlapped);
42
43 /* this is a handler method for calls to ReadFileEx() */
44 virtual BOOL ReadFileEx(PHMHANDLEDATA pHMHandleData,
45 LPVOID lpBuffer,
46 DWORD nNumberOfBytesToRead,
47 LPOVERLAPPED lpOverlapped,
48 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
49
50 /* this is a handler method for calls to WriteFile() */
51 virtual BOOL WriteFile (PHMHANDLEDATA pHMHandleData,
52 LPCVOID lpBuffer,
53 DWORD nNumberOfBytesToWrite,
54 LPDWORD lpNumberOfBytesWritten,
55 LPOVERLAPPED lpOverlapped);
56
57 /* this is a handler method for calls to WriteFileEx() */
58 virtual BOOL WriteFileEx(PHMHANDLEDATA pHMHandleData,
59 LPVOID lpBuffer,
60 DWORD nNumberOfBytesToWrite,
61 LPOVERLAPPED lpOverlapped,
62 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
63
64 /* this is a handler method for calls to GetFileType() */
65 virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData);
66};
67
68
69#endif /* _HM_DEVICE_STANDARD_H_ */
70
Note: See TracBrowser for help on using the repository browser.