INetCfgBindingPath::GetDepth method
The GetDepth method retrieves the number of network components contained in a binding path.
Syntax
HRESULT GetDepth(
[out] ULONG *pcInterfaces
);
Parameters
- pcInterfaces [out]
Pointer to a 32-bit variable that receives the number of network components contained in a binding path.
Return value
Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h. If the returned pointer points to NULL, GetDepth returns E_POINTER.
Remarks
The number of binding interfaces contained in a binding path is one less than the number of network components that make up the binding path.
Requirements
Target platform |
Desktop |
Header |
Netcfgx.h (include Netcfgx.h) |