Samples
SCMStatus
This sample illustrates using SQL Service Control Manager (SQL-SCM) w95scm.dll to query the execution state of the following services on a local computer:
- Microsoft® SQL Server (MSSQLServer)
- SQL Server Agent (SQLServerAgent)
- MS DTC (MSDTC)
SQL Service Control Manager (SQL-SCM) is an API supporting control of the Microsoft® SQL Server™ and related services for Microsoft Windows® 95/98 and Microsoft Windows NT®. This Microsoft® Visual C++® sample is a console application.
Default Location
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Misc\Scm\SCMStatus
Running the Sample
To run this program, open the SCM.dsw workspace and compile the program. Make sure the w95scm.dll is in the execution path.