Microsoft DirectX 9.0 SDK Update (Summer 2003) |
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_INVALIDPARAM One or more of the parameters passed to the method are invalid. DPNERR_INVALIDPOINTER Pointer 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