AutoSID Chusov::Win32::Security::GetTokenUser | ( | HANDLE | hToken | ) |
Returns a Windows security identifier of a principal, described by the specified token.
[in] | hToken | is a Windows handle of the token, opened with the TOKEN_QUERY access right. |
hToken must be opened with TOKEN_QUERY access right. Tokens returned by the GetCurrentImpersonationToken have one.
std::bad_alloc | The function was unable to allocate the required amount of memory. |
Chusov::Exceptions::ChsvCodeException | System-level error occurred. |