Home All Groups Group Topic Archive Search About

What is equivalent of Win32 AdjustTokenPriveleges()

Author
26 Jul 2005 5:20 PM
Ken Varn
Is there a .NET equivalent to the win32 call AdjustTokenPriveleges()?  I
need to enable SE_SHUTDOWN_NAME so that I can call ExitWindowsEx() Win32
function through a .NET wrapper class.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Author
26 Jul 2005 10:24 PM
Dominick Baier [DevelopMentor]
Hello Ken,

no - you have to use P/Invoke for that API.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> Is there a .NET equivalent to the win32 call AdjustTokenPriveleges()?
> I need to enable SE_SHUTDOWN_NAME so that I can call ExitWindowsEx()
> Win32 function through a .NET wrapper class.
>
> EmailID = varnk
> Domain = Diebold.com
> -----------------------------------