Printer Driver- Installing programetically RRS feed

  • Question

  • Hi,

    I have created Postscript Virtual Printer using WDK which has below components -

    1. Create Porttype and Port:- 

    COMPONENTS: localmon.dll, localui.dll, monitor.inf

    MANUAL INSTALLATION: PrintManagement->Ports->AddPort->New Port Type...-> Browse to monitor.inf file->OK (copies localmon and localui dlls based on monitor.inf)->New Port-> Provide name of the port

    2. Add Printer/Driver using above created Port:-

    COMPONENTS: ABCPrinter.ppd file, ABCPrinter.inf file

    MANUAL INSTALLATION: PrintManagement->Printer->Add Printer-> Select existing port created in Step 1 above -> Install a new Driver-> Have disk-> Browse and select ABCPrinter.Inf file-> complete the steps to install printer/driver.

    My question is:-

    How to programetically do this with components mentioned above so that at the end I will have my Virtual Printer Setup.

    Wednesday, October 31, 2012 10:25 AM


All replies