共用方式為


CSid::SidNameUse

Returns a description of the state of the CSid object.

SID_NAME_USE SidNameUse( ) const throw( );

Return Value

Returns the value of the data member that stores a value describing the state of the CSid object.

Value

Description

SidTypeUser

Indicates a user SID (security identifier).

SidTypeGroup

Indicates a group SID.

SidTypeDomain

Indicates a domain SID.

SidTypeAlias

Indicates an alias SID.

SidTypeWellKnownGroup

Indicates a SID for a well-known group.

SidTypeDeletedAccount

Indicates a SID for a deleted account.

SidTypeInvalid

Indicates an invalid SID.

SidTypeUnknown

Indicates an unknown SID type.

SidTypeComputer

Indicates a SID for a computer.

Remarks

Call CSid::LoadAccount to update the CSid object before calling SidNameUse to return its state. SidNameUse does not change the state of the object (by calling to LookupAccountName or LookupAccountSid), but only returns the current state.

Requirements

Header: atlsecurity.h

See Also

Reference

CSid Class