Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 2.74 KB

File metadata and controls

71 lines (52 loc) · 2.74 KB
title titleSuffix description ms.date ms.subservice ms.service ms.topic ms.assetid author ms.author manager ms.localizationpriority ms.collection ms.reviewer
DDRNew
Configuration Manager
In Configuration Manager, the DDRNew function begins a new data discovery record.
09/20/2016
sdk
configuration-manager
reference
36745a1f-7b0a-4b29-b36c-5a6d48442ef7
Banreet
banreetkaur
apoorvseth
low
tier3
mstewart,aaroncz

DDRNew

The DDRNew function, in Configuration Manager, begins a new data discovery record (DDR).

Syntax

[IDL]  
HRESULT DDRNew();  

Parameters

Architecture
Name of the architecture. The name can refer to an existing or new architecture. The name is used to determine the resource class name. For example, specifying Car identifies the SMS_R_Car resource class.

AgentName
Discovery agent that reports the DDR. This name, which should be unique, is added to the AgentName property array.

SiteCode
Site where the resource was discovered. This site name is added to the AgentSite property array.

Return Values

The DDRNew function always returns S_OK.

Remarks

You must call this function first for each DDR that you create; calling this function begins your DDR.

The sArchitecture string is used to identify your resource class name and can take one of the following forms:

  • A single word such as Car, which you can use to identify the SMS_R_Carresource class.

  • A multiword string such as Carpool Inventory, which you can use to identify the SMS_R_CarpoolInventory resource class.

  • A DMTF-formatted string such as ACME|Car|1.0, which you can use to identify the SMS_R_ACME_Car_1_0 resource class.

  • The string "System" identifies a computer system.

    The agent name, sAgentName, should always be filled in and should identify the program used to generate the DDR.

Requirements

Runtime Requirements

smsrsgenctl.dll

smsrsgen.dll

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

DDRWrite
DDRPropertyFlagsEnum Enumeration
SMSResGen COM Automation Class
ISMSResGen Interface