GetPrinterName

This method returns NULL or the name of the printer configured in the connection. The method might not return the same string each time.

The string is valid only for the lifetime of the object. You must either make a copy of the string or make a call to this method each time you need it.

PrinterName must have the following format:
<Printer name> on <Port Name>
For example:
  • HP LaserJet 4050 Series PCL 6 on LPT1