CSharpTest.Net
ServiceAccessRights Enumeration
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Services Namespace : ServiceAccessRights Enumeration

Glossary Item Box

Access control rights specific to a Win32 Service

Syntax

Visual Basic (Declaration) 
Public Enum ServiceAccessRights 
   Inherits System.Enum
C# 
public enum ServiceAccessRights : System.Enum 

Members

MemberDescription
ACCESS_SYSTEM_SECURITYRequired 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.
DELETERequired to call the DeleteService function to delete the service.
GENERIC_EXECUTEIncludes STANDARD_RIGHTS_EXECUTE, SERVICE_START, SERVICE_STOP, SERVICE_PAUSE_CONTINUE, and SERVICE_USER_DEFINED_CONTROL
GENERIC_READIncludes STANDARD_RIGHTS_READ, SERVICE_QUERY_CONFIG, SERVICE_QUERY_STATUS, SERVICE_INTERROGATE and SERVICE_ENUMERATE_DEPENDENTS.
GENERIC_WRITEIncludes STANDARD_RIGHTS_WRITE and SERVICE_CHANGE_CONFIG.
READ_CONTROLRequired to call the QueryServiceObjectSecurity function to query the security descriptor of the service object.
SERVICE_ALL_ACCESSIncludes STANDARD_RIGHTS_REQUIRED in addition to all access rights in this table.
SERVICE_CHANGE_CONFIGRequired 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_DEPENDENTSRequired to call the EnumDependentServices function to enumerate all the services dependent on the service.
SERVICE_INTERROGATERequired to call the EnumDependentServices function to enumerate all the services dependent on the service.
SERVICE_PAUSE_CONTINUERequired to call the ControlService function to pause or continue the service.
SERVICE_QUERY_CONFIGRequired to call the QueryServiceConfig and QueryServiceConfig2 functions to query the service configuration.
SERVICE_QUERY_STATUSRequired to call the QueryServiceStatusEx function to ask the service control manager about the status of the service.
SERVICE_STARTRequired to call the StartService function to start the service.
SERVICE_STOPRequired to call the ControlService function to stop the service.
SERVICE_USER_DEFINED_CONTROLRequired to call the ControlService function to specify a user-defined control code.
STANDARD_RIGHTS_EXECUTEREAD_CONTROL
STANDARD_RIGHTS_READREAD_CONTROL
STANDARD_RIGHTS_REQUIREDREAD_CONTROL, DELETE, WRITE_DAC, WRITE_OWNER
STANDARD_RIGHTS_WRITEREAD_CONTROL
WRITE_DACRequired to call the SetServiceObjectSecurity function to modify the Dacl member of the service object's security descriptor.
WRITE_OWNERRequired to call the SetServiceObjectSecurity function to modify the Owner and Group members of the service object's security descriptor.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         CSharpTest.Net.Services.ServiceAccessRights

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys