CAccessToken::GetType

Call this method to get the token type of the CAccessToken object.

bool GetType(
   TOKEN_TYPE* pType
) const throw(...);

Parameters

  • pType
    Address of the TOKEN_TYPE variable that, on success, receives the type of the token.

Return Value

Returns true on success, false on failure.

Remarks

The TOKEN_TYPE enumeration type contains values that differentiate between a primary token and an impersonation token.

Requirements

Header: atlsecurity.h

See Also

Reference

CAccessToken Class

Other Resources

CAccessToken Members