all groups > dotnet security > july 2005 >
You're in the

dotnet security

group:

What is equivalent of Win32 AdjustTokenPriveleges()



What is equivalent of Win32 AdjustTokenPriveleges() Ken Varn
7/26/2005 12:00:00 AM
dotnet security: 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
-----------------------------------

Re: What is equivalent of Win32 AdjustTokenPriveleges() Dominick Baier [DevelopMentor]
7/26/2005 3:24:55 PM
Hello Ken,

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

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

[quoted text, click to view]


AddThis Social Bookmark Button