共用方式為


INetCfgComponentSetup::Removing method

The Removing method directs the notify object of the network component to perform operations required for the component's removal.

Syntax

HRESULT Removing(
   void 
);

Parameters

  • **
    None

Return value

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

Remarks

The Removing method performs cleanup operations to prepare for the network component's removal.

Removing should not modify the registry. Only the INetCfgComponentControl::ApplyRegistryChanges method should make changes to the registry. The network configuration subsystem first calls Removing to initiate removal of the nextwork component and then calls ApplyRegistryChanges to remove information about the network component from the registry.

Requirements

Target platform

Desktop

Header

Netcfgn.h (include Netcfgn.h)

See also

INetCfgComponentControl::ApplyRegistryChanges

 

 

Send comments about this topic to Microsoft