A
AA
I would like to know how to obtain a processe's owner from its pid
The sequence of
OpenProcess
OpenProcessToken
GetTokenInformation
LookupAccountSid
does not work on system processes.
This has been documented in MSDN as being casued by lack of
SE_DEBUG_NAME privelege. The KB article Q131065
describes how to enable this privelege in our process so that
OpenProcess does not fail on system processes
The said method works on all processes except system(pid 8) process
and CRSS process.
1)Why does this not work on these processes ?
2)Are there any other rights that have to be assigned to get this to work ?
3)Is there any other method that doesnt require these rights
to obtain the process owner name ?
Iam targeting NT 4.0 sp6 and above (2000 XP etc)
The sequence of
OpenProcess
OpenProcessToken
GetTokenInformation
LookupAccountSid
does not work on system processes.
This has been documented in MSDN as being casued by lack of
SE_DEBUG_NAME privelege. The KB article Q131065
describes how to enable this privelege in our process so that
OpenProcess does not fail on system processes
The said method works on all processes except system(pid 8) process
and CRSS process.
1)Why does this not work on these processes ?
2)Are there any other rights that have to be assigned to get this to work ?
3)Is there any other method that doesnt require these rights
to obtain the process owner name ?
Iam targeting NT 4.0 sp6 and above (2000 XP etc)