views:

5

answers:

0

I have to create, read, update and delete network printers using c# and their associated ports. I have to deal with clustered print servers, so WMI is not an option. My first choice would be using prnadmin.dll, but I cannot find reliable information if this would work and is supported under windows server 2008 x64. Can anyone share his/her experiences in this environment?

P.S.

I woud use

rundll32.exe printui.dll,PrintUIEntry

as an alternative, but I do not see a way to create printer ports this way. At the moment, I'm digging my way through the System.Printing namespace to see if this fits my needs.