[DllImport("winspool.drv", SetLastError = true)] public static extern bool SetPrinter( IntPtr hPrinter, uint Level, IntPtr pPrinter, uint Command );
Microsoft documentation: Link
Last updated 1 year ago