Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Event.IndicateConnect

Called on the host's message handler when a player has requested a connection to the session.

IndicateConnect( _
    dpnotify As DPNMSG_INDICATE_CONNECT, _
    fRejectMsg As Boolean)

Parts

dpnotify
DPNMSG_INDICATE_CONNECT message type.
fRejectMsg
Boolean value that is set to False to enable the player to join the session and True to reject the player's request.

Remarks

After this method returns, the player's DirectPlay8Event.ConnectComplete method will be called with the response to their request to join the session. If the connection request was successful, the hResultCode member of the DPNMSG_CONNECT_COMPLETE type will be set to 0. If the request was rejected or failed, hResultCode will be set to an error code.