Microsoft DirectX 9.0

IDirectPlay8AddressIP::GetLocalAddress Method

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


HRESULT GetLocalAddress(      

    GUID *pguidAdapter,     USHORT *pusPort );


[out] Pointer to a globally unique identifier (GUID) to retrieve the GUID of the local device specified in this address.
[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.


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

© 2002 Microsoft Corporation. All rights reserved.