ControlService
[DllImport("ADVAPI32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL ControlService(
SC_HANDLE hService,
uint dwControl,
SERVICE_STATUS* lpServiceStatus);
Last updated