DirectX SDK

DPCHAT

The DPCHAT structure contains a DirectPlay chat message. Chat messages are sent with the IDirectPlay4::SendChatMessage method.

typedef struct {
    DWORD dwSize;
    DWORD dwFlags;
    union{
      LPWSTR lpszMessage;
      LPSTR  lpszMessageA;
    };
} DPCHAT, FAR *LPDPCHAT;

Members

dwSize
The size of the DPCHAT structure, dwSize = sizeof(DPCHAT).
dwFlags
Not used. Must be 0.
lpszMessage
Pointer to a Unicode string containing the message to be sent. Can only be used with a Unicode interface (IDirectPlay4).
lpszMessageA
Pointer to an ANSI string containing the message to be sent. Can only be used with an ANSI interface (IDirectPlay4A).

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.

See Also

IDirectPlay4::SendChatMessage