The Microsoft® Platform SDK provides sample applications that use the SMS API. Each sample is located in its own directory in the \MSSDK\SAMPLES\SYSMGMT\SMS\SMSAPI directory on the Platform SDK CD-ROM.
All samples can be built using the tools, libraries, and header files described in Installing the SMS API Components. Unless otherwise stated, each sample can be built by running NMAKE against the makefile in the appropriate directory.
Before running these sample applications, follow the steps described in Installing Your Application.
Many of these applications run in console mode, displaying output directly to the screen console. In order to better view the output data, you may want to run these applications in a Command Prompt with a large Screen Buffer size. You can set the Screen Buffer size in the Command Prompt Properties dialog box. Another option is to redirect the output to a file that can be viewed after the application has completed.
In addition to the samples listed below, the SAMPLES\SMS\SMSAPI directory contains noncompilable sample code (ISVREG.C and ISVREG.H) that registers applications for launch from the SMS Administrator console. See Sample Code to Register Applications for information on these samples.
The following sample applications are provided in this SDK: