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.
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. |
Returns the DOMAIN_ALIAS_RID_ACCOUNT_OPS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid AccountOps() throw(...);
Returns the DOMAIN_ALIAS_RID_ADMINS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Admins() throw(...);
Returns the SECURITY_ANONYMOUS_LOGON_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid AnonymousLogon() throw(...);
Returns the SECURITY_AUTHENTICATED_USER_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid AuthenticatedUser() throw(...);
Returns the DOMAIN_ALIAS_RID_BACKUP_OPS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid BackupOps() throw(...);
Returns the SECURITY_BATCH_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Batch() throw(...);
Returns the SECURITY_CREATOR_GROUP_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid CreatorGroup() throw(...);
Returns the SECURITY_CREATOR_GROUP_SERVER_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid CreatorGroupServer() throw(...);
Returns the SECURITY_CREATOR_OWNER_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid CreatorOwner() throw(...);
Returns the SECURITY_CREATOR_OWNER_SERVER_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid CreatorOwnerServer() throw(...);
Returns the SECURITY_DIALUP_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Dialup() throw(...);
Returns the DOMAIN_ALIAS_RID_GUESTS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Guests() throw(...);
Returns the SECURITY_INTERACTIVE_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Interactive() throw(...);
Returns the SECURITY_LOCAL_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Local() throw(...);
Returns the SECURITY_NETWORK_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Network() throw(...);
Returns the SECURITY_NETWORK_SERVICE_RID SID.
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.
Returns the SECURITY_NULL_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Null() throw(...);
Returns the DOMAIN_ALIAS_RID_PREW2KCOMPACCESS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid PreW2KAccess() throw(...);
Returns the DOMAIN_ALIAS_RID_POWER_USERS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid PowerUsers() throw(...);
Returns the DOMAIN_ALIAS_RID_PRINT_OPS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid PrintOps() throw(...);
Returns the SECURITY_PROXY_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Proxy() throw(...);
Returns the DOMAIN_ALIAS_RID_RAS_SERVERS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid RasServers() throw(...);
Returns the DOMAIN_ALIAS_RID_REPLICATOR SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Replicator() throw(...);
Returns the SECURITY_RESTRICTED_CODE_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid RestrictedCode() throw(...);
Returns the SECURITY_PRINCIPAL_SELF_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Self() throw(...);
Returns the SECURITY_SERVER_LOGON_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid ServerLogon() throw(...);
Returns the SECURITY_SERVICE_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Service() throw(...);
Returns the SECURITY_LOCAL_SYSTEM_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid System() throw(...);
Returns the DOMAIN_ALIAS_RID_SYSTEM_OPS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid SystemOps() throw(...);
Returns the SECURITY_TERMINAL_SERVER_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid TerminalServer() throw(...);
Returns the DOMAIN_ALIAS_RID_USERS SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid Users() throw(...);
Returns the SECURITY_WORLD_RID SID.
This function cannot be used in applications that execute in the Windows Runtime. |
CSid World() throw(...);