Need a fast test to see if a remote printer is available or not. Using CreateIC now, and when print

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-06-07T22:08:40Z Indexed on 2010/06/07 22:12 UTC
Read the original article Hit count: 138

Filed under:
|
|

My application does a CreateIC (and later, an OpenPrinter) for the user's default printer. When this is a remote printer, and that printer is powered down or otherwise not present on the network, it takes over 20 seconds for the CreateIC to return.

I'm looking for some call I can make that will give me a quick answer if the server is down (so I can return a status and not try to do the CreateIC/OpenPrinter).

My environment is c/c++ (non-managed).

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows