Set the parameter value identified by the index. The index will range from 0 to the total number of parameters - 1. This number can be obtained by calling the cwbRC_GetParmCount API. Note that this function is to be used to change a parameter. Use cwbRC_AddParm to create the parameter.
unsigned int CWB_ENTRY cwbRC_SetParm(
cwbRC_PgmHandle program,
unsigned short index,
unsigned short type,
unsigned long length,
const unsigned char *parameter);
The following list shows common return values.
Parameter data is assumed to be binary. No conversion will be performed on the parameter data unless one of the conversion flags is set. For example:
cwbRC_SetParm( hPgm,
CWBRC_INOUT | CWBRC_TEXT_CONVERT_OUTPUT,
bufferSize,
buffer );
will use the buffer as is to send to the host, and will convert the output (for example, to ASCII) before putting the result into the buffer.