How I can detect which is the default printer in windows?
I've done various experiments and should not walk away.
If you use PC_PRINTER_INFO PC_PRINTER_OPEN after the printer is set by default prints a blank page.
If you use PC_PRINTER_SET_DEFAULT opens a window to select a printer.
In both cases I can know the default printer but is not very good print a blank page or be closing a window.