| Microsoft DirectX 8.1 (C++) |
Microsoft® DirectPlay® sends the DPN_MSGID_ENUM_HOSTS_QUERY message to the host's message handler when a peer or client is enumerating the available hosts.
The DPNMSG_ENUM_HOSTS_QUERY structure contains information for the DPN_MSGID_ENUM_HOSTS_QUERY system message.
typedef struct _DPNMSG_ENUM_HOSTS_QUERY{
DWORD dwSize;
IDirectPlay8Address* pAddressSender;
IDirectPlay8Address* pAddressDevice;
PVOID pvReceivedData;
DWORD dwReceivedDataSize;
DWORD dwMaxResponseDataSize;
PVOID pvResponseData;
DWORD dwResponseDataSize;
PVOID pvResponseContext;
} DPNMSG_ENUM_HOSTS_QUERY, *PDPNMSG_ENUM_HOSTS_QUERY;
Return DPN_OK.
When you respond normally to this query, DirectPlay will send you a DPN_MSGID_RETURN_BUFFER message once the buffer is no longer needed. You can then safely free the buffer.
You can reject the query by returning a value that is not equal to DPN_OK. However, when you reject a query, DirectPlay does not send a reply, does not need a reply buffer, and does not generate a DPN_MSGID_RETURN_BUFFER message.
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.