Partager via


CAccessToken::SetPrimaryGroup

Call this method to set the primary group of the CAccessToken object.

bool SetPrimaryGroup(
   const CSid& rSid
) throw(...);

Parameters

  • rSid
    The CSid Class object containing the primary group information.

Return Value

Returns true on success, false on failure.

Remarks

The primary group is the default group for new objects created while this access token is in effect.

Requirements

Header: atlsecurity.h

See Also

Reference

CAccessToken Class

CAccessToken::GetPrimaryGroup

Other Resources

CAccessToken Members