Share via


Security Identifier Global Functions

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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.

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.

Sids::AccountOps

Returns the DOMAIN_ALIAS_RID_ACCOUNT_OPS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid AccountOps() throw(...);

Sids::Admins

Returns the DOMAIN_ALIAS_RID_ADMINS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Admins() throw(...);

Sids::AnonymousLogon

Returns the SECURITY_ANONYMOUS_LOGON_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid AnonymousLogon() throw(...);

Sids::AuthenticatedUser

Returns the SECURITY_AUTHENTICATED_USER_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid AuthenticatedUser() throw(...);

Sids::BackupOps

Returns the DOMAIN_ALIAS_RID_BACKUP_OPS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid BackupOps() throw(...);

Sids::Batch

Returns the SECURITY_BATCH_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Batch() throw(...);

Sids::CreatorGroup

Returns the SECURITY_CREATOR_GROUP_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid CreatorGroup() throw(...);

Sids::CreatorGroupServer

Returns the SECURITY_CREATOR_GROUP_SERVER_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid CreatorGroupServer() throw(...);

Sids::CreatorOwner

Returns the SECURITY_CREATOR_OWNER_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid CreatorOwner() throw(...);

Sids::CreatorOwnerServer

Returns the SECURITY_CREATOR_OWNER_SERVER_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid CreatorOwnerServer() throw(...);

Sids::Dialup

Returns the SECURITY_DIALUP_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Dialup() throw(...);

Sids::Guests

Returns the DOMAIN_ALIAS_RID_GUESTS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Guests() throw(...);

Sids::Interactive

Returns the SECURITY_INTERACTIVE_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Interactive() throw(...);

Sids::Local

Returns the SECURITY_LOCAL_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Local() throw(...);

Sids::Network

Returns the SECURITY_NETWORK_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Network() throw(...);

Sids::NetworkService

Returns the SECURITY_NETWORK_SERVICE_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

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.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Null() throw(...);

Sids::PreW2KAccess

Returns the DOMAIN_ALIAS_RID_PREW2KCOMPACCESS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid PreW2KAccess() throw(...);

Sids::PowerUsers

Returns the DOMAIN_ALIAS_RID_POWER_USERS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid PowerUsers() throw(...);

Sids::PrintOps

Returns the DOMAIN_ALIAS_RID_PRINT_OPS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid PrintOps() throw(...);

Sids::Proxy

Returns the SECURITY_PROXY_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Proxy() throw(...);

Sids::RasServers

Returns the DOMAIN_ALIAS_RID_RAS_SERVERS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid RasServers() throw(...);

Sids::Replicator

Returns the DOMAIN_ALIAS_RID_REPLICATOR SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Replicator() throw(...);

Sids::RestrictedCode

Returns the SECURITY_RESTRICTED_CODE_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid RestrictedCode() throw(...);

Sids::Self

Returns the SECURITY_PRINCIPAL_SELF_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Self() throw(...);

Sids::ServerLogon

Returns the SECURITY_SERVER_LOGON_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid ServerLogon() throw(...);

Sids::Service

Returns the SECURITY_SERVICE_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Service() throw(...);

Sids::System

Returns the SECURITY_LOCAL_SYSTEM_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid System() throw(...);

Sids::SystemOps

Returns the DOMAIN_ALIAS_RID_SYSTEM_OPS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid SystemOps() throw(...);

Sids::TerminalServer

Returns the SECURITY_TERMINAL_SERVER_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid TerminalServer() throw(...);

Sids::Users

Returns the DOMAIN_ALIAS_RID_USERS SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid Users() throw(...);

Sids::World

Returns the SECURITY_WORLD_RID SID.

Important

This function cannot be used in applications that execute in the Windows Runtime.

CSid World() throw(...);

See Also

Functions