chsvlib
chsv helper source code

◆ AutoTokenInformation

using AutoTokenInformation = std::unique_ptr<token_information_type_id_t<TokenInformationClass>, Chusov::Memory::raw_delete_t<token_information_type_id_t<TokenInformationClass> >>

An alias for the type of smart pointers to Windows API structures used to hold information about a security token. A particular type of the token information, as well as the returned data type, are determined based on a value of the template parameter of the Windows TOKEN_INFORMATION_CLASS type.

Template Parameters
TokenInformationClassis an integral template parameter which is allowed to have one of the TOKEN_INFORMATION_CLASS enumeration values.
Remarks
Currently, only TokenUser and TokenGroups values of the enumeration are supported.
See also
token_information_type_id;
GetTokenInformation - a function template returning this type of a smart pointer to token information;
GetTokenInformation - a function returning a generic smart pointer (i.e. void* -based) to the token information depending upon the TOKEN_INFORMATION_CLASS identifier passed to the function as an extra parameter.