-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PRINTER_INFO_2 support #568
Comments
Please make pull requests. |
Thanks for the reply. OK, I will do it later today or tomorrow. |
You can test for (PRINTER_INFO_2 printerInfo : WinspoolUtil.getPrinterInfo2()) {
System.out.println(printerInfo.pPrinterName + ": " + printerInfo.pDriverName);
}
System.out.println("---ALL---");
for (PRINTER_INFO_2 printerInfo : WinspoolUtil.getAllPrinterInfo2()) {
System.out.println(printerInfo.pPrinterName + ": " + printerInfo.pDriverName);
}
System.out.println("---BY NAME---");
PRINTER_INFO_2 printerInfo = WinspoolUtil.getPrinterInfo2("Adobe PDF");
System.out.println(printerInfo.pPrinterName + ": " + printerInfo.pDriverName); |
mstyura
pushed a commit
to mstyura/jna
that referenced
this issue
Sep 9, 2024
Motivation: We are a bit behind, lets update to latest quiche sha. Modifications: Update to 5ddba81a3ab03c0fd4c262d444bded4208013669 Result: Use latest quiche code
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: