GetTokenInformation

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL GetTokenInformation(
    HANDLE TokenHandle,
    TOKEN_INFORMATION_CLASS TokenInformationClass,
    [Optional] void* TokenInformation,
    uint TokenInformationLength,
    uint* ReturnLength);

TOKEN_INFORMATION_CLASS

Last updated