SERVICE_SID_INFO structure (winsvc.h)
Represents a service security identifier (SID).
Syntax
typedef struct _SERVICE_SID_INFO {
DWORD dwServiceSidType;
} SERVICE_SID_INFO, *LPSERVICE_SID_INFO;
Members
dwServiceSidType
The service SID type.
Remarks
The change takes effect the next time the system is started.
The SCM adds the specified service SIDs to the process token, plus the following additional SIDs.
SID | Attributes |
---|---|
Logon SID | SE_GROUP_ENABLED | SE_GROUP_ENABLED_BY_DEFAULT | SE_GROUP_LOGON_ID | SE_GROUP_MANDATORY |
Local SID | SE_GROUP_MANDATORY | SE_GROUP_ENABLED | SE_GROUP_ENABLED_BY_DEFAULT |
This enables developers to control access to the objects a service uses, instead of relying on the use of the LocalSystem account to obtain access.
Use the LookupAccountName and LookupAccountSid functions to convert between a service name and a service SID. The account name is of the following form:
NT SERVICE\SvcName
Note that NT SERVICE is the domain name.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | winsvc.h (include Windows.h) |