INetworkConnection::GetAdapterId method (netlistmgr.h)

The GetAdapterID method returns the ID of the network adapter used by this connection.

Syntax

HRESULT GetAdapterId(
  [out] GUID *pgdAdapterId
);

Parameters

[out] pgdAdapterId

Pointer to a GUID that specifies the adapter ID of the TCP/IP interface used by this network connection.

Return value

Returns S_OK if the method succeeds.

Remarks

It is possible for multiple connections to have the same AdapterID.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netlistmgr.h

See also

INetworkConnection