HP Integrity NonStop H-Series User Manual

Page 214

Advertising
background image

Interfacing to LMM

Library Media Manager Installation and User’s Guide529970-002

D -56

Examples of Structure

SendBuffer3[119] = ' ';
SendBuffer3[120] = ' ';
SendBuffer3[121] = ' ';
SendBuffer3[122] = ' ';
SendBuffer3[123] = ' ';
SendBuffer3[124] = ' ';
SendBuffer3[125] = ' ';
SendBuffer3[126] = ' '; /* ERROR/STATUS CODE */
SendBuffer3[127] = ' ';
NumToSend = 128;

DELAY(1000);

ccx = WRITEX(TSISRVFileNum,

(char _far *)&SendBuffer3,

NumToSend,

(short _far *)&CountActuallyWritten,

WriteTag);

cc = READUPDATEX((short)nFileNumber,

(char _far *)anBuffer,

(short)sizeof(anBuffer),

(short _far *)&wCountRead);

nResult = REPLYX((char _far *)anBuffer,

(short)wCountRead);

memset(anBuffer,

0,

31000);

wCountRead = 0;

/* DISMOUNT */

SendBuffer4[0] = 0x31;/* COMMAND */
SendBuffer4[1] = 0x51;/* THIRD PARTY REQUEST */
SendBuffer4[2] = '\\'; /* DEVICE NODE NAME */
SendBuffer4[3] = 'T';
SendBuffer4[4] = 'S';
SendBuffer4[5] = 'I';
SendBuffer4[6] = 'S';
SendBuffer4[7] = '7';

Advertising
This manual is related to the following products: