Skip to content
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

Closed
IvanRF opened this issue Dec 16, 2015 · 3 comments
Closed

Add PRINTER_INFO_2 support #568

IvanRF opened this issue Dec 16, 2015 · 3 comments

Comments

@IvanRF
Copy link
Contributor

IvanRF commented Dec 16, 2015

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.

@dblock
Copy link
Member

dblock commented Dec 20, 2015

Please make pull requests.

@IvanRF
Copy link
Contributor Author

IvanRF commented Dec 20, 2015

Thanks for the reply. OK, I will do it later today or tomorrow.

@IvanRF
Copy link
Contributor Author

IvanRF commented Dec 20, 2015

You can test PRINTER_INFO_2 with:

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);

@IvanRF IvanRF closed this as completed Jan 17, 2016
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants