Finding Windows printer driver name using API

Posted by Scott Bussinger on Stack Overflow See other posts from Stack Overflow or by Scott Bussinger
Published on 2010-06-15T06:10:22Z Indexed on 2010/06/15 6:12 UTC
Read the original article Hit count: 210

Filed under:
|
|
|

I can't seem to find an API call that returns the driver name for a Windows printer. Note that I'm not talking about the friendly name of the printer in the printer folder, I'm talking about the name of actual driver being used as shown on the "Advanced" tab when you look at the printer properties:

Printer properties dialog

I'm trying to detect when I'm printing to the "Generic / Text Only" driver regardless of what name the user chooses for the printer. It doesn't seem like this should be hard, but I can't find it in the DEVMODE structure or anyplace else I've thought to look for it.

Thanks for the help!

© Stack Overflow or respective owner

Related posts about Windows

Related posts about api