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

Method GetDetails

WinArk/WorkerFactoryObjectType.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11CString WorkerFactoryObjectType::GetDetails(HANDLE hObject) {
12 WORKER_FACTORY_BASIC_INFORMATION info;
13 if(!NT_SUCCESS(::NtQueryInformationWorkerFactory(hObject, WorkerFactoryBasicInformation, &info, sizeof(info), nullptr)))
14 return L"";
15
16 CString text;
17 text.Format(L"PID: %u (%s), Min Threads: %u, Max Threads: %u, Stack Commit: %u KB, Stack Reserve: %u KB, Paused: %s, Pending workers: %u",
18 HandleToUlong(info.ProcessId), _pm.GetProcessById(HandleToUlong(info.ProcessId))->GetImageName().c_str(),
19 info.ThreadMinimum, info.ThreadMaximum, info.StackCommit >> 10, info.StackReserve >> 10,
20 info.Paused ? L"Yes" : L"No", info.PendingWorkerCount);
21
22 return text;
23}

Callers

nothing calls this directly

Calls 1

GetProcessByIdMethod · 0.45

Tested by

no test coverage detected