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
The same name on every site (unless it is taken already)
A different name for every site
The same name for sites I don't care about, but different names on sites I do care about
Different names for sites I don't care about, but the same name on sites I do care about
The anonymous account
Someone else's username
Root, after hacking into the site
Results (251 votes),