mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +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;
|
PSID ProcessUser;
|
||||||
ULONG Buffer[64]; /* must be 4 bytes aligned! */
|
ULONG Buffer[64]; /* must be 4 bytes aligned! */
|
||||||
ULONG cwcUserName;
|
ULONG cwcUserName;
|
||||||
|
BOOL bIsWow64;
|
||||||
|
|
||||||
/* Get new system time */
|
/* Get new system time */
|
||||||
status = NtQuerySystemInformation(SystemTimeOfDayInformation, &SysTimeInfo, sizeof(SysTimeInfo), NULL);
|
status = NtQuerySystemInformation(SystemTimeOfDayInformation, &SysTimeInfo, sizeof(SysTimeInfo), NULL);
|
||||||
|
@ -389,6 +390,11 @@ ReadProcOwner:
|
||||||
pPerfData[Idx].GDIObjectCount = GetGuiResources(hProcess, GR_GDIOBJECTS);
|
pPerfData[Idx].GDIObjectCount = GetGuiResources(hProcess, GR_GDIOBJECTS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsWow64Process(hProcess, &bIsWow64) && bIsWow64)
|
||||||
|
{
|
||||||
|
wcscat(pPerfData[Idx].ImageName, L" *32");
|
||||||
|
}
|
||||||
|
|
||||||
GetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
|
GetProcessIoCounters(hProcess, &pPerfData[Idx].IOCounters);
|
||||||
CloseHandle(hProcess);
|
CloseHandle(hProcess);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
typedef struct _PERFDATA
|
typedef struct _PERFDATA
|
||||||
{
|
{
|
||||||
WCHAR ImageName[MAX_PATH];
|
WCHAR ImageName[MAX_PATH + _countof(L" *32") - 1];
|
||||||
HANDLE ProcessId;
|
HANDLE ProcessId;
|
||||||
WCHAR UserName[MAX_PATH];
|
WCHAR UserName[MAX_PATH];
|
||||||
ULONG SessionId;
|
ULONG SessionId;
|
||||||
|
|
Loading…
Reference in a new issue