vakuras
vakuras

Reputation: 1007

How to know if a program was ran using run-as or get the username who is the owner of the current session?

not using WTS (Terminal Services is not running...)

Upvotes: 1

Views: 79

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038730

You may take a look at this CodeProject article. It outlines a .NET solution but as you haven't specified what language/program you are using, if this is not your case, you could see the unmanaged Win32 functions used there.

Upvotes: 1

Related Questions