MCPcopy Create free account
hub / github.com/NullTerminatorr/NullHook / HandleDisposer

Class HandleDisposer

KernelCheatUM/main.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39struct HandleDisposer
40{
41 using pointer = HANDLE;
42 void operator()(HANDLE handle) const
43 {
44 if (handle != NULL || handle != INVALID_HANDLE_VALUE)
45 {
46 CloseHandle(handle);
47 }
48 }
49};
50
51using unique_handle = std::unique_ptr<HANDLE, HandleDisposer>;
52

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected