Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Enable method sets the state of a binding path to be enabled or disabled.
Syntax
HRESULT Enable(
[in] BOOL fEnable
);
Parameters
- fEnable [in]
Specifies a Boolean value. This is set to TRUE for Enable to enable the binding path, and set to FALSE for Enable to disable the binding path.
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, Enable returns NETCFG_E_NO_WRITE_LOCK.
Requirements
Target platform |
Desktop |
Header |
Netcfgx.h (include Netcfgx.h) |
See also