--- title: ICSPNode Add description: ICSPNode Add ms.assetid: 5f03d350-c82b-4747-975f-385fd8b5b3a8 ms.reviewer: manager: dansimp ms.author: v-madhi ms.topic: article ms.prod: w10 ms.technology: windows author: v-madhi ms.date: 06/26/2017 --- # ICSPNode::Add This method adds an immediate child node to a configuration service provider node and returns a pointer to the new node. ## Syntax ``` syntax HRESULT Add([in] IConfigManager2URI* pChildName, [in] CFG_DATATYPE DataType, [in] VARIANT varValue, [in, out] ICSPNode** ppNewNode, [in, out] DWORD* pgrfNodeOptions); ``` ## Parameters *pChildName* Name of child node to add. *DataType* Data type of the child node to add. Supported types include: - CFG\_DATATYPE\_NODE - CFG\_DATATYPE\_NULL - CFG\_DATATYPE\_BINARY - CFG\_DATATYPE\_INTEGER - CFG\_DATATYPE\_STRING - CFG\_DATATYPE\_MULTIPLE\_STRING *varValue* Value of the child node to add. *ppNewNode* New child node to return. *pgrfNodeOptions* Features supported on the new child node.
Feature name | Bit value (in hex) | Notes |
---|---|---|
|
0x01 |
The native security option signifies that the node handles its own security checking, and that ConfigManager2 does not have to manage security for this node. |
|
0x02 |
The internal transactioning option tells ConfigManager2 that the configuration service provider handles the transactioning (rollback and commitment) for the node. To handle internal transactioning, the node must implement the [ICSPNodeTransactioning](icspnodetransactioning.md). |
|
0x04 |
Unused. |
|
0x08 |
Unused. |