mirror of
https://github.com/reactos/reactos.git
synced 2025-04-24 23:50:24 +00:00
[TASKMGR] Distinguish WOW64 processes with a " *32" in the image name (#7915)
This commit is contained in:
parent
73b019a390
commit
4cbd5d1b44
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue