MCPcopy Create free account
hub / github.com/dobin/RedEdr / OpenTarget

Method OpenTarget

RedEdrShared/myprocess.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152BOOL Process::OpenTarget() {
153 hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, id);
154 if (!hProcess) {
155 LOG_A(LOG_WARNING, "Could not open process pid: %lu error %lu", id, GetLastError());
156 return FALSE;
157 }
158 return TRUE;
159}
160
161
162BOOL Process::CloseTarget() {

Callers

nothing calls this directly

Calls 1

LOG_AFunction · 0.50

Tested by

no test coverage detected