GetPrinterNamesA

Rendering and printing

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetPrinterNames and string arguments are interpreted using the current SetAnsiMode code page

Returns a CSV string containing the names of all the available printers on the system. The result is the cached list that was enumerated when the app was started. The new GetLatestPrinterNames function returns the latest list of printers

Syntax

Delphi

Function DLGetPrinterNamesA(InstanceID: Integer): PAnsiChar;

DLL

const char * DLGetPrinterNamesA(int InstanceID);