AfxEnumPrinterPortsfunction
Returns a list with the ports that available for printing on a specified server.
Syntax
FUNCTION AfxEnumPrinterPorts (BYVAL pwszServerName AS WSTRING PTR = NULL) AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
pwszServerName | The name of the printer to attach (as shown in the Devices and Printers applet of the Control Panel). If pwszServerName is NULL, the function enumerates the local machine's printer ports. |
Return value
A list of port names. Names are separated with a carriage return and a line feed characters.
Description
Returns a list with the ports that are available for printing on a specified server.
Reference
- Include file
AfxPrinter.inc - Defined in AfxNova/AfxPrinter.inc:157
- Documented in Printing/Printer Functions.md
- Topic: Printer Functions