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

SCM_ACCESS (Enums)
 
.

The Windows security model enables you to control access to the service control manager (SCM) and service objects. The following provides detailed information regarding the Access Rights for the Service Control Manager.

Summary
TODO - a short description

C# Definition:

[Flags]
public enum SCM_ACCESS : uint
{
     STANDARD_RIGHTS_REQUIRED       = 0xF0000,
     SC_MANAGER_CONNECT         = 0x00001,
     SC_MANAGER_CREATE_SERVICE      = 0x00002,
     SC_MANAGER_ENUMERATE_SERVICE   = 0x00004,
     SC_MANAGER_LOCK        = 0x00008,
     SC_MANAGER_QUERY_LOCK_STATUS   = 0x00010,
     SC_MANAGER_MODIFY_BOOT_CONFIG  = 0x00020,
     SC_MANAGER_ALL_ACCESS      = STANDARD_RIGHTS_REQUIRED |
                      SC_MANAGER_CONNECT |
                      SC_MANAGER_CREATE_SERVICE |
                      SC_MANAGER_ENUMERATE_SERVICE |
                      SC_MANAGER_LOCK |
                      SC_MANAGER_QUERY_LOCK_STATUS |
                      SC_MANAGER_MODIFY_BOOT_CONFIG
}

VB Definition:

<Flags()> _
Public Enum SCM_ACCESS As UInteger
    STANDARD_RIGHTS_REQUIRED = &HF0000
    SC_MANAGER_CONNECT = &H1
    SC_MANAGER_CREATE_SERVICE = &H2
    SC_MANAGER_ENUMERATE_SERVICE = &H4
    SC_MANAGER_LOCK = &H8
    SC_MANAGER_QUERY_LOCK_STATUS = &H10
    SC_MANAGER_MODIFY_BOOT_CONFIG = &H20
    SC_MANAGER_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED And SC_MANAGER_CONNECT And SC_MANAGER_CREATE_SERVICE And SC_MANAGER_ENUMERATE_SERVICE And SC_MANAGER_LOCK And SC_MANAGER_QUERY_LOCK_STATUS And SC_MANAGER_MODIFY_BOOT_CONFIG
End Enum

Notes:

see OpenSCManager

Notes:

see OpenSCManager

Documentation
SCM_ACCESS on MSDN
 

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