source: trunk/src/kernel32/hmevent.h@ 6055

Last change on this file since 6055 was 6049, checked in by sandervl, 24 years ago

semaphore rewrite (not activated)

File size: 2.8 KB
Line 
1/* $Id: hmevent.h,v 1.3 2001-06-19 10:50:24 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_EVENT_H_
10#define _HM_DEVICE_EVENT_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
31#ifdef USE_OS2SEMAPHORES
32class HMDeviceEventClass : public HMDeviceHandler
33#else
34class HMDeviceEventClass : public HMDeviceOpen32Class
35#endif
36{
37public:
38 HMDeviceEventClass(LPCSTR lpDeviceName) : HMDeviceOpen32Class(lpDeviceName) {}
39
40 /* this is a handler method for calls to CreateEvent() */
41 virtual DWORD CreateEvent (PHMHANDLEDATA pHMHandleData,
42 LPSECURITY_ATTRIBUTES lpsa,
43 BOOL fManualReset,
44 BOOL fInitialState,
45 LPCTSTR lpszEventName);
46
47#ifdef USE_OS2SEMAPHORES
48 virtual BOOL CloseHandle(PHMHANDLEDATA pHMHandleData);
49
50 virtual BOOL DuplicateHandle(PHMHANDLEDATA pHMHandleData, HANDLE srcprocess,
51 PHMHANDLEDATA pHMSrcHandle,
52 HANDLE destprocess,
53 PHANDLE desthandle,
54 DWORD fdwAccess,
55 BOOL fInherit,
56 DWORD fdwOptions,
57 DWORD fdwOdinOptions);
58#endif
59
60 /* this is a handler method for calls to OpenEvent() */
61 virtual DWORD OpenEvent (PHMHANDLEDATA pHMHandleData,
62 BOOL fInheritHandle,
63 LPCTSTR lpszEventName);
64
65 /* this is a handle method for calls to ResetEvent() */
66 virtual BOOL ResetEvent (PHMHANDLEDATA pHMHandleData);
67
68 /* this is a handle method for calls to SetEvent() */
69 virtual BOOL SetEvent (PHMHANDLEDATA pHMHandleData);
70
71 /* this is a handle method for calls to PulseEvent() */
72 virtual BOOL PulseEvent (PHMHANDLEDATA pHMHandleData);
73};
74
75
76#endif /* _HM_DEVICE_EVENT_H_ */
77
Note: See TracBrowser for help on using the repository browser.