Click or drag to resize

WindowsApiAdjustTokenPrivileges Method

Win32 AdjustTokenPrivileges function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static bool AdjustTokenPrivileges(
	IntPtr TokenHandle,
	bool DisableAllPrivileges,
	ref WindowsApiTOKEN_PRIVILEGES NewState,
	int BufferLength,
	IntPtr PreviousState,
	ref int ReturnLength
)
View Source

Parameters

TokenHandle  IntPtr
 
DisableAllPrivileges  Boolean
 
NewState  WindowsApiTOKEN_PRIVILEGES
 
BufferLength  Int32
 
PreviousState  IntPtr
 
ReturnLength  Int32
 

Return Value

Boolean
See Also