I'm trying to enumerate all processes running on my machine:
public int EnumProcesses()
{
Process[] ProList = Process.GetProcesses();
Proc.iProcessNum = ProList.Length;
for (int i = 0; i < ProList.Length; i++)
{
PrintProcess(ProList[i]);
}
return 0;
}
Some processes (such as games run with XTrap) aren't found by Process.GetProcesses()
. Task Manager can see them, though. How can I find these "hidden" processes?
Now i have picked its processID up, but processName is "a ghost"(true name is ge.exe, but i get chrome.exe or anything else). I've try with
GetModuleFileName()
GetModuleHandle()
GetModuleHandleEx()
Why can Task manager and ProcessExplorer show true, Any give me a solution.