--- title: IConfigServiceProvider2 GetNode description: IConfigServiceProvider2 GetNode ms.assetid: 4dc10a59-f6a2-45c0-927c-d594afc9bb91 ms.author: maricia ms.topic: article ms.prod: w10 ms.technology: windows author: MariciaAlforque ms.date: 06/26/2017 --- # IConfigServiceProvider2::GetNode This method returns a node from the configuration service provider based on the path that was passed in. The returned node is a descendent of the root node. ## Syntax ``` syntax HRESULT GetNode([in] IConfigManager2URI* pURI, [out] ICSPNode** ppNode, [in, out] DWORD* pgrfNodeOptions); ``` ## Parameters *pUri*
*ppNode*
*pgrfNodeOptions*
## Return Value This method returns an ICSPNode. If the function returns null, call GetLastError to get the error value. A value of S\_OK indicates that a node was successfully found. CFGMGR\_E\_NODENOTFOUND indicates that the node does not exist. Note that this may be normal, as in the case of optional nodes. ## Requirements **Header:** None