The Apply method applies all changes that are made to the network configuration to the operating system.
HRESULT Apply( void );
Returns zero (S_OK) if successful, indicating changes were applied, and returns NETCFG_S_REBOOT if the applied changes required a system reboot. If the INetCfg interface was not granted the write lock, Apply returns NETCFG_E_NO_WRITE_LOCK. Apply can also return other NETCFG_* codes that are defined in Netcfgx.h.
The Apply method calls the INetCfgComponentControl::ApplyRegistryChanges method for each component's notify object.
|Netcfgx.h (include Netcfgx.h)|