Retrieve Logged Windows User From Window Service

I wish to retrive the name of the windows logged user from within a Windows service program executing using a System account. I tried the .net System.Security classes and the Win32 API GetUserName which retains 'System', but I need the actual windows loggedon user name.
Thank you in advance

Cleophas Mashiri, South Africa, +27 73 346 5475. email:[email protected]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!