MCPcopy Create free account
hub / github.com/ElyDotDev/windows-kill / closeHandle

Method closeHandle

windows-kill-library/remote-process.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 1

startRemoteThreadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected