Description:

SplProtSendCmd is an API exported by protocol converters. It is called by PrtQuery or PrtSet to convert generic commands into BIDI protocol-specific commands to send to the printer.

#define INCL_SPL
#define INCL_SPLBIDI
#include <os2.h>

PSZ       pszPortName;         /*  Port name. */
ULONG     ulType;              /*  Type of query and options. */
ULONG     ulCommand;           /*  Generic command code. */
PFN       pfnPdSendCmd;        /*  Port driver send-routine address. */
PFN       pfnBaseProtSendCmd;  /*  Base protocol converter address for ProtSendCmd routine. */
PVOID     pInData;             /*  May contain information required by PrtQuery and PrtSet. */
ULONG     cbInData;            /*  Length of information in pInData, in bytes. */
PVOID     pOutData;            /*  Return buffer. */
PULONG    pcbOutData;          /*  Points to the length of the output buffer. */
ULONG     rc;                  /*  Return codes. */

rc = SplProtSendCmd(pszPortName, ulType, ulCommand,
       pfnPdSendCmd, pfnBaseProtSendCmd, pInData,
       cbInData, pOutData, pcbOutData);


[Back: SplProtSendCmd]
[Next: SplProtSendCmd Parameter - pszPortName]