Udostępnij za pośrednictwem


About Creating a Data Discovery Record

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

To create data discovery records (DDRs), you must use the SMSResGenCtl.dll and the functions that are described in the following table. These functions create a single DDR that can be process by Data Discovery Manager (DDM). The order in which you call the functions is important; you must call DDRNew before calling any of the functions that add properties. The order in which you add properties to your class is arbitrary. However, the last function you call must be DDRWrite to create the DDR. The DDR must then be manually copied to the SMS\Inboxes\Auth\Ddm.box directory.

DDRs that fail to process are moved to the SMS\Inboxes\Ddm.box\Bad_ddrs directory. If you have logging turned on, you can view the DDM.log file for an explanation of the failure. After fixing the source of the errors, you can rerun your program to load the DDR.

C programmers can use the SMSRsGen.dll file to access the DDR functions. Visual Basic programmers can use the SMSResGenCtl.dll to access the DDR methods. These methods have the same name and parameters as the C library functions.

Because the SMSResGen control is not thread safe, do not try to create more than one instance of the class.

The SMSResGen method has the following functions:

Important

The function DDRSendToSMS, available in previous releases of the SDK and in versions of SMSRsGen.dll and SMSResGenCtl.dll, has been deprecated and should not be used with Configuration Manager 2007.

See Also

Concepts

System Center Configuration Manager Software Development Kit
Configuration Manager Discovery
Discovery Server COM Automation Classes