Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 284 Bytes

openservicea.md

File metadata and controls

10 lines (9 loc) · 284 Bytes

OpenServiceA

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern SC_HANDLE OpenServiceA(
    SC_HANDLE hSCManager,
    PCSTR lpServiceName,
    uint dwDesiredAccess);