Microsoft DirectX 8.1 (C++) |
Retrieves the address for the specified remote player in the session.
HRESULT GetPeerAddress( const DPNID dpnid, IDirectPlay8Address **const pAddress, const DWORD dwFlags );
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDOBJECT |
DPNERR_INVALIDPLAYER |
DPNERR_INVALIDPARAM |
DPNERR_INVALIDPOINTER |
DPNERR_UNINITIALIZED |
This method cannot be used to retrieve the address of the local player. If the player calls this method on his or her own ID, it returns a DPNERR_INVALIDPLAYER error message.
Use IDirectPlay8Peer::GetLocalHostAddresses to retrieve addresses that can be used to connect to the session.
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 Dplay8.h.