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