DEVICE DRIVERS
iPS_ExecuteScript()
M
X
800 SERIES PROGRAMMERS GUIDE 77
iPS_ExecuteScript()
This function spawns the execution of a given macro from a given loaded
VeriShield Security Script.
Prototype
int iPS_ExecuteScript(unsigned char ucScriptNumber, unsigned char
ucMacroID, unsigned short usINDataSize, unsigmed char * pucINData unsigned
short usMaximumOUTDataSize, unsigned short *pusOUTDataSize, unsigmed char
* pucOUTData)
Parameters.
ucScriptNumber Script number. Range [0..7]
unsigned char ucMacroID Number of the macro function to be executed.
usINDataSize The size of the input data (in bytes).
pucINData The pointer to the buffer containing the input data.
usMaximumOUTDataSize The maximum size of the output data. This typically
will be the size of the output buffer.
pusOUTDataSize Pointer to number of bytes returned by the macro in
the output buffer.
pucOUTData The pointer to the output buffer. The number of
bytes returned in the output buffer is specified by
pusOUTDataSize. If the macro is returns more
data than the output buffer can contain, an error
E_VS_BAD_LENGTH is returned and nothing is
copied into the output buffer.