Does SetDefaultPrinter send its own SendMessageTimeout ?



Subject kind of explains the basics of my question, but here's the
background :-

I'm using the System.Managed namespace in a C#.Net app to set the
default printer via WMI. This is a conversion of an older bit of code
that was using an API call (via P/Invoke). After the call to set the
default printer, the recommended practice was to use another API call,
SendMessageTimeout, to notify other running applications of the
change.

Now that I'm using WMI to set the default printer, do I still need to
call SendMessageTimeout to let other applications know, or does WMI
handle it internally and automatically?

Cheers

Rob
.



Relevant Pages

  • Re: Does SetDefaultPrinter send its own SendMessageTimeout ?
    ... The reason that message is sent out from my understanding is that applications like Word etc. Can receive those messages and update their default printer as they process. ... When you use WMI, you would still need to notify the applications of the change or it will not update until the next time the application starts or polls the spooler. ... that was using an API call. ... call SendMessageTimeout to let other applications know, ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Abfrage eines physikalisch angeschlossenen Druckers
    ... "API" Klar ... wsh = network resources abfragen und methoden probieren. ... "WMI" hinderlich, weil neues Win wartet. ... Oder wie betroffenen Windows Scripter das gerne formulieren. ...
    (microsoft.public.de.german.scripting.wsh)
  • Problems when using WMI fra a web-service!
    ... My problem has to do with WMI and .NET, and I'm hoping you can help me out! ... Now I trying to use the API from a web service, ... username and password as connection options, ...
    (microsoft.public.win32.programmer.wmi)
  • Re: WMI: Determine Running Tasks
    ... how do I retrieve the list of running applications on a pc? ... > you open up task manager and click on the applications tab, ... I looked high and low in the WMI ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Identifying connection type
    ... Thanks for the info regarding WMI. ... "Eugene Gershnik" wrote: ... >> sockets API call that can provide connection type information. ...
    (microsoft.public.win32.programmer.networks)