Granting privileges using C#..

  • Thread starter Thread starter Prasad Dabak
  • Start date Start date
P

Prasad Dabak

Hello,

Is it possible to programatically grant privileges like
SeAssignPrimaryTokenPrivilege to a Windows account from C# code?

I don't want to call down to WIN32 functions

-Prasad
 
Prasad,

Yes, it is. Basically, you will have to call the function through the
P/Invoke layer. There isn't a managed wrapper for this kind of
functionality in the framework.

Hope this helps.
 
Back
Top