Description:

This function sets the BIDI capabilities of a printer port.

This function is used by the print object or other applications to enable or disable BIDI communications with a printer. If the port driver is capable of BIDI communications, SplSetPort can override the port driver and disable BIDI with the printer. This is useful in case there are problems with the BIDI components.

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

PSZ      pszComputerName;  /*  Name of the computer connected to the port. */
PSZ      pszPortName;      /*  Name of the port to set. */
ULONG    ulLevel;          /*  Level of information to set. */
PVOID    pBuf;             /*  Buffer containing new port setting. */
ULONG    cbBuf;            /*  Length of buffer pointed to by pBuf, in bytes. */
ULONG    ulParmNum;        /*  Parameter number used to change port settings. */
ULONG    rc;               /*  Return codes. */

rc = SplSetPort(pszComputerName, pszPortName,
       ulLevel, pBuf, cbBuf, ulParmNum);


[Back: SplSetPort]
[Next: SplSetPort Parameter - pszComputerName]