Re: Difference between WM_APP and WM_USER

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Jeff,

I use these, but I always send my APP messages to a specific window in my
application. I agree that doing this from a DLL may be problematic. I have
seen libraries have user defined messages and mostly they just say in the
documentation that they are doing it and/or only send the messages to their
own windows which would be safe as well (or at least more safe).

Tom

"Jeff Partch [MVP]" <jeffp@xxxxxxxx> wrote in message
news:%23ukjctwhGHA.5096@xxxxxxxxxxxxxxxxxxxxxxx

The WM_APP range has always been either reserverd for future use -- before
there was a WM_APP, or reserved for use by an application for its internal
use. Because a dll is not an application it has never been appropriate for
a dll to use this message range. And again, broadcasting such a message is
outrageously irresponsible.



.



Relevant Pages

  • Re: Threading problem with Garbage Collector
    ... It itself controls calls to a DLL ... "A"), it loads the DLL, which in turn then creates a window (it needs to, ... Disposemethod it uses the label window to synchronize the FreeLibrary ... delegate void DelegateKillDLL(); ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simulating Control-Alt-Delete?
    ... Winlogon.exe window or not. ... all desktops and all top level windows. ... the WinLogon window didn't show. ... > Write this part of your test suite as a DLL, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: VB6 runtime is supported on Windows 7
    ... The settings window was fairly extensive ... DLL and the settings are organized into a UDT rather ...
    (microsoft.public.vb.general.discussion)
  • Re: window from win32 dll
    ... handle of the DLL, according to the documentation. ... instance of the window to share the one-and-only DC that is a class DC? ... For example, you are presuming RegisterClassEx ... .HINSTANCE storing in dllmain HMODULE ...
    (microsoft.public.vc.mfc)
  • Re: Difference between WM_APP and WM_USER
    ... broadcasting or even 'broadcasting' such a message is outrageously ... DLL that uses WM_APP+7 as a message to a designated window. ... dll to use this message range. ...
    (microsoft.public.vc.mfc)