Need Help on installing a printer driver on the local computer using c++ program

Need Help on installing a printer driver on the local computer using c++ program

Post by Rajarama » Wed, 28 Nov 2001 10:18:47



I found that the AddPrinterDriver() can be used to install a Driver on the
local computer. But I don't know how to fill the DRIVER_INFO_2 structure.

I want to install a Generic / Text Only printer
How do I fill the pDriverPath, pDataFile, pConfigFile and cVersion elements
of DRIVER_INFO_2 structure?