Printui.dll doesn't create local port?

  • Thread starter Thread starter thekod
  • Start date Start date
T

thekod

When calling printui.dll with the following syntax:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "printersharename" /f
"hpc4x50c.inf" /r "\\printserver\printersharename" /m "HP Laserjet
4350 PCL 6"

It will create a valid, useable printer, but will not create any port
for the printer. After deleting the printer, if you try to reinstall
it using the Add/Remove Printer GUI, the "Add Port" dialog will
complain that the port "\\printserver\printersharename" already
exists, and therefore cannot be created, but this port does not show
up in the printer ports list in

"RUNDLL32 PRINTUI.DLL,PrintUIEntry /s".

The only apparent ways to resolve this issue are to reinstall Windows,
or write an application using the DeletePort function in WinSpool.drv
to delete the port. The AddPort functions in WinSpool.drv are
exported by the print monitor, in this case, localspl.dll, as
entrypoint SplAddPort.

Does anyone know where localspl.dll stores the port information when
SplAddPort is called?
 
Back
Top