Get process handle access rights.
-
Hey everybody! Is there a way to get access rights out of a process HANDLE ? Thanks! :-)
-
Hey everybody! Is there a way to get access rights out of a process HANDLE ? Thanks! :-)
-
Hey, Thanks for your answer, but I can't see how it returns the Access rights of the process HANDLE (not the token's access rights).
-
Hey, Thanks for your answer, but I can't see how it returns the Access rights of the process HANDLE (not the token's access rights).
CAccessToken::GetProcessToken
will get the token belonging to the process handle. You can do the same using theOpenProcessToken
API.«_Superman_»
I love work. It gives me something to do between weekends. -
CAccessToken::GetProcessToken
will get the token belonging to the process handle. You can do the same using theOpenProcessToken
API.«_Superman_»
I love work. It gives me something to do between weekends.Hey, I know about Access tokens, but it is not what I want. I want to know if the given HANDLE of process has a certain access rights. For instance, SYNCHRONIZE or PROCESS_TERMINATE. Is it possible to do so with Access Token?
-
Hey, I know about Access tokens, but it is not what I want. I want to know if the given HANDLE of process has a certain access rights. For instance, SYNCHRONIZE or PROCESS_TERMINATE. Is it possible to do so with Access Token?
you may open another handle to that process using process id. Specify desired access right such as SYNCHRONIZE or PROCESS_TERMINATE in OpenProcess(). Check the return value to test whether desired right on process is granted or not :)
i don't know whether there is any undocumented API for enumerating process access rights :( :( -
you may open another handle to that process using process id. Specify desired access right such as SYNCHRONIZE or PROCESS_TERMINATE in OpenProcess(). Check the return value to test whether desired right on process is granted or not :)
i don't know whether there is any undocumented API for enumerating process access rights :( :(Yeah, that's what I thought as well... :-( So I guess I'll have to check the kernel mode function, and check if it is also implemented in ntdll.dll (like other functions I found). Thanks a lot anyway! :-)