MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / openHandleForWait

Method openHandleForWait

src/envmodule.cpp:384–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384HandlePtr Process::openHandleForWait() const
385{
386 const auto rights =
387 PROCESS_QUERY_LIMITED_INFORMATION | // exit code, image name, etc.
388 SYNCHRONIZE | // wait functions
389 PROCESS_SET_QUOTA | PROCESS_TERMINATE; // add to job
390
391 // don't log errors, failure can happen if the process doesn't exist
392 return HandlePtr(OpenProcess(rights, FALSE, m_pid));
393}
394
395// whether this process can be accessed; fails if the current process doesn't
396// have the proper permissions

Callers 2

findRandomProcessFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected