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