MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetCurDirectory

Method GetCurDirectory

WinArk/ProcessInfoEx.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89//}
90
91std::wstring ProcessInfoEx::GetCurDirectory() const {
92 auto hProcess = DriverHelper::OpenProcess(_pi->Id, PROCESS_VM_READ | PROCESS_QUERY_INFORMATION);
93 if (!hProcess)
94 return L"";
95
96 auto dir = WinSys::Process::GetCurrentDirectory(hProcess);
97 if (hProcess)
98 ::CloseHandle(hProcess);
99 return dir;
100}
101
102const std::wstring& ProcessInfoEx::GetCompanyName() const {
103 if (!_companyChecked) {

Callers 2

InitProcessMethod · 0.80
OnExploreDirectoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected