On behalf of which user the process was launched
By the identifier (PID) of the process, we find out the username on behalf of which it was launched.
1 2 3 4 5 6 7 8 |
var pid: Integer; user: string; begin pid:= 880; user:= GetUserFromPID(pid); ShowMessage(user); end; |