Chapter 6 DDE Library
© National Instruments Corporation 6-19 LabWindows/CVI Standard Libraries
ServerDDEWriteint status = ServerDDEWrite (unsigned int conversationHandle, char itemName[],
unsigned int dataFormat, void *dataPointer,
unsigned int dataSize, unsigned int timeout);
Purpose
Writes data to a DDE client application when it requests data.
Parameters
Input conversationHandle unsigned integer Uniquely identifies the
conversation.
itemName string Uniquely identifies the output
item; for example, system.
dataFormat unsigned integer Valid data format; for example,
CF_TEXT.
dataPointer void pointer Buffer holding data.
dataSize unsigned integer Number of bytes to write.
Limited to 64 KB under
Windows 3.1 and Windows 95.
timeout unsigned integer Timeout in ms.
Return Value
status integer Refer to error codes in
Table 6-3.
Parameter Discussion
dataFormat must be a valid data format recognized by Microsoft Windows. The following are
the valid data formats supported by Microsoft Windows:
CF_TEXT CF_PALETTE
CF_BITMAP CF_PENDATA
CF_METAFILEPICT CF_RIFF
CF_SYLK CF_WAVE
CF_DIF CF_OWNERDISPLAY
CF_TIFF CF_DSPTEXT
CF_OEMTEXT CF_DSPBITMAP
CF_DIB CF_DSPMETAFILEPICT