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

Function getProcessParentID

src/envmodule.cpp:770–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770DWORD getProcessParentID(DWORD pid)
771{
772 DWORD ppid = 0;
773
774 forEachRunningProcess([&](auto&& entry) {
775 if (entry.th32ProcessID == pid) {
776 ppid = entry.th32ParentProcessID;
777 return false;
778 }
779
780 return true;
781 });
782
783 return ppid;
784}
785
786DWORD getProcessParentID(HANDLE handle)
787{

Callers 1

ppidMethod · 0.85

Calls 1

forEachRunningProcessFunction · 0.85

Tested by

no test coverage detected