Rev | Line | |
---|
[9748] | 1 | /* $Id: hmmutex.h,v 1.5 2003-02-04 11:28:59 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_MUTEX_H_
|
---|
| 10 | #define _HM_DEVICE_MUTEX_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] | 31 | class HMDeviceMutexClass : public HMDeviceOpen32Class
|
---|
[278] | 32 | {
|
---|
| 33 | public:
|
---|
[768] | 34 | HMDeviceMutexClass(LPCSTR lpDeviceName) : HMDeviceOpen32Class(lpDeviceName) {}
|
---|
[278] | 35 |
|
---|
[6049] | 36 | /* this is a handler method for calls to CreateMutex() */
|
---|
[278] | 37 | virtual DWORD CreateMutex (PHMHANDLEDATA pHMHandleData,
|
---|
| 38 | LPSECURITY_ATTRIBUTES lpsa,
|
---|
| 39 | BOOL fInitialOwner,
|
---|
| 40 | LPCTSTR lpszMutexName);
|
---|
| 41 |
|
---|
[6049] | 42 | /* this is a handler method for calls to OpenMutex() */
|
---|
[278] | 43 | virtual DWORD OpenMutex (PHMHANDLEDATA pHMHandleData,
|
---|
| 44 | BOOL fInheritHandle,
|
---|
| 45 | LPCTSTR lpszMutexName);
|
---|
[6049] | 46 |
|
---|
| 47 | /* this is a handle method for calls to ReleaseMutex() */
|
---|
[278] | 48 | virtual BOOL ReleaseMutex(PHMHANDLEDATA pHMHandleData);
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | #endif /* _HM_DEVICE_MUTEX_H_ */
|
---|
| 53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.