Help Center

AfxGetPrinterPortfunction

Returns the port name for a given printer name.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxGetPrinterPort (BYREF wszPrinterName AS WSTRING) AS DWSTRING

Parameters

NameDescription
wszPrinterNameThe printer name.

Return value

The port name.

Description

Returns the port name for a given printer name.

Reference

  • Include file AfxPrinter.inc
  • Defined in AfxNova/AfxPrinter.inc:221
  • Documented in Printing/Printer Functions.md
  • Topic: Printer Functions