PS:
Delphi-Quellcode:
unit Winapi.WinSpool;
...
function SetDefaultPrinter;
external winspl
name '
SetDefaultPrinterW' delayed;
function SetDefaultPrinterA;
external winspl
name '
SetDefaultPrinterA' delayed;
function SetDefaultPrinterW;
external winspl
name '
SetDefaultPrinterW' delayed;
XE noch nicht, aber in 10.x isses schon drin