godHimself Level: Guest

|
how can i get the username of the user using a process ???
i am using vb6 and i need thid to run at vb6.
i need to get all process running on an NT machine and identify who is using each process.
so far i have managed to get all the running processes and process ids.
now i need to get the username of the user using each process.
after searching i found that i need to use the api functions:
OpenProcess, OpenProcessToken and GetTokenInformation,
but i dont know how to use them to get the username of the user using a process.
any ideas, links, code more than welcome!
thanx in advanced...
|