Share via


INetCfgComponent::GetInstanceGuid method

The GetInstanceGuid method retrieves the instance GUID of a network component.

Syntax

HRESULT GetInstanceGuid(
  [out] GUID *pGuid
);

Parameters

  • pGuid [out]
    Pointer to a 32-bit variable that receives a GUID for the instance GUID of a 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, GetInstanceGuid returns E_POINTER.

Remarks

The instance GUID of a network component represents the component in the registry.

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

 

 

Send comments about this topic to Microsoft