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

Last change on this file since 22018 was 7549, checked in by sandervl, 24 years ago

preliminary changes for new overlapped io framework

File size: 2.2 KB
Line 
1/* $Id: hmstd.h,v 1.2 2001-12-05 14:16:05 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/Ex */
37 virtual BOOL ReadFile (PHMHANDLEDATA pHMHandleData,
38 LPCVOID lpBuffer,
39 DWORD nNumberOfBytesToRead,
40 LPDWORD lpNumberOfBytesRead,
41 LPOVERLAPPED lpOverlapped,
42 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
43
44 /* this is a handler method for calls to WriteFile/Ex */
45 virtual BOOL WriteFile (PHMHANDLEDATA pHMHandleData,
46 LPCVOID lpBuffer,
47 DWORD nNumberOfBytesToWrite,
48 LPDWORD lpNumberOfBytesWritten,
49 LPOVERLAPPED lpOverlapped,
50 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
51
52 /* this is a handler method for calls to GetFileType() */
53 virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData);
54};
55
56
57#endif /* _HM_DEVICE_STANDARD_H_ */
58
Note: See TracBrowser for help on using the repository browser.