I am running as a non-elevated process. I need to know if some other process is elevated by its process ID. Is there a way to achieve that?
Asked
Active
Viewed 72 times
0
-
Why would you need to know that? – David Heffernan Mar 07 '16 at 15:49
-
The proposed duplicate detects the status of the *current* process, the OP wants to detect the status of *another* process. Voting to reopen. – Harry Johnston Mar 08 '16 at 10:20
-
However, some of the answers to that question could probably be *modified* to answer this one. Basically, wherever GetCurrentProcess() appears, substitute OpenProcess(). (And if you get access denied, the target process is probably elevated. Or belongs to another user.) – Harry Johnston Mar 08 '16 at 10:22
-
That's the thing - the other process is neither belongs to another user nor is it elevated. It is just a plain process like notepad. – Tsury Mar 08 '16 at 11:41