Description:
SplProtXlateCmd is an API exported by protocol converters. It is called only by port drivers when processing the BIDI_WAIT_ALERT(8016h) command in the port driver SplPdQuery API. The purpose is to convert a protocol-specific message received from the printer into a generic command structure that can be used by the port driver and spooler.
#define INCL_SPL #define INCL_SPLBIDI #include <os2.h> PSZ pszPortName; /* Port name. */ PFN pfnBaseProtXlateCmd; /* Base protocol converter address for ProtXlateCmd routine. */ PVOID pInData; /* Command sequence for printer. */ ULONG cbInData; /* Length of information in pInData, in bytes. */ PVOID pAlertInfo; /* Alert information buffer. */ PVOID pOutData; /* Return buffer. */ PULONG pcbOutData; /* Points to the length of the output buffer. */ ULONG rc; /* Return codes. */ rc = SplProtXlateCmd(pszPortName, pfnBaseProtXlateCmd, pInData, cbInData, pAlertInfo, pOutData, pcbOutData);