Skip to content

Commit

Permalink
Get short name after calling Kernel32.GetProcessName
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDunn committed Sep 28, 2021
1 parent 41e0197 commit 19b9126
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ public static ProcessInfo[] GetProcessInfos(string machineName)
// local case: do not use performance counter and also attempt to get the matching (by pid) process only

string? processName = Interop.Kernel32.GetProcessName((uint)processId);

return processName;
return NtProcessInfoHelper.GetProcessShortName(processName);
}

return null;
Expand Down

0 comments on commit 19b9126

Please sign in to comment.