Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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]
0 · ·