Description:

This function is called to create a printer port. The printer port can be a virtual port.

Note: There is currently no support for using this API to remotely add a printer port.

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

PSZ      pszComputerName;  /*  Name of computer where port is to be installed. */
PSZ      pszPortName;      /*  Name of printer port to install. */
PSZ      pszPortDriver;    /*  Name of the port driver assigned to this port. */
ULONG    ulVersion;        /*  Version of port to create. */
PVOID    pBuf;             /*  Port-driver-specific buffer. */
ULONG    cbBuf;            /*  Length of the data in pBuf, in bytes. */
ULONG    rc;               /*  Return codes. */

rc = SplCreatePort(pszComputerName, pszPortName,
       pszPortDriver, ulVersion, pBuf, cbBuf);


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