DDEDATA structure (dde.h)

Contains the data, and information about the data, sent as part of a WM_DDE_DATA message.

Syntax

typedef struct {
  unsigned short unused : 12;
  unsigned short fResponse : 1;
  unsigned short fRelease : 1;
  unsigned short reserved : 1;
  unsigned short fAckReq : 1;
  unsigned short usFlags;
  short          cfFormat;
  BYTE           Value[1];
} DDEDATA;

Members

unused

Type: unsigned short

Unused.

fResponse

Type: unsigned short

Indicates whether the data was sent in response to a WM_DDE_REQUEST message or a WM_DDE_ADVISE message. If this value is nonzero, the data was sent in response to a WM_DDE_REQUEST message.

fRelease

Type: unsigned short

Indicates whether the application receiving the WM_DDE_POKE message should free the data. If this value is nonzero, the application should free the data.

reserved

Type: unsigned short

Reserved.

fAckReq

Type: BYTE

Indicates whether the application receiving the WM_DDE_DATA message should acknowledge receipt of the data by sending a WM_DDE_ACK message. If this value is nonzero, the application should send the acknowledgment.

usFlags

cfFormat

Type: short

The format of the data. The format should be a standard or registered clipboard format. The following standard clipboard formats can be used:

CF_BITMAP (2)

CF_DIB (8)

CF_DIF (5)

CF_ENHMETAFILE (14)

CF_METAFILEPICT (3)

CF_OEMTEXT (7)

CF_PALETTE (9)

CF_PENDATA (10)

CF_RIFF (11)

CF_SYLK (4)

CF_TEXT (1)

CF_TIFF (6)

CF_WAVE (12)

CF_UNICODETEXT (13)

Value[1]

Type: BYTE[1]

Contains the data. The length and type of data depend on the cfFormat member.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header dde.h (include Windows.h)

See also

About Dynamic Data Exchange

Conceptual

Reference

WM_DDE_ACK

WM_DDE_ADVISE

WM_DDE_DATA

WM_DDE_POKE

WM_DDE_REQUEST