Microsoft DirectX 8.1 (C++) |
Retrieves the local addresses being used to host the session.
HRESULT GetLocalHostAddresses( IDirectPlay8Address **const prgpAddress, DWORD *const pcAddress, const DWORD dwFlags );
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDOBJECT |
DPNERR_BUFFERTOOSMALL |
DPNERR_INVALIDPARAM |
DPNERR_INVALIDPOINTER |
DPNERR_UNINITIALIZED |
The most robust way to use this method is to first call it with pcAddress set to 0. When the method returns, pcAddress will point to the required value. You can use that value when you call the method for a second time to retrieve the information.
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.