Compartilhar via


INetCfgComponentNotifyGlobal::SysNotifyComponent method

Note   This method is deprecated and should not be used.

 

The SysNotifyComponent method informs the notify object of the network component that another component has been installed or removed. This method directs the notify object to perform operations related to the change.

Syntax

HRESULT SysNotifyComponent(
  [in] DWORD            dwChangeFlag,
  [in] INetCfgComponent *pnccItem
);

Parameters

  • dwChangeFlag [in]
    Specifies a mask enumerating the types of component changes that occurred. This value can contain a combination of the following types from the BIND_FLAGS1 enumeration:

    Value Description

    NCN_ADD

    Adds the component.

    NCN_REMOVE

    Removes the component.

    NCN_UPDATE

    Updates the component.

    NCN_NET

    Adds, removes, or updates a network card.

    NCN_NETTRANS

    Adds, removes, or updates a protocol.

    NCN_NETCLIENT

    Adds, removes, or updates a client.

    NCN_NETSERVICE

    Adds, removes, or updates a service.

     

    Note  NetClient components are deprecated in Windows 8.1, Windows Server 2012 R2, and later.

     

  • pnccItem [in]
    Pointer to the INetCfgComponent interface of the item involved in the specified change.

Return value

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

Requirements

Target platform

Desktop

Header

Netcfgn.h

See also

INetCfgComponent

 

 

Send comments about this topic to Microsoft