##

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.

    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

IDirectPlay3::SendChatMessage, DPCHAT, IDirectPlay3::Receive

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.