ENUMOBJ.EXE is a console application that enumerates the high-level objects within an SMS site server database. This sample demonstrates the use of the enumeration functions SmsEnumObjects and SmsEnumObjectTypes.
ENUMOBJ.EXE runs as a console application. To run the program. type enumobj.exe. The program prompts you to enter the information needed to connect to the SQL server, displays the list of enumerated objects by category, and exits.
SmsAPIVer
SmsDataSourceConnect
SmsDataSourceDisconnect
SmsEnumObjects
SmsEnumObjectTypes
After logging on to a datasource, the program calls SmsEnumObjectTypes to retrieve all of the first-class object types. For each of these object types, the program calls SmsEnumObjects to obtain the details of the type.