Structure of the Keystroke Information
Personal Communications returns the keystroke information in the following structure:
typedef struct tagKEYSTROKE
{
unsigned char data[(sizeof(DDEDATA)-1)];
unsigned short uTextType; /* Type of keystrokes
unsigned char szKeyData_1¨; /* Keystrokes
} KEYSTROKE;
typedef union tagDDE_GETKEYSTROKE
{
DDEDATA DDEdata;
KEYSTROKE DDEkey;
} DDE_GETKEYSTROKE, *lpDDE_GETKEYSTROKE;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:
PCS_PURETEXT 0 /* Pure text, no HLLAPI commands
PCS_HLLAPITEXT 1 /* Text, including HLLAPI tokens