Microsoft DirectX 8.1 (C++) |
Microsoft® DirectPlay® generates the DPN_MSGID_CREATE_PLAYER message when a player is added to a peer-to-peer or client/server session.
The DPNMSG_CREATE_PLAYER structure contains information for the DPN_MSGID_CREATE_PLAYER system message.
typedef struct _DPNMSG_CREATE_PLAYER{ DWORD dwSize; DPNID dpnidPlayer; PVOID pvPlayerContext; } DPNMSG_CREATE_PLAYER, *PDPNMSG_CREATE_PLAYER;
Return DPN_OK.
The only method of setting the player context value is through this system message. You can either set the player context value directly, through this message, or indirectly through DPN_MSGID_INDICATE_CONNECT. Once a player context value has been set, it cannot be changed.
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.