Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 290 Bytes

openscmanager.md

File metadata and controls

10 lines (9 loc) · 290 Bytes

OpenSCManagerW

[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern SC_HANDLE OpenSCManagerW(
    PCWSTR lpMachineName,
    PCWSTR lpDatabaseName,
    uint dwDesiredAccess);