Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Username

Status
Not open for further replies.

PerthBok

Programmer
Mar 10, 2004
6
AU
How do you get the username of the user who initiated an application execution?
 

PerthBok, have you read FAQ222-2244 yet?

Try the GetUserName API...

Good Luck

 
Does GetUserName not just get the current user of the workstation. What if you're running terminal server and want to monitor all applications and the User who initiated the application?

Appreciate the help
 

Yes you are correct. So perhaps reading FAQ222-2244 will help you in being a bit more clear in exactly what you are asking.

Good Luck

 
Are you looking for API functions or for a program that will give you this info?
 
I've found API's to list all processes running on a machine. We are running terminal server though and I want to log who is the User that "owns" the application. I have tried GetTokenInformation but this seems to give the username of the server machine and not the user who "owns" the app. Sorry a bit difficult to describe.

Thanks for the response
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top