The SQL-SCM API is constructed as multibyte character and Unicode versions of two functions: SQLSCMLocalServiceControl and SQLSCMGetLocalServiceState.
SQLSCMLocalServiceControl implements Microsoft® SQL Server™ (MSSQLServer), SQL Server Agent (SQLServerAgent), and MS DTC (MSDTC) service start and stop. For the MSSQLServer service, SQLSCMLocalServiceControl implements service pause and continue.
SQLSCMGetLocalServiceState implements service execution state determination.
Application development using SQL-SCM follows that used by any C/C++ application using an API implemented as functions exported from a DLL. The developer:
Note Service state constants, such as SERVICE_RUNNING, are defined in Windows.h. Include Windows.h in modules using SQLSCMGetLocalServiceState.