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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the username

Status
Not open for further replies.

lechner

Programmer
Aug 7, 2001
5
CZ
Hi all,
how do i get the username which a user is working (in service application).
Is there any function that returns the username. I tryed API function GetUserName(), but this function retrieves the user name of the current thread and i delevop a service application.

Thanks in advance
 
Check topic "HOWTO: Retrieve Current User and Domain Names on Windows NT" in MSDN. (I have the April 2001 release)

Hope this helps,s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top