source: trunk/src/kernel32/hmevent.h

Last change on this file was 9748, checked in by sandervl, 23 years ago

Support DuplicateHandle for threads; cleaned up semaphore code

File size: 2.2 KB
RevLine 
[9748]1/* $Id: hmevent.h,v 1.5 2003-02-04 11:28:57 sandervl Exp $ */
[278]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"
[768]24#include "HMOpen32.h"
[278]25
26
27/*****************************************************************************
28 * Structures *
29 *****************************************************************************/
30
[768]31class HMDeviceEventClass : public HMDeviceOpen32Class
[278]32{
33public:
[768]34 HMDeviceEventClass(LPCSTR lpDeviceName) : HMDeviceOpen32Class(lpDeviceName) {}
[278]35
[6049]36 /* this is a handler method for calls to CreateEvent() */
[278]37 virtual DWORD CreateEvent (PHMHANDLEDATA pHMHandleData,
38 LPSECURITY_ATTRIBUTES lpsa,
39 BOOL fManualReset,
40 BOOL fInitialState,
41 LPCTSTR lpszEventName);
[6049]42
43 /* this is a handler method for calls to OpenEvent() */
[278]44 virtual DWORD OpenEvent (PHMHANDLEDATA pHMHandleData,
45 BOOL fInheritHandle,
46 LPCTSTR lpszEventName);
47
[6049]48 /* this is a handle method for calls to ResetEvent() */
[278]49 virtual BOOL ResetEvent (PHMHANDLEDATA pHMHandleData);
50
[6049]51 /* this is a handle method for calls to SetEvent() */
[278]52 virtual BOOL SetEvent (PHMHANDLEDATA pHMHandleData);
53
[6049]54 /* this is a handle method for calls to PulseEvent() */
[278]55 virtual BOOL PulseEvent (PHMHANDLEDATA pHMHandleData);
56};
57
58
59#endif /* _HM_DEVICE_EVENT_H_ */
60
Note: See TracBrowser for help on using the repository browser.