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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top