in reply to
clear print queue in windows
Check this node clear print queue.
Did you check that node?
It doesn't answer the question, and the OP is trying to use Win32::Printer::Enum like that node suggests
This seems to be a non-trivial problem, but maybe some of the more Win32 minded Monks can help, using the following resources as some inspiration:
It seems like using Win32::API in conjunction with the winspool.drv DLL and calling SetJob with a null job will do the trick, but I can't give you the exact code that would accomplish this
I make decisions, and my brain carries them out
My brain makes the decisions, and I observe them (if I'm lucky)
I make some decisions, and my brain makes others
My spouse makes decisions and I and my brain carry them out
I wrote a program to relieve me and my brain from the burden of decision-making
The black-helicopter people project the decisions into my brain and then I do as ordered
Results (389 votes),