Post by FrankPost by David LowndesHave you tried using Spy++ to see if there is any - there may well be
a WM_SETTINGCHANGE notification.
Thank you - the main window indeed receives a
WM_SETTINGCHANGE, both when installing and
deleting a printer.
Ah, that's good to know.
Post by FrankNow another question -
is there a way to provoke a messsage box to
the user when he installs a printer? The
background is, I'd like to test whether the
message really does not arrive until the
user has "clicked away" all message boxes
so the printer is really completely installed.
I'd expect that any notification saying "there's a new printer
available" would only be sent once the printer could be used. Anything
else wouldn't make much sense. Is that what the notification is
telling you?
There will always be theoretical situations where you start to do
something only to find that when you try to do it, it fails. For
instance the user may add a printer, then immediately remove it. If
your code sees the "add" notification, but by the time you try to
access the printer, it's been removed, then you've got such a
situation - you have to handle that failure appropriately in your
code.
Post by FrankI'm using mostly network printers, so
maybe I could provoke a small "problem"
with access rights or something?
All I can say is to ensure you thoroughly test all circumstances you
can think of that may be issues for whatever you're trying to achieve.
Dave