[DllImport("winspool.drv", SetLastError = true)] public static extern bool OpenPrinter( string pPrinterName, out IntPtr phPrinter, IntPtr pDefault );
Microsoft documentation: Link
Last updated 1 year ago