INetCfg::FindComponent method

The FindComponent method retrieves the first network component that matches the specified component identifier.

Syntax

HRESULT FindComponent(
  [in]            LPCWSTR          pszwComponentId,
  [out, optional] INetCfgComponent **ppComponent
);

Parameters

  • pszwComponentId [in]
    Pointer to a constant null-terminated string of 16-bit Unicode characters containing the identifier of the component to find.

  • ppComponent [out, optional]
    Pointer to a buffer that receives a pointer to the INetCfgComponent interface of the first network component that matches the component identifier contained in pszwComponentId.

Return value

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

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

See also

INetCfgComponent

 

 

Send comments about this topic to Microsoft