Default Printer Changed Event

  • Thread starter Thread starter Microsoft News Server
  • Start date Start date
M

Microsoft News Server

I know that it's possible to register with the OS to receive certain file
system events. Does anyone know if it's possible to receive an event when
the user changes the default printer setting? Thanks.

Jerry
 
I know that it's possible to register with the OS to receive certain file
system events. Does anyone know if it's possible to receive an event when
the user changes the default printer setting? Thanks.

Jerry,

Try handling the WM_SETTINGCHANGE message.

Dave
 
That looks like it might work, but I can't find anything that tells me what
message I'm looking for. And I don't see anything in the SystemParamersInfo
call that refers to printers... Can you give me more specific info?
Thanks.
 
That looks like it might work, but I can't find anything that tells me what
message I'm looking for. And I don't see anything in the SystemParamersInfo
call that refers to printers... Can you give me more specific info?

The string probably says "windows", but you may not be able to rely on
that (not that it's any real use to you). I think you'll have to
handle the message and re-read the default printer setting.

Dave
 
Back
Top