Freigeben über


INetCfgComponent::OpenParamKey method

The OpenParamKey method opens and retrieves the registry key that contains parameters for a network component.

Syntax

HRESULT OpenParamKey(
  [out, optional] HKEY *phkey
);

Parameters

  • phkey [out, optional]
    Pointer to a registry key handle that receives the open registry key for a network component.

Return value

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

Remarks

Notify objects that call OpenParamKey to retrieve a component's registry key must call the Win32 RegCloseKey function to close the key after they finish with it.

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

 

 

Send comments about this topic to Microsoft