CAccessToken::SetOwner

Call this method to set the owner of the CAccessToken object.

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

Parameters

  • rSid
    The CSid Class object containing the owner information.

Return Value

Returns true on success, false on failure.

Remarks

The owner is the default owner that is used for new objects created while this access token is in effect.

Requirements

Header: atlsecurity.h

See Also

Reference

CAccessToken Class

CAccessToken::GetOwner