Compartilhar via


INetCfgComponent::GetClassGuid method

The GetClassGuid method retrieves the class GUID for the type of network component that a component is.

Syntax

HRESULT GetClassGuid(
  [out] GUID *pGuid
);

Parameters

  • pGuid [out]
    Pointer to a 32-bit variable that receives a class GUID indicating a type of network component.

Return value

Returns zero (S_OK) if successful; otherwise, returns NETCFG_* codes that are defined in Netcfgx.h. If the pGuid parameter is NULL, GetClassGuid returns E_POINTER.

Remarks

A class GUID indicates a type of network component. Types of network components are network cards, protocols, services, and clients. The Devguid.h header file defines the following network class GUIDs:

Value Description

GUID_DEVCLASS_NET

Network card

GUID_DEVCLASS_NETTRANS

Network protocol

GUID_DEVCLASS_NETCLIENT

Network client

GUID_DEVCLASS_NETSERVICE

Network service

 

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

 

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

 

 

Send comments about this topic to Microsoft