## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### SplDeletePort - Parameters

pszComputerName (PSZ) - input Name of computer where port is to be removed.

A NULL string identifies the local workstation. This currently must be NULL .

pszPortName (PSZ) - input Name of printer port to remove.

This can be a virtual port name. Following is an example of a port name:

      LPT5

Note: This port cannot be removed if it is referenced by a print device.

rc (ULONG) - returns Return codes.

0 Success

ERROR_DEVICE_IN_USE(99) Port name is connected to a print queue.

ERROR_INVALID_PARAMETER(87) An invalid buffer was given.

ERROR_NOT_SUPPORTED(50) pszComputerName is not supported.