| 9 | } |
| 10 | |
| 11 | CString 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 | } |
nothing calls this directly
no test coverage detected