API Reference
Class
NativeServiceApi
Minimal native wrappers around the Windows Service Control Manager (SCM) to retrieve a service's start type without relying on Remote Registry or WMI. Works for local and remote machines via RPC to the SCM.
Inheritance
- Object
- NativeServiceApi
Methods
TryGetConfig(ComputerX.Services.NativeServiceApi.SafeScHandle arg1, System.String arg2) #Reads StartupType, BinaryPath, StartName, and Description for a service using SCM. Returns null on failure.
Parameters
- arg1 ComputerX.Services.NativeServiceApi.SafeScHandle
- arg2 System.String
TryGetStartType(System.String machineName, System.String serviceName) #Returns the service start type (Automatic/Manual/Disabled/Unknown). Uses SCM RPC and does not require Remote Registry or WMI.
Parameters
- machineName System.String
- serviceName System.String