DPMSG_CHAT
Contains information for the DPSYS_CHAT system message. The system message is generated for a local player receiving a chat message from another player.
Syntax
typedef struct{ DWORD dwType; DWORD dwFlags; DPID idFromPlayer; DPID idToPlayer; DPID idToGroup; LPDPCHAT lpChat; } DPMSG_CHAT, FAR *LPDPMSG_CHAT;Members
- dwType
- Identifies the message. This member has the value DPSYS_CHAT.
- dwFlags
- Not used.
- idFromPlayer
- The DPID of the player from whom the message originated. DPID_SERVERPLAYER indicates the message originated from the server.
- idToPlayer
- The DPID of the player to whom the message was directed. If this DPID is zero, then the message was sent to a group or broadcast to everyone.
- idToGroup
- The DPID of the group to whom the message was directed. If this DPID is zero and idToPlayer is also zero, then the message was broadcast to everyone.
- lpChat
- Pointer to a DPCHAT structure containing the content of the chat message received.
Remarks
Use the idFromPlayer value to determine who sent the message. The value of lpidFrom available through Receive will always be zero, so you must retrieve the value of idFromPlayer in the DPMSG_CHAT structure.
See Also
IDirectPlay4::SendChatMessage, DPCHAT, IDirectPlay4::Receive
Top of Page
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.