Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
597 B

#ifndef __PASSPORTEVENT_HPP
#define __PASSPORTEVENT_HPP
class PassportEvent
{
public:
PassportEvent(BOOL bManualReset = TRUE, BOOL bInitialState = FALSE)
{
m_hEvent = CreateEvent(NULL, bManualReset, bInitialState, NULL);
}
~PassportEvent()
{
CloseHandle(m_hEvent);
}
BOOL Pulse() {return PulseEvent(m_hEvent);}
BOOL Set() {return SetEvent(m_hEvent);}
BOOL Reset() {return ResetEvent(m_hEvent);}
operator HANDLE() {return m_hEvent;}
private:
HANDLE m_hEvent;
};
#endif // __PASSPORTEVENT_HPP