Windows Driver Kit: Network Devices and Protocols
INetCfgComponentBindings::MoveBefore
The MoveBefore method sets the order of two binding paths so one binding path comes before another reference binding path.
HRESULT
MoveBefore(
IN INetCfgBindingPath *pncbItemSrc,
IN INetCfgBindingPath *pncbItemDest
);
Parameters
- pncbItemSrc
- Pointer to the INetCfgBindingPath interface of the binding path to move.
- pncbItemDest
- Pointer to the INetCfgBindingPath interface of the reference binding path. MoveBefore places pncbItemSrc before pncbItemDest in the binding order. If this parameter is a NULL value, MoveBefore places pncbItemSrc at the beginning of the binding order.
Return Value
Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h.
Comments
If the INetCfg interface for the current networking configuration was not granted the write lock, MoveBefore returns NETCFG_E_NO_WRITE_LOCK.
Requirements
Headers: Defined in Netcfgx.h. Include Netcfgx.h.
See Also
INetCfg, INetCfgBindingPath