Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

printer port instance creation programatically

I want to install a printer driver AND a printer port programatically. I have prepared printer driver and printer port files and they are being installed by rundll32.

But after I installed printer port, I have to create an instance of that port to use with printer. (I want it to appear Printers and Faxes-> File -> Server Properties -> Connection Ports (or something)

how can I create one?
0 Kudos
Message 1 of 3
(7,510 Views)

KahKaha--

      We are definately here to help make you successful. However, in order to add in this printer you are going to need to make a call to a windows dll.  The subject of which windows dll to use and how to use it is not something that we directly support.  I did a quick search on Google using "prgramatically install printer port" and came up with a lot of information.  The dll i think you need is the prnadmin.dll.  The best page that I saw in my search I linked below.

http://www.codecomments.com/archive301-2005-9-617456.html

    Hope that this helps and best of luck with your applications!

John H

Applications Engineer

National Instruments

http://www.ni.com/support

 

0 Kudos
Message 2 of 3
(7,498 Views)
thank you. I searched all the net for weeks on this subject. prnadmin needs some scripting to use its functions, so I did not try it before.
0 Kudos
Message 3 of 3
(7,494 Views)