INetCfgClass

The INetCfgClass interface provides methods that retrieve network components from a group containing a specified type of network component.

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

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 a network component of a specific type.

Methods

The following methods are listed in Vtable order:

IUnknown method Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

 

INetCfgClass method Description

FindComponent

Retrieves a network component belonging to a particular type.

EnumComponents

Retrieves an enumeration containing a collection of network components of a particular type.

 

Comments

Notify objects call the INetCfg::QueryNetCfgClass method to obtain a pointer to a INetCfgClass interface.

The classes of network components that notify objects can obtain are:

Class Represented by

Network cards

GUID_DEVCLASS_NET

Transports

GUID_DEVCLASS_NETTRANS

Network services

GUID_DEVCLASS_NETSERVICE

Network clients

GUID_DEVCLASS_NETCLIENT

 

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

 

See Also

INetCfg::QueryNetCfgClass

Requirements

Header

Netcfgx.h (include Netcfgx.h)

 

 

Send comments about this topic to Microsoft