点击或拖拽改变大小

AdvApiAdjustTokenPrivileges 方法 (IntPtr, Boolean, TOKEN_PRIVILEGES, UInt32, IntPtr, UInt32)

Sweet 开发框架

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <summary> 文档]

命名空间:  Sweet.Common.Win32
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static bool AdjustTokenPrivileges(
	IntPtr TokenHandle,
	bool DisableAllPrivileges,
	ref TOKEN_PRIVILEGES NewState,
	uint BufferLength,
	IntPtr PreviousState,
	uint ReturnLength
)

参数

TokenHandle
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="TokenHandle"/> 文档]

DisableAllPrivileges
类型:SystemBoolean

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="DisableAllPrivileges"/> 文档]

NewState
类型:Sweet.Common.Win32TOKEN_PRIVILEGES

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="NewState"/> 文档]

BufferLength
类型:SystemUInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="BufferLength"/> 文档]

PreviousState
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="PreviousState"/> 文档]

ReturnLength
类型:SystemUInt32

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <param name="ReturnLength"/> 文档]

返回值

类型:Boolean

[缺少 "M:Sweet.Common.Win32.AdvApi.AdjustTokenPrivileges(System.IntPtr,System.Boolean,Sweet.Common.Win32.TOKEN_PRIVILEGES@,System.UInt32,System.IntPtr,System.UInt32)" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架