Microsoft DirectX 8.0 (C++) |
Microsoft® DirectPlay® generates the DPN_MSGID_DESTROY_PLAYER message when a player leaves a peer-to-peer or client/server session.
The DPNMSG_DESTROY_PLAYER structure contains information for the DPN_MSGID_DESTROY_PLAYER system message.
typedef struct _DPNMSG_DESTROY_PLAYER{ DWORD dwSize; DPNID dpnidPlayer; PVOID pvPlayerContext; DWORD dwReason; } DPNMSG_DESTROY_PLAYER, *PDPNMSG_DESTROY_PLAYER;
In client/server mode, this message is received only by the server. In peer-to-peer mode, all players receive this message.
You may receive DPN_MSGID_CREATE_PLAYER and DPN_MSGID_DESTROY_PLAYER messages on different threads. However, you will not receive a DPN_MSGID_DESTROY_PLAYER message before your callback function has returned from receiving a DPN_MSGID_CREATE_PLAYER message.
Windows NT/2000: Available as a redistributable for Windows 2000 and later.
Windows 95/98: Available as a redistributable for Windows 95 and later.
Header: Declared in Dplay8.h.