-
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
Purging the jobs in Winspool #661
Comments
Yes, i saw it. But it's just a status monitor of the spooler. |
I think this is perfectly doable - you'll have to wire up the necessary parts in Winspool.java: The documentation is in MSDN: A few of the PRINTER_INFO structures are already bound, so they can be used as a basis. The constants for the commands need to be added as contants to the interface (PRINTER_CONTROL_*) |
Thanks @matthiasblaesing, I will try this. |
You have to use this,
https://docs.microsoft.com/en-us/windows/win32/printdocs/setjob
Am 31.10.2019, 23:21, "Luís F." <[email protected]> schrieb:
I need to be able to clean my printer spooler. There's any solution to help me?
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#661?email_source=notifications\u0026email_token=AARFBWCYZRTZ2K7B6SHRPYLQRNLANA5CNFSM4CELHU6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECZNVXA#issuecomment-548592348",
"url": "#661?email_source=notifications\u0026email_token=AARFBWCYZRTZ2K7B6SHRPYLQRNLANA5CNFSM4CELHU6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECZNVXA#issuecomment-548592348",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Hi, plan on adding the I noticed that some constants in Winspool are of type public static final short JOB_CONTROL_PAUSE = 0x01;
public static final short JOB_CONTROL_RESUME = 0x02;
// ... 0x03, etc... I believe the Win32 API defines most of these as DWORDS, but I'm having a hard time finding out which one JNA should be using, quoting Winspool.java: // int
public static final short PRINTER_NOTIFY_FIELD_SERVER_NAME = 0x00;
// short
public static final short JOB_NOTIFY_FIELD_PRINTER_NAME = 0x00; Which should the PR use? Perhaps a better question is, how should I know this for future PRs? Thanks in advance. |
If a constant is only used "as is" and the use sites are declared as This is different when the constants define discreet values of a bitfield. In that case it is highly probable that you will "or" the values together and you'll need a cast anyway. For |
…s#661) Motivation: QuicheQuicConnection does only need native memory for one recipient addres, while we allocated memory for two. Modifications: Only allocate native memory for one address Result: Less native memory usage per quic connection
To purge the jobs in the spool you have to make a
Winspool.SetPrinter
withPRINTER_CONTROL_PURGE
, but there is no such method in JNA.Can I implement that? Is there other way to clean up my printer spooler?
The text was updated successfully, but these errors were encountered: