Structure of the Keystroke Information

Personal Communications returns the keystroke information in the following structure:
typedef struct tagKEYSTROKE
{
 unsigned unused:12;        // *** unused ***
 unsigned fResponse:1;      // TRUE = DDE_REQUEST response
 unsigned fRelease:1;       // TRUE = Client frees this data
 unsigned reserved:1;       // *** reserved ***
 unsigned fAckReq:1;        // TRUE = Client returns DDE_ACK
 int      cfFormat;         // Format of keystroke data CF_DSPTEXT
 unsigned uTextType;        // Type of keystrokes
 unsigned char szKeyData[1];// Keystrokes
}  KEYSTROKE, far *lpKEYSTROKE;

The format for the keystrokes parameters is the same as for the Session Execute Macro function SENDKEY command.

The following key text types are supported:
WC_CHARACTER  0 // Pure text, no command
WC_TOKEN      1 // including commands