IDirectPlay8AddressIP::GetLocalAddress Method

DirectPlay

 
Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDirectPlay8AddressIP::GetLocalAddress Method


Retrieves the local address information from a Microsoft® DirectPlay®   Internet Protocol (IP) address.

Syntax

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

Parameters

pguidAdapter
[out] Pointer to a globally unique identifier (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 Value

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

DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DPNERR_INVALIDPOINTERPointer specified as a parameter is invalid.

Remarks

To succeed, the contained address must have at least the following elements.

  • DPNA_KEY_PROVIDER
  • DPNA_KEY_DEVICE
  • DPNA_KEY_PORT



© 2003 Microsoft Corporation. All rights reserved.