[DllImport("advapi32.dll", SetLastError=true)]
static extern bool GetTokenInformation(
IntPtr TokenHandle,
TOKEN_INFORMATION_CLASS TokenInformationClass,
IntPtr TokenInformation,
uint TokenInformationLength,
out uint ReturnLength);
Call once with zero for the third and fourth parameters to obtain the required size, then allocate the buffer and call again supplying these parameters.
Please add some!
Please add some!
Do you know one? Please contribute it!