Security

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Let's try this again...

Is there any current functionality in C# to access windows authentication in a windows application (not ASP) without using unmanaged code?

I would appreciate if anyone has an example.

Regards,
AG
 
You can create a WindowsPrincipal object based on the current
WindowsIdentity (GetCurrent on WindowsIdentity), and use the
WindowsPrincipal to ceck if the user is in some given domain or local group.
Other than that, it's off to P/Invoke.

-Rob Teixeira [MVP]


Adam Gentry said:
Let's try this again...

Is there any current functionality in C# to access windows authentication
in a windows application (not ASP) without using unmanaged code?
 
Back
Top