Partager via


CSid::Domain

Returns the name of the domain associated with the CSid object.

LPCTSTR Domain( ) const throw(...);

Return Value

Returns the LPCTSTR pointing to the domain.

Remarks

This method attempts to find a name for the specified SID (security identifier). For full details, see LookupAccountSid.

If no account name for the SID can be found, Domain returns the domain as an empty string. This can occur if a network timeout prevents this method from finding the name. It also occurs for security identifiers with no corresponding account name, such as a logon SID that identifies a logon session.

Requirements

Header: atlsecurity.h

See Also

Concepts

CSid Class

CSid Members

CSid::AccountName

LookupAccountSid