Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Default Printer Changed Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Microsoft News Server - 29 Jun 2005 14:00 GMT
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
David Lowndes - 29 Jun 2005 14:31 GMT
>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
Jerry Camel - 29 Jun 2005 15:35 GMT
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.

> >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
[quoted text clipped - 5 lines]
>
> Dave
David Lowndes - 29 Jun 2005 16:26 GMT
>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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.