Microsoft DirectX 8.1 (C++)

IDirectPlay8AddressIP::GetLocalAddress

Retrieves the local address information from a DirectPlay 8 IP address. To succeed, the contained address must have at least the following elements.

HRESULT GetLocalAddress(
GUID* pguidAdapter,
USHORT* pusPort 
);

Parameters

pguidAdapter
[out] Pointer to a GUID to retrieve the GUID of the local device specified in this address.
pusPort
[out] Pointer to a USHORT to contain the port specified in this local address.

Return Values

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDPARAM
DPNERR_INVALIDPOINTER

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dpaddr.h.