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

Function getProcessName

src/envmodule.cpp:728–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728QString getProcessName(DWORD pid)
729{
730 HandlePtr h(OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, pid));
731
732 if (!h) {
733 const auto e = GetLastError();
734 log::error("can't get name of process {}, {}", pid, formatSystemMessage(e));
735 return {};
736 }
737
738 return getProcessName(h.get());
739}
740
741QString getProcessName(HANDLE process)
742{

Callers 1

envmodule.cppFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected