Dynamic data exchange, Example 2 – Xerox -05W User Manual

Page 303

Advertising
background image

13-11

Dynamic Data Exchange

case B2400:

iBaud = 2400;

break;

case B4800:

iBaud = 4800;

break;

case B9600:

iBaud = 9600;

break;

case B19200:

iBaud = 19200;

break;

}

return iBaud

}

Example 2

Read the currently defined Answerback string and place in given buffer.

GetAnswerback(LPSTR szAnswer, int iAnsLen)

{

ATOM aAnswer;

int iStrLen;

aAnswer = (ATOM)GetSetting(hWnd, hWndPartner, IDM_EMUL,

ANSSTRING, 0);

if (aAnswer == -1)

return -1;

iStrLen = GlobalGetAtomName(aAnswer, szAnswer, iAnsLen);

GlobalDeleteAtom(aAnswer);

return iStrLen;

}

Advertising
This manual is related to the following products: