Xerox -05W User Manual page 299

Xerox user's guide printer -05w, -07w & -11w
Table of Contents

Advertisement

Data Transmission Over A Slave DDE Link
Once initiated, TeemTalk enters Slave mode, diverting all input from the keyboard, for
example to the Client application, and permitting data to be sent to it from the Client.
Data coming from TeemTalk will be sent in the form of a DDE POKE message. A
suitable way of accepting this is outlined below.
DDEWndProc(HWND hWnd, unsigned message, WORD wParam, LONG lParam)
{
.
.
switch (message)
{
.
.
case WM_DDE_POKE:
ClientReceivedPoke(hWnd, (HWND)wParam, lParam);
break;
.
.
}
.
.
}
ClientReceivedPoke(
{
HANDLE
DDEPOKE FAR *
ATOM
char
hPokeData = LOWORD(lParam);
atomItem = HIWORD(lParam);
GlobalGetAtomName(atomItem, szItemName, ITEM_NAME_MAX_SIZE);
if (!(lpPokeData = (DDEPOKE FAR *)GlobalLock(hPokeData))
|| lpPokeData->cfFormat != CF_TEXT
|| (PartnerSentData(szItemName, lpPokeData->Value) == FALSE))
{
PostMessage(hWndPartnerDDE, WM_DDE_ACK, hWnd,
return;
}
/* Save value of fRelease, since pointer may be invalidated
bRelease = lpPokeData->fRelease;
HWND hWnd,
HWND hWndPartnerDDE,
LONG lParam
)
hPokeData;
lpPokeData;
atomItem;
szItemName[ITEM_NAME_MAX_SIZE];
Dynamic Data Exchange
MAKELONG(0, atomItem));
by GlobalUnlock */
13-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

-07w & -11w

Table of Contents