共用方式為


INetLanConnectionUiInfo::GetDeviceGuid method

The GetDeviceGuid method retrieves the identity of a LAN device in which to display the properties of the network component that owns a notify object.

Syntax

HRESULT GetDeviceGuid(
   __RPC__out GUID *pguid
);

Parameters

  • pguid
    Pointer to a buffer that receives a GUID representing a specific LAN device.

Return value

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

Remarks

A notify object can call GetDeviceGuid within its implementation of the INetCfgComponentPropertyUi::SetContext method to retrieve the GUID that represents a LAN device. SetContext directs a network component's notify object to display the component's properties in the context of that LAN device.

Requirements

Target platform

Desktop

Header

Netcfgn.h (include Netcfgn.h)

See also

INetCfgComponentPropertyUi::SetContext

 

 

Send comments about this topic to Microsoft