Поделиться через


CAccessToken::SetPrimaryGroup

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

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

Параметры

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

Возвращаемое значение

Returns true on success, false on failure.

Заметки

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

Требования

Header: atlsecurity.h

См. также

Основные понятия

CAccessToken Class

CAccessToken Members

CAccessToken::GetPrimaryGroup