ReactOS 0.4.15-dev-7704-gc07eb9f
ATL::CEvent Class Reference

#include <atlsync.h>

Inheritance diagram for ATL::CEvent:
Collaboration diagram for ATL::CEvent:

Private Member Functions

 CEvent ()
 
 CEvent (CEvent &hEvent)
 
 CEvent (BOOL bManualReset, BOOL bInitialState)
 
 CEvent (LPSECURITY_ATTRIBUTES pSecurity, BOOL bManualReset, BOOL bInitialState, LPCTSTR pszName)
 
 CEvent (HANDLE hEvent)
 
BOOL Create (LPSECURITY_ATTRIBUTES pSecurity, BOOL bManualReset, BOOL bInitialState, LPCTSTR pszName)
 
BOOL Open (DWORD dwAccess, BOOL bInheritHandle, LPCTSTR pszName)
 
BOOL Set ()
 
BOOL Reset ()
 
BOOL Pulse ()
 

Additional Inherited Members

- Public Member Functions inherited from ATL::CHandle
 CHandle ()
 
 CHandle (_Inout_ CHandle &handle)
 
 CHandle (_In_ HANDLE handle)
 
 ~CHandle ()
 
CHandleoperator= (_Inout_ CHandle &handle)
 
 operator HANDLE () const
 
void Attach (_In_ HANDLE handle)
 
HANDLE Detach ()
 
void Close ()
 
- Public Attributes inherited from ATL::CHandle
HANDLE m_handle
 

Detailed Description

Definition at line 46 of file atlsync.h.

Constructor & Destructor Documentation

◆ CEvent() [1/5]

ATL::CEvent::CEvent ( )
inlineprivate

Definition at line 48 of file atlsync.h.

49 {
50 }

◆ CEvent() [2/5]

ATL::CEvent::CEvent ( CEvent hEvent)
inlineprivate

Definition at line 52 of file atlsync.h.

53 {
54 }
static HANDLE hEvent
Definition: comm.c:54

◆ CEvent() [3/5]

ATL::CEvent::CEvent ( BOOL  bManualReset,
BOOL  bInitialState 
)
inlineprivate

Definition at line 56 of file atlsync.h.

57 {
58 Create(NULL, bManualReset, bInitialState, NULL);
59 }
@ Create
Definition: registry.c:563
#define NULL
Definition: types.h:112

◆ CEvent() [4/5]

ATL::CEvent::CEvent ( LPSECURITY_ATTRIBUTES  pSecurity,
BOOL  bManualReset,
BOOL  bInitialState,
LPCTSTR  pszName 
)
inlineprivate

Definition at line 61 of file atlsync.h.

62 {
63 Create(pSecurity, bManualReset, bInitialState, pszName);
64 }

◆ CEvent() [5/5]

ATL::CEvent::CEvent ( HANDLE  hEvent)
inlineexplicitprivate

Definition at line 66 of file atlsync.h.

67 {
68 }

Member Function Documentation

◆ Create()

BOOL ATL::CEvent::Create ( LPSECURITY_ATTRIBUTES  pSecurity,
BOOL  bManualReset,
BOOL  bInitialState,
LPCTSTR  pszName 
)
inlineprivate

Definition at line 70 of file atlsync.h.

71 {
72 HANDLE hEvent = ::CreateEvent(pSecurity, bManualReset, bInitialState, pszName);
75 return hEvent != NULL;
76 }
#define ATLASSERT(x)
Definition: CComVariant.cpp:10
void Attach(_In_ HANDLE handle)
Definition: atlbase.h:350
#define CreateEvent
Definition: winbase.h:3683

◆ Open()

BOOL ATL::CEvent::Open ( DWORD  dwAccess,
BOOL  bInheritHandle,
LPCTSTR  pszName 
)
inlineprivate

Definition at line 78 of file atlsync.h.

79 {
80 HANDLE hEvent = ::OpenEvent(dwAccess, bInheritHandle, pszName);
83 return hEvent != NULL;
84 }
static BOOL bInheritHandle
Definition: pipe.c:82
#define OpenEvent
Definition: winbase.h:3820

◆ Pulse()

BOOL ATL::CEvent::Pulse ( )
inlineprivate

Definition at line 98 of file atlsync.h.

99 {
100 ATLASSERT(*this);
101 return ::PulseEvent(*this);
102 }

◆ Reset()

BOOL ATL::CEvent::Reset ( )
inlineprivate

Definition at line 92 of file atlsync.h.

93 {
94 ATLASSERT(*this);
95 return ::ResetEvent(*this);
96 }

◆ Set()

BOOL ATL::CEvent::Set ( )
inlineprivate

Definition at line 86 of file atlsync.h.

87 {
88 ATLASSERT(*this);
89 return ::SetEvent(*this);
90 }

The documentation for this class was generated from the following file: