GetDefaultPrinterNameA

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 GetDefaultPrinterName and string arguments are interpreted using the current SetAnsiMode code page

Returns the name of the default printer. This name can be used with the PrintDocument or

NewCustomPrinter functions.

Syntax

Delphi

Function DLGetDefaultPrinterNameA(InstanceID: Integer): PAnsiChar;

DLL

const char * DLGetDefaultPrinterNameA(int InstanceID);