Fixing init result issue.
1 //------------------------------------------------------------------------------
3 //------------------------------------------------------------------------------
6 m_hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
8 //------------------------------------------------------------------------------
12 CloseHandle(m_hEvent);
14 //------------------------------------------------------------------------------
15 void Event::Signal() const
19 //------------------------------------------------------------------------------
20 void Event::Reset() const
24 //------------------------------------------------------------------------------
25 void Event::Await() const
27 WaitForSingleObject(m_hEvent, INFINITE);
29 //------------------------------------------------------------------------------
36 LRESULT WindowEvent::Execute(UINT aMsg)
38 //Typically only execute if the given message is for us