Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Event.EnumHostsQuery

Called when host enumeration is requested through the DirectPlay8Peer.EnumHosts or DirectPlay8Client.EnumHosts method.

EnumHostsQuery( _
    dpnotify As DPNMSG_ENUM_HOSTS_QUERY, _
    fRejectMsg As Boolean)

Parts

dpnotify
DPNMSG_ENUM_HOSTS_QUERY message type containing received data.
fRejectMsg
Boolean value that is set to True to reject the enumeration request. However, if you reject the query, Microsoft® DirectPlay® will not call the client's DirectPlay8Event.EnumHostsResponse, so they will not be aware that you are hosting a session.