Microsoft DirectX 9.0

IDirectPlay8NATResolver::GetAddresses Method

Retrieves the list of IDirectPlay8Address objects on which the Network Address Translation (NAT) Resolver has been started.


HRESULT GetAddresses(      

    IDirectPlay8Address **const ppAddresses,     DWORD *const pdwNumAddresses,     const DWORD dwFlags );


[out] Receives an array of IDirectPlay8Address address objects.
[in] Number of address objects returned in the ppAddresses.
[in] Reserved. Set to NULL.

Return Value

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

DPNERR_BUFFERTOOSMALLThe supplied buffer is not large enough to contain the requested data.
DPNERR_INVALIDFLAGSThe flags passed to this method are invalid.
DPNERR_INVALIDOBJECTThe Microsoft?DirectPlay?object pointer is invalid.
DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DPNERR_NOCONNECTIONNo communication link was established.
DPNERR_UNINITIALIZEDThe requested object has not been initialized.


IDirectPlay8Address::Release must be called on each of the address interface pointers returned by IDirectPlay8NATResolver::GetAddresses when you are finished with the objects.

© 2002 Microsoft Corporation. All rights reserved.