I've never used events directly, so I'm not quite sure what the point of this code is? I see some code where they call SetEvent() immediately followed by ResetEvent().
As usual, there's no comments saying what it's supposed to be doing, so can anyone tell me why someone might want to signal & unsignal an event like that?
Code:hEvent = OpenEvent( EVENT_ALL_ACCESS, TRUE, rt[i].DllResponderEvent ); BOOL serc = SetEvent( hEvent ); if ( serc == FALSE ) { // Log an error. } ResetEvent( hEvent ); CloseHandle( hEvent );