Get real logon user from windows services

From: Bui Pham Minh Tri (minhtri_at_pyramid-consulting.com)
Date: 07/18/04


Date: Sun, 18 Jul 2004 12:46:20 +0700

I have written a windows service, but when I use System.Security.Principal.WindowsIdentity.GetCurrent().Name to get the current logon user, it returned NT AUTHOURITY\SYSTEM. How can I get the name of current logon user, for example DOMAIN\user?
Thanks for any solutions.