المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Filtering processes of current user



C++ Programming
03-30-2009, 10:24 PM
Hi, is it possible to get process IDs for the current user only... or alternatively from a process ID (PID) get the owner?

I tried using CreateToolhelp32Snapshot (http://msdn.microsoft.com/en-us/library/ms686701(VS.85).aspx), this gives back processes from all users. When two different users have started an executable "test.exe" at the same time I'd like to find the PID of the "test.exe" from the current user.

Thanks!


My webchat in Europe (http://www.pichat.net/) http://www.barakasoft.com/script/Forums/Images/coffee.gif