CAccessToken::GetPrimaryGroup

 

Call this method to get the primary group associated with the CAccessToken object.

Syntax

      bool GetPrimaryGroup(
   CSid* pSid
) const throw(...);

Parameters

Return Value

Returns true on success, false on failure.

Remarks

The group is set by default on any objects created while this access token is in effect.

Requirements

Header: atlsecurity.h

See Also

CAccessToken Class
CAccessToken::SetPrimaryGroup