Visual Basic (Declaration) | |
---|---|
Public Enum ServiceAccessRights Inherits System.Enum |
C# | |
---|---|
public enum ServiceAccessRights : System.Enum |
Member | Description |
---|---|
ACCESS_SYSTEM_SECURITY | Required to call the QueryServiceObjectSecurity or SetServiceObjectSecurity function to access the SACL. The proper way to obtain this access is to enable the SE_SECURITY_NAME privilege in the caller's current access token, open the handle for ACCESS_SYSTEM_SECURITY access, and then disable the privilege. |
DELETE | Required to call the DeleteService function to delete the service. |
GENERIC_EXECUTE | Includes STANDARD_RIGHTS_EXECUTE, SERVICE_START, SERVICE_STOP, SERVICE_PAUSE_CONTINUE, and SERVICE_USER_DEFINED_CONTROL |
GENERIC_READ | Includes STANDARD_RIGHTS_READ, SERVICE_QUERY_CONFIG, SERVICE_QUERY_STATUS, SERVICE_INTERROGATE and SERVICE_ENUMERATE_DEPENDENTS. |
GENERIC_WRITE | Includes STANDARD_RIGHTS_WRITE and SERVICE_CHANGE_CONFIG. |
READ_CONTROL | Required to call the QueryServiceObjectSecurity function to query the security descriptor of the service object. |
SERVICE_ALL_ACCESS | Includes STANDARD_RIGHTS_REQUIRED in addition to all access rights in this table. |
SERVICE_CHANGE_CONFIG | Required to call the ChangeServiceConfig or ChangeServiceConfig2 function to change the service configuration. Because this grants the caller the right to change the executable file that the system runs, it should be granted only to administrators. |
SERVICE_ENUMERATE_DEPENDENTS | Required to call the EnumDependentServices function to enumerate all the services dependent on the service. |
SERVICE_INTERROGATE | Required to call the EnumDependentServices function to enumerate all the services dependent on the service. |
SERVICE_PAUSE_CONTINUE | Required to call the ControlService function to pause or continue the service. |
SERVICE_QUERY_CONFIG | Required to call the QueryServiceConfig and QueryServiceConfig2 functions to query the service configuration. |
SERVICE_QUERY_STATUS | Required to call the QueryServiceStatusEx function to ask the service control manager about the status of the service. |
SERVICE_START | Required to call the StartService function to start the service. |
SERVICE_STOP | Required to call the ControlService function to stop the service. |
SERVICE_USER_DEFINED_CONTROL | Required to call the ControlService function to specify a user-defined control code. |
STANDARD_RIGHTS_EXECUTE | READ_CONTROL |
STANDARD_RIGHTS_READ | READ_CONTROL |
STANDARD_RIGHTS_REQUIRED | READ_CONTROL, DELETE, WRITE_DAC, WRITE_OWNER |
STANDARD_RIGHTS_WRITE | READ_CONTROL |
WRITE_DAC | Required to call the SetServiceObjectSecurity function to modify the Dacl member of the service object's security descriptor. |
WRITE_OWNER | Required to call the SetServiceObjectSecurity function to modify the Owner and Group members of the service object's security descriptor. |
System.Object
System.ValueType
System.Enum
CSharpTest.Net.Services.ServiceAccessRights
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7