HP NonStop G-Series User Manual

Page 121

Advertising
background image

Silo Media Manager Installation and Users Guide

Interfacing to SMM

4-54

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] = 'K';
SendBuffer4[4] = '1';
SendBuffer4[5] = '0';
SendBuffer4[6] = '0';
SendBuffer4[7] = '0';
SendBuffer4[8] = ‘ ‘;
SendBuffer4[9] = ‘ ‘;
SendBuffer4[10] = ‘ ‘;
SendBuffer4[11] = ‘ ‘;
SendBuffer4[12] = '$'; /* SCSI DEVICE NAME */
SendBuffer4[13] = 'S';
SendBuffer4[14] = 'T';
SendBuffer4[15] = 'K';
SendBuffer4[16] = '9';
SendBuffer4[17] = '7';

Advertising
This manual is related to the following products: