Click or drag to resize

WindowsApi.AdjustTokenPrivileges Method

Win32 AdjustTokenPrivileges function.

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

Parameters

TokenHandle  IntPtr
 
DisableAllPrivileges  Boolean
 
NewState  WindowsApi.TOKEN_PRIVILEGES
 
BufferLength  Int32
 
PreviousState  IntPtr
 
ReturnLength  Int32
 

Return Value

Boolean
See Also