| 239 | } |
| 240 | |
| 241 | void HookProcessor::Dispose() { |
| 242 | LOG(TRACE) << "Entering HookProcessor::Dispose"; |
| 243 | ClearBuffer(); |
| 244 | |
| 245 | if (this->pipe_handle_ != INVALID_HANDLE_VALUE && |
| 246 | this->pipe_handle_ != NULL) { |
| 247 | ::CloseHandle(this->pipe_handle_); |
| 248 | this->pipe_handle_ = INVALID_HANDLE_VALUE; |
| 249 | } |
| 250 | |
| 251 | if (this->hook_procedure_handle_ != NULL) { |
| 252 | this->UninstallWindowsHook(); |
| 253 | this->hook_procedure_handle_ = NULL; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | bool HookProcessor::PushData(int data_size, |
| 258 | void* pointer_to_data) { |
no test coverage detected