|
WindowsApiGetTokenInformation(IntPtr, WindowsApiTOKEN_INFORMATION_CLASS, UInt32, UInt32, UInt32) Method
|
Win32 GetTokenInformation function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntax[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static bool GetTokenInformation(
IntPtr TokenHandle,
WindowsApiTOKEN_INFORMATION_CLASS TokenInformationClass,
ref uint TokenInformation,
uint TokenInformationLength,
out uint ReturnLength
)
<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function GetTokenInformation (
TokenHandle As IntPtr,
TokenInformationClass As WindowsApiTOKEN_INFORMATION_CLASS,
ByRef TokenInformation As UInteger,
TokenInformationLength As UInteger,
<OutAttribute> ByRef ReturnLength As UInteger
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static bool GetTokenInformation(
IntPtr TokenHandle,
WindowsApiTOKEN_INFORMATION_CLASS TokenInformationClass,
unsigned int% TokenInformation,
unsigned int TokenInformationLength,
[OutAttribute] unsigned int% ReturnLength
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member GetTokenInformation :
TokenHandle : IntPtr *
TokenInformationClass : WindowsApiTOKEN_INFORMATION_CLASS *
TokenInformation : uint32 byref *
TokenInformationLength : uint32 *
ReturnLength : uint32 byref -> bool
GSF.Interop.WindowsApi.GetTokenInformation = function(TokenHandle, TokenInformationClass, TokenInformation, TokenInformationLength, ReturnLength);
View SourceParameters
- TokenHandle IntPtr
-
- TokenInformationClass WindowsApiTOKEN_INFORMATION_CLASS
-
- TokenInformation UInt32
-
- TokenInformationLength UInt32
-
- ReturnLength UInt32
-
Return Value
Boolean
See Also