[python-win32] WMI troubles!

Tim Roberts timr at probo.com
Mon Jan 25 19:06:52 CET 2010


Lincoln Yeoh wrote:
> Hi,
>
> Coincidentally I'm using the hotkey code from Tim's url and it works
> quite well.
>
> But I'm not sure which is better:
>
> user32.GetMessageA or user32.GetMessageW (along with the corresponding
> user32.DispatchMessageA or user32.DispatchMessageW of course).

That depends on the messages you're handling.  For some messages, WPARAM
and LPARAM point to structures that contain strings.  For those, you
need to know the character type.  If there are no strings, then it
doesn't matter which one you choose.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list