Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

SERVICE_ACCESS (Enums)
 
.
Summary
Specific access rights for a service.

C# Definition:

[Flags]
public enum SERVICE_ACCESS : uint
{
     STANDARD_RIGHTS_REQUIRED       = 0xF0000,
     SERVICE_QUERY_CONFIG       = 0x00001,
     SERVICE_CHANGE_CONFIG      = 0x00002,
     SERVICE_QUERY_STATUS       = 0x00004,
     SERVICE_ENUMERATE_DEPENDENTS   = 0x00008,
     SERVICE_START          = 0x00010,
     SERVICE_STOP           = 0x00020,
     SERVICE_PAUSE_CONTINUE     = 0x00040,
     SERVICE_INTERROGATE        = 0x00080,
     SERVICE_USER_DEFINED_CONTROL   = 0x00100,
     SERVICE_ALL_ACCESS         = (STANDARD_RIGHTS_REQUIRED     |
                       SERVICE_QUERY_CONFIG     |
                       SERVICE_CHANGE_CONFIG    |
                       SERVICE_QUERY_STATUS     |
                       SERVICE_ENUMERATE_DEPENDENTS |
                       SERVICE_START        |
                       SERVICE_STOP         |
                       SERVICE_PAUSE_CONTINUE       |
                       SERVICE_INTERROGATE      |
                       SERVICE_USER_DEFINED_CONTROL)
}

VB Definition:

VB .NET Definition:

Public Enum SERVICE_ACCESS As Integer

    STANDARD_RIGHTS_REQUIRED = &HF0000
    SERVICE_QUERY_CONFIG = &H1
    SERVICE_CHANGE_CONFIG = &H2
    SERVICE_QUERY_STATUS = &H4
    SERVICE_ENUMERATE_DEPENDENTS = &H8
    SERVICE_START = &H10
    SERVICE_STOP = &H20
    SERVICE_PAUSE_CONTINUE = &H40
    SERVICE_INTERROGATE = &H80
    SERVICE_USER_DEFINED_CONTROL = &H100
    SERVICE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED Or _
            SERVICE_QUERY_CONFIG Or _
            SERVICE_CHANGE_CONFIG Or _
            SERVICE_QUERY_STATUS Or _
            SERVICE_ENUMERATE_DEPENDENTS Or _
            SERVICE_START Or SERVICE_STOP Or _
            SERVICE_PAUSE_CONTINUE Or _
            SERVICE_INTERROGATE Or _
            SERVICE_USER_DEFINED_CONTROL
    SERVICE_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED Or SERVICE_QUERY_CONFIG Or SERVICE_CHANGE_CONFIG Or SERVICE_QUERY_STATUS Or SERVICE_ENUMERATE_DEPENDENTS Or SERVICE_START Or SERVICE_STOP Or SERVICE_PAUSE_CONTINUE Or SERVICE_INTERROGATE Or SERVICE_USER_DEFINED_CONTROL

End Enum

Notes:

see OpenService

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions