mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[TASKMGR] Distinguish WOW64 processes with a " *32" in the image name (#7915)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user