views:

85

answers:

2

I am currently using the EnumProcesses function to obtain a list of running processes. Since my application runs in user space, however, it is not able to get handles for processes not running under the user, including System processes. Is there another method that will give me access to these? All I need are the process names.

Thanks

A: 

A WMI query (quite possible using WMI's COM interface, but you'll need to translate VB(Script) focused documentation) might help here. The Win32_Process class contains what you need.

However, I've not tested this, I think you'll find the same issue: a non-administrator can only see their own processes.

Richard
+1  A: 

I finally found a solution (figures after posting here as my last desperate attempt). If anyone else only needs a list of process names running on the system (all processes), this will do it for you.

Process Walking

xeon