SetDefaultPrinter

[DllImport("winspool.drv", SetLastError = true)]
public static extern bool SetDefaultPrinter(
   string pszPrinter
);

Microsoft documentation: Linkarrow-up-right

Last updated