How does Process Explorer enumerate all process names from an XP Guest account?

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2011-01-15T17:43:49Z Indexed on 2011/01/15 17:53 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

I'm attempting to enumerate all running process EXE names, and have stumbled when attempting this on the XP Guest account. I am able to enumerate all Process IDs using EnumProcesses, but when I attempt OpenProcess with PROCESS_QUERY_INFORMATION Or PROCESS_VM_READ, the function fails.

I fired up Process Explorer under the XP Guest account, and it was able to enumerate all process names (though as expected, most other information from processes outside the Guest user-space was not present).

So, my question is, how can I duplicate the Process Explorer magic to get the process names of services and other processes running outside the Guest account user-space?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows