| 85 | } |
| 86 | |
| 87 | void IEServer::ShutDown() { |
| 88 | LOG(TRACE) << "Entering IEServer::ShutDown"; |
| 89 | DWORD process_id = ::GetCurrentProcessId(); |
| 90 | std::wstring process_id_string = std::to_wstring(static_cast<long long>(process_id)); |
| 91 | std::wstring event_name = IESERVER_SHUTDOWN_EVENT_NAME + process_id_string; |
| 92 | HANDLE event_handle = ::OpenEvent(EVENT_MODIFY_STATE, |
| 93 | FALSE, |
| 94 | event_name.c_str()); |
| 95 | if (event_handle) { |
| 96 | ::SetEvent(event_handle); |
| 97 | ::CloseHandle(event_handle); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | } //namespace webdriver |
no test coverage detected