| 145 | } |
| 146 | |
| 147 | void RemoteProcess::closeHandle(void) { |
| 148 | if (this->handle != NULL) { |
| 149 | if (!CloseHandle(this->handle)) { |
| 150 | throw system_error(error_code(GetLastError(), system_category()), "remote-process:closeHandle"); |
| 151 | } |
| 152 | this->handle = (HANDLE)NULL; |
| 153 | } |
| 154 | } |
| 155 | } |