I've read the FAQ and I extended Winspool and WinspoolUtil to add PRINTER_INFO_2 support.
The code is here. It's based on the OP implementation for PRINTER_INFO_2.
You can test it with a simple:
for (PRINTER_INFO_2 printerInfo : WinspoolUtilExt.getPrinterInfo2()) {
System.out.println(printerInfo.pPrinterName + ": " + printerInfo.pDriverName);
}
This methods could be easily added to Winspool and WinspoolUtil.
I've read the FAQ and I extended Winspool and WinspoolUtil to add PRINTER_INFO_2 support.
The code is here. It's based on the OP implementation for PRINTER_INFO_2.
You can test it with a simple:
This methods could be easily added to Winspool and WinspoolUtil.