Suppressing automatic adding of new printers

  • Thread starter Thread starter Brenden
  • Start date Start date
B

Brenden

Is there any official way to either 'hook' or replace the 'add new printer
wizard'? We need to be able to allow users to plug in (for example) a new
USB printer without XPe automatically attempting to install it (out
application will be handling that).

It would of course be preferable to have windows call our own code to do
the install, but I'm not having much luck finding out if that it supported.
 
One thing for sure, to prevent pop-up of wizard when new device is
connected, add the following registry entry :

HKLM\SYSTEM\CurrentControlSet\Services\PlugPlay\Parameters\SuppressUI
it is a DWORD and shall be set to 1.

I do not have a clue on how to hook your software on it; ...but maybe with
WMI ?
 
One thing for sure, to prevent pop-up of wizard when new device is
connected, add the following registry entry :

HKLM\SYSTEM\CurrentControlSet\Services\PlugPlay\Parameters\SuppressUI
it is a DWORD and shall be set to 1.

Thanks for that one, it might take care of part of the problem.
I do not have a clue on how to hook your software on it; ...but maybe with
WMI ?

At this point we're considering writing our own function
compatible printui.dll 'wrapper' that passes calls on to the real windows
printui.dll with modifications as we see fit. This would also allow us to
make the call to printui.dll with admin privileges (after user enters the
password of course) which would simplify things for the user a bunch.
 
Pascal said:
One thing for sure, to prevent pop-up of wizard when new device is
connected, add the following registry entry :

HKLM\SYSTEM\CurrentControlSet\Services\PlugPlay\Parameters\SuppressUI
it is a DWORD and shall be set to 1.
hmm, it is a good key when I first used it sometime ago to disable
the popup, especially when the autologged user is not an administrator
but my eventlog is filled with plenty of warnings, even NO new hardware
is plugged!!!
currently, my eventlog is ALL information. I can not bear even warnings
in the eventlog. so I finished by NOT using this reg trick.
naturally, some peuple can live with eventlog filled up with
warnings, but I can NOT.
 
Back
Top