source: trunk/src/kernel32/hmparport.h@ 7298

Last change on this file since 7298 was 7298, checked in by phaller, 24 years ago

parport support

File size: 2.5 KB
Line 
1/* $Id: hmparport.h,v 1.1 2001-11-08 14:49:27 phaller Exp $ */
2
3/*
4 * Project Odin Software License can be found in LICENSE.TXT
5 *
6 * Win32 Parallel Port device access class
7 *
8 * 2001 Patrick Haller <patrick.haller@innotek.de>
9 *
10 */
11
12#ifndef _HM_PARPORT_H_
13#define _HM_PARPORT_H_
14
15class HMDeviceParPortClass : public HMDeviceHandler
16{
17 public:
18
19 HMDeviceParPortClass(LPCSTR lpDeviceName);
20
21 //checks if device name belongs to this class
22 virtual BOOL FindDevice(LPCSTR lpClassDevName, LPCSTR lpDeviceName, int namelength);
23
24 /* this is the handler method for calls to CreateFile() */
25 virtual DWORD CreateFile (LPCSTR lpFileName,
26 PHMHANDLEDATA pHMHandleData,
27 PVOID lpSecurityAttributes,
28 PHMHANDLEDATA pHMHandleDataTemplate);
29
30 /* this is the handler method for calls to CloseHandle() */
31 virtual BOOL CloseHandle(PHMHANDLEDATA pHMHandleData);
32
33 /* this is a handler method for calls to ReadFile() */
34 virtual BOOL ReadFile (PHMHANDLEDATA pHMHandleData,
35 LPCVOID lpBuffer,
36 DWORD nNumberOfBytesToRead,
37 LPDWORD lpNumberOfBytesRead,
38 LPOVERLAPPED lpOverlapped);
39
40 /* this is a handler method for calls to ReadFileEx() */
41 virtual BOOL ReadFileEx(PHMHANDLEDATA pHMHandleData,
42 LPVOID lpBuffer,
43 DWORD nNumberOfBytesToRead,
44 LPOVERLAPPED lpOverlapped,
45 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
46
47 /* this is a handler method for calls to WriteFile() */
48 virtual BOOL WriteFile (PHMHANDLEDATA pHMHandleData,
49 LPCVOID lpBuffer,
50 DWORD nNumberOfBytesToWrite,
51 LPDWORD lpNumberOfBytesWritten,
52 LPOVERLAPPED lpOverlapped);
53
54 /* this is a handler method for calls to WriteFileEx() */
55 virtual BOOL WriteFileEx(PHMHANDLEDATA pHMHandleData,
56 LPVOID lpBuffer,
57 DWORD nNumberOfBytesToWrite,
58 LPOVERLAPPED lpOverlapped,
59 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine);
60
61 private:
62};
63
64
65#endif // _HM_PARPORT_H_
Note: See TracBrowser for help on using the repository browser.