Partager via


INetCfg::Apply method

The Apply method applies all changes that are made to the network configuration to the operating system.

Syntax

HRESULT Apply(
   void 
);

Parameters

  • **
    None

Return value

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.

Remarks

The Apply method calls the INetCfgComponentControl::ApplyRegistryChanges method for each component's notify object.

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

See also

INetCfgComponentControl::ApplyRegistryChanges

 

 

Send comments about this topic to Microsoft