[TASKMGR] Distinguish WOW64 processes with a " *32" in the image name (#7915)

This commit is contained in:
Marcin Jabłoński 2025-04-21 23:17:19 +02:00 committed by GitHub
parent 73b019a390
commit 4cbd5d1b44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -176,6 +176,7 @@ void PerfDataRefresh(void)
PSID ProcessUser;
ULONG Buffer[64]; /* must be 4 bytes aligned! */
ULONG cwcUserName;
BOOL bIsWow64;
/* Get new system time */
status = NtQuerySystemInformation(SystemTimeOfDayInformation, &SysTimeInfo, sizeof(SysTimeInfo), NULL);
@ -389,6 +390,11 @@ ReadProcOwner:
pPerfData[Idx].GDIObjectCount = GetGuiResources(hProcess, GR_GDIOBJECTS);
}
if (IsWow64Process(hProcess, &bIsWow64) && bIsWow64)
{
wcscat(pPerfData[Idx].ImageName, L" *32");
}
GetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
CloseHandle(hProcess);
} else {

View file

@ -12,7 +12,7 @@
typedef struct _PERFDATA
{
WCHAR ImageName[MAX_PATH];
WCHAR ImageName[MAX_PATH + _countof(L" *32") - 1];
HANDLE ProcessId;
WCHAR UserName[MAX_PATH];
ULONG SessionId;