all groups > dotnet sdk > november 2005 >
You're in the

dotnet sdk

group:

.NET equivalent for LookupAccountName() Win32 API function


.NET equivalent for LookupAccountName() Win32 API function David Adams
11/17/2005 9:11:15 AM
dotnet sdk:
Is there an equivalent method in the .NET framework that provides the same
functionality as the LookupAccountName() win32 function? Actually, all I
really need is to find the domain of an Active Directory user account. I
don't need the SIDs.

RE: .NET equivalent for LookupAccountName() Win32 API function Alfetta159
12/8/2005 3:39:02 PM
I've been working in the same realm the last couple of days. I think that I
can help you or offer techniques to wrap the Win32 function.

What exactly do you know about the account? Do you have a SID, or just a
username? The thing is that if you truly have an ActiveDirectory account,
then that implies that you know what the domain is. username@domain or
\\domain\username.



[quoted text, click to view]
AddThis Social Bookmark Button