Samples
SQL-SCM Samples
The following samples illustrate Microsoft® SQL Server™ 2000 SQL-SCM development.
Sample | Description |
---|---|
SCMControl | C++ Sample. Illustrates using SQL Service Control Manager (SQL-SCM) to query and change the execution state of services on a local computer. |
SCMStatus | C++ Sample. Illustrates using SQL Service Control Manager (SQL-SCM) w95scm.dll to query the execution state of services on a local computer. |
To install the samples during SQL Server installation
- On the Setup Type page, select Custom.
- On the Select Components page, under Components, select Code Samples.
Samples are installed as a self-extracting file. To extract the samples, double-click Unzip_ado.misc, located at
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Misc.
Prerequisites
C and C++ samples require Microsoft Visual C++ version 6.0.