chsvlib
chsv helper source code

◆ GetTokenGroupCount()

DWORD Chusov::Win32::Security::GetTokenGroupCount ( HANDLE  hToken)

Returns a number of groups in the specified access token.

Parameters
[in]hTokenis a handle of the token. It must be opened with TOKEN_QUERY access right. Tokens returned by the GetCurrentImpersonationToken have one.
Exceptions
Chusov::Exceptions::ChsvCodeExceptionSystem-level error occurred.