I am using C# and .Net Framework 4.

I am looking for a foolproof method to get the login id of the currently logged in windows user that is not susceptible to impersonation or hacking. I am looking for this in the form of: DOMAINNAME\USERNAME 

e.g. SOMEDOMAIN\JohnDoe

Currently the best I have is:

```
var identity = System.Security.Principal.WindowsIdentity.GetCurrent();
var currentLoginId = identity.Name;

```

Is this open to impersonation (outside of someone knowing both the username and password) and if so is there a better way of doing this?