| 232 | } |
| 233 | |
| 234 | Handle CreateEvent(const SECURITY_ATTRIBUTES* pEventAttributes, bool manualReset, bool initialState, const wchar_t* pName) |
| 235 | { |
| 236 | Handle hEvent(::CreateEventW(const_cast<SECURITY_ATTRIBUTES*>(pEventAttributes), manualReset, initialState, pName)); |
| 237 | if (!hEvent) |
| 238 | ThrowLastError("CreateEvent"); |
| 239 | |
| 240 | return hEvent; |
| 241 | } |
| 242 | |
| 243 | void SetEvent(Handle& hEvent) |
| 244 | { |
no test coverage detected