Partager via


IEnumNetCfgComponent

The IEnumNetCfgComponent interface provides methods that enumerate the INetCfgComponentinterfaces for network components of a particular type installed on the operating system. Types of network components include network cards, protocols, services, and clients.

The interface identifier (IID) for this interface is IID_IEnumNetCfgComponent.

When to Implement

It is not necessary to implement the methods of this interface. They are implemented in Netcfgx.dll.

When to Use

Use this interface to retrieve the INetCfgComponent interfaces for network components of a particular type.

Methods

The following methods are listed in Vtable order:

IUnknown method Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments the reference count.

Release

Decrements the reference count.

 

IEnumNetCfgComponent method Description

Next

Retrieves the next specified number of items in the enumeration sequence.

Skip

Skips over the next specified number of items in the enumeration sequence.

Reset

Resets the enumeration sequence to the beginning item.

Clone

The Clonemethod is not implemented. Do not use it in your driver.

 

Comments

The IEnumNetCfgComponentinterface is a standard COM enumerator. To locate more information about COM enumerators and their methods, see the IEnumXXXX topic in the Microsoft Windows SDK.

Notify objects call the INetCfgClass::EnumComponentsmethod to obtain a pointer to IEnumNetCfgComponent.

See Also

INetCfgClass::EnumComponents, INetCfgComponent

Requirements

Header

Netcfgx.h (include Netcfgx.h)

 

 

Send comments about this topic to Microsoft