Muokkaa

Jaa


Security Identifier Global Functions

These functions return common well-known SID objects.

Important

The functions listed in the following table cannot be used in applications that execute in the Windows Runtime.

Name Description
Sids::AccountOps Returns the DOMAIN_ALIAS_RID_ACCOUNT_OPS SID.
Sids::Admins Returns the DOMAIN_ALIAS_RID_ADMINS SID.
Sids::AnonymousLogon Returns the SECURITY_ANONYMOUS_LOGON_RID SID.
Sids::AuthenticatedUser Returns the SECURITY_AUTHENTICATED_USER_RID SID.
Sids::BackupOps Returns the DOMAIN_ALIAS_RID_BACKUP_OPS SID.
Sids::Batch Returns the SECURITY_BATCH_RID SID.
Sids::CreatorGroup Returns the SECURITY_CREATOR_GROUP_RID SID.
Sids::CreatorGroupServer Returns the SECURITY_CREATOR_GROUP_SERVER_RID SID.
Sids::CreatorOwner Returns the SECURITY_CREATOR_OWNER_RID SID.
Sids::CreatorOwnerServer Returns the SECURITY_CREATOR_OWNER_SERVER_RID SID.
Sids::Dialup Returns the SECURITY_DIALUP_RID SID.
Sids::Guests Returns the DOMAIN_ALIAS_RID_GUESTS SID.
Sids::Interactive Returns the SECURITY_INTERACTIVE_RID SID.
Sids::Local Returns the SECURITY_LOCAL_RID SID.
Sids::Network Returns the SECURITY_NETWORK_RID SID.
Sids::NetworkService Returns the SECURITY_NETWORK_SERVICE_RID SID.
Sids::Null Returns the SECURITY_NULL_RID SID.
Sids::PreW2KAccess Returns the DOMAIN_ALIAS_RID_PREW2KCOMPACCESS SID.
Sids::PowerUsers Returns the DOMAIN_ALIAS_RID_POWER_USERS SID.
Sids::PrintOps Returns the DOMAIN_ALIAS_RID_PRINT_OPS SID.
Sids::Proxy Returns the SECURITY_PROXY_RID SID.
Sids::RasServers Returns the DOMAIN_ALIAS_RID_RAS_SERVERS SID.
Sids::Replicator Returns the DOMAIN_ALIAS_RID_REPLICATOR SID.
Sids::RestrictedCode Returns the SECURITY_RESTRICTED_CODE_RID SID.
Sids::Self Returns the SECURITY_PRINCIPAL_SELF_RID SID.
Sids::ServerLogon Returns the SECURITY_SERVER_LOGON_RID SID.
Sids::Service Returns the SECURITY_SERVICE_RID SID.
Sids::System Returns the SECURITY_LOCAL_SYSTEM_RID SID.
Sids::SystemOps Returns the DOMAIN_ALIAS_RID_SYSTEM_OPS SID.
Sids::TerminalServer Returns the SECURITY_TERMINAL_SERVER_RID SID.
Sids::Users Returns the DOMAIN_ALIAS_RID_USERS SID.
Sids::World Returns the SECURITY_WORLD_RID SID.

Requirements

Header: atlsecurity.h

Sids::AccountOps

Returns the DOMAIN_ALIAS_RID_ACCOUNT_OPS SID.

CSid AccountOps() throw(...);

Sids::Admins

Returns the DOMAIN_ALIAS_RID_ADMINS SID.

CSid Admins() throw(...);

Sids::AnonymousLogon

Returns the SECURITY_ANONYMOUS_LOGON_RID SID.

CSid AnonymousLogon() throw(...);

Sids::AuthenticatedUser

Returns the SECURITY_AUTHENTICATED_USER_RID SID.

CSid AuthenticatedUser() throw(...);

Sids::BackupOps

Returns the DOMAIN_ALIAS_RID_BACKUP_OPS SID.

CSid BackupOps() throw(...);

Sids::Batch

Returns the SECURITY_BATCH_RID SID.

CSid Batch() throw(...);

Sids::CreatorGroup

Returns the SECURITY_CREATOR_GROUP_RID SID.

CSid CreatorGroup() throw(...);

Sids::CreatorGroupServer

Returns the SECURITY_CREATOR_GROUP_SERVER_RID SID.

CSid CreatorGroupServer() throw(...);

Sids::CreatorOwner

Returns the SECURITY_CREATOR_OWNER_RID SID.

CSid CreatorOwner() throw(...);

Sids::CreatorOwnerServer

Returns the SECURITY_CREATOR_OWNER_SERVER_RID SID.

CSid CreatorOwnerServer() throw(...);

Sids::Dialup

Returns the SECURITY_DIALUP_RID SID.

CSid Dialup() throw(...);

Sids::Guests

Returns the DOMAIN_ALIAS_RID_GUESTS SID.

CSid Guests() throw(...);

Sids::Interactive

Returns the SECURITY_INTERACTIVE_RID SID.

CSid Interactive() throw(...);

Sids::Local

Returns the SECURITY_LOCAL_RID SID.

CSid Local() throw(...);

Sids::Network

Returns the SECURITY_NETWORK_RID SID.

CSid Network() throw(...);

Sids::NetworkService

Returns the SECURITY_NETWORK_SERVICE_RID SID.

CSid NetworkService() throw(...);

Remarks

Use NetworkService to enable the NT AUTHORITY\NetworkService user to read a CPerfMon security object. NetworkService adds a SecurityAttribute to the ATLServer code which will allow the DLL to login under the NetworkService account on Windows XP Home Edition, Windows XP Professional, Windows Server 2003 and greater operating system.

When custom log counters are created with ATLServer CPerfMon class in the Perfmon MMC, the counters may not appear when viewing the log file although they will appear correctly in the realtime view. CPerfMon custom performance counters don't have the necessary permissions to run under the "Performance Logs and Alerts" service (smlogsvc.exe) on Windows XP Home Edition, Windows XP Professional, Windows Server 2003 (or greater) operating systems. This service runs under the "NT AUTHORITY\NetworkService" account.

Sids::Null

Returns the SECURITY_NULL_RID SID.

CSid Null() throw(...);

Sids::PreW2KAccess

Returns the DOMAIN_ALIAS_RID_PREW2KCOMPACCESS SID.

CSid PreW2KAccess() throw(...);

Sids::PowerUsers

Returns the DOMAIN_ALIAS_RID_POWER_USERS SID.

CSid PowerUsers() throw(...);

Sids::PrintOps

Returns the DOMAIN_ALIAS_RID_PRINT_OPS SID.

CSid PrintOps() throw(...);

Sids::Proxy

Returns the SECURITY_PROXY_RID SID.

CSid Proxy() throw(...);

Sids::RasServers

Returns the DOMAIN_ALIAS_RID_RAS_SERVERS SID.

CSid RasServers() throw(...);

Sids::Replicator

Returns the DOMAIN_ALIAS_RID_REPLICATOR SID.

CSid Replicator() throw(...);

Sids::RestrictedCode

Returns the SECURITY_RESTRICTED_CODE_RID SID.

CSid RestrictedCode() throw(...);

Sids::Self

Returns the SECURITY_PRINCIPAL_SELF_RID SID.

CSid Self() throw(...);

Sids::ServerLogon

Returns the SECURITY_SERVER_LOGON_RID SID.

CSid ServerLogon() throw(...);

Sids::Service

Returns the SECURITY_SERVICE_RID SID.

CSid Service() throw(...);

Sids::System

Returns the SECURITY_LOCAL_SYSTEM_RID SID.

CSid System() throw(...);

Sids::SystemOps

Returns the DOMAIN_ALIAS_RID_SYSTEM_OPS SID.

CSid SystemOps() throw(...);

Sids::TerminalServer

Returns the SECURITY_TERMINAL_SERVER_RID SID.

CSid TerminalServer() throw(...);

Sids::Users

Returns the DOMAIN_ALIAS_RID_USERS SID.

CSid Users() throw(...);

Sids::World

Returns the SECURITY_WORLD_RID SID.

CSid World() throw(...);

See also

Functions