Re: Role based security and Domains

From: jzhu (anonymous_at_discussions.microsoft.com)
Date: 05/20/04


Date: Thu, 20 May 2004 06:26:01 -0700


>From MSDN document on SystemInformation.UserDomainName:
"The name of the user domain. If a local user account exists with the same name as the user name, this property gets the computer name."

You could use PInvoke with Win32 GetUserNameEx API, passing in NameSamCompatible to get a Domain\User.


Quantcast