INetCfgComponentBindings::BindTo method

The BindTo method activates all binding paths that a network component shares with another specified network component.

Syntax

HRESULT BindTo(
  [in] INetCfgComponent *pnccItem
);

Parameters

  • pnccItem [in]
    Pointer to the INetCfgComponent interface for the network component that BindTo uses to activate binding paths.

Return value

Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h.

Remarks

If the INetCfg interface for the current networking configuration was not granted the write lock, BindTo returns NETCFG_E_NO_WRITE_LOCK.

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

See also

INetCfg

INetCfgComponent

 

 

Send comments about this topic to Microsoft