Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8server.GetLocalHostAddress

Retrieves the local addresses used to host the session.

GetLocalHostAddress(lFlags As Long) As DirectPlay8Address

Parts

lFlags
Reserved. Must be 0.

Return Values

Returns the DirectPlay8Address object that specifies the local host addresses.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DPNERR_BUFFERTOOSMALL
DPNERR_INVALIDOBJECT
DPNERR_INVALIDPARAM
DPNERR_INVALIDPOINTER
DPNERR_UNINITIALIZED
DPNERR_NOTHOST

Remarks

If the caller is not the session host, the error code is DPNERR_NOTHOST. Use DirectPlay8Peer.GetPeerAddress to retrieve the address of a remote player.