Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

API to bring the AddPrinter wizard

Status
Not open for further replies.

CalamityJake

Programmer
Jun 26, 2001
15
0
0
RO
Hi,
I know how to install functions using the AddPrinter() API. But this
function takes all the information from a structure I have to fill myself.
The AddPrinter wizard (from Control Panel/Printers) takes the information
from an .inf file that describes all the parameters. Is there any API that
parses the inf for me and gives me the structure so that I can call
AddPrinter()? Or an API that takes the .inf as parameter and installs the
printer? How can I programatically bring up the AddPrinter wizard? Will I
have to parse the .inf file myself?

Thank you for any suggestion

Lucian



 
Maybe you could use GetProfileString, GetProfileInt, ... functions or something similar.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top