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

Method IsReplacingTaskManager

WinArk/ProcessHelper.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool ProcessHelper::IsReplacingTaskManager() {
42 CRegKey key;
43 if (ERROR_SUCCESS != key.Open(HKEY_LOCAL_MACHINE, ifeoKey + L"taskmgr.exe", KEY_READ))
44 return false;
45 WCHAR value[MAX_PATH];
46 ULONG count = _countof(value);
47 if (ERROR_SUCCESS != key.QueryStringValue(L"Debugger", value, &count))
48 return false;
49 return ::_wcsicmp(GetProcessImageName(), value) == 0;
50}
51
52bool ProcessHelper::ReplaceTaskManager(bool revert) {
53 CRegKey key;

Callers

nothing calls this directly

Calls 2

OpenMethod · 0.45
QueryStringValueMethod · 0.45

Tested by

no test coverage detected