| 223 | } |
| 224 | |
| 225 | Handle OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) |
| 226 | { |
| 227 | Handle hProcessHandle(::OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId)); |
| 228 | if (!hProcessHandle) |
| 229 | ThrowLastError(L"OpenProcess"); |
| 230 | |
| 231 | return hProcessHandle; |
| 232 | } |
| 233 | |
| 234 | Handle CreateEvent(const SECURITY_ATTRIBUTES* pEventAttributes, bool manualReset, bool initialState, const wchar_t* pName) |
| 235 | { |