Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Win32::API provides a Perlish means of calling functions from Win32's Dynamic Link Libraries. It's an interface with the Win32 API, as its name suggests.

So armed with that tool, the question changes. Now you know how to deal with the Windows API from Perl. At this point rather than asking how to do it with Perl, you can ask how to clear the print queue using the Windows API. It turns out there are a lot more people who know how to manipulate the Windows API than there are who know both the Windows API and Perl. So by using Win32::API, you get to abstract away the details of how to accomplish a task in Perl, and re-focus on how to accomplish the task irrespective of the language used to implement the solution.

And if you do get stuck on the Perl side of things, you'll be able to ask a question about Win32::API instead of about the specific API-manipulation objective. Once again, this type of generalization benefits you, since there are more people who understand the Win32::API module than there are who have specific experience with manipulating the print queue from Perl.

In this way your question which at the outset seems too localized to be answered by any more than a few individuals can be broken into two questions, each of which can be answered by thousands of individuals even if there's no intersection between those two groups.


Dave


In reply to Re: clear print queue by davido
in thread clear print queue by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found