Markus Svilans
2006-05-10 18:50:23 UTC
Hi,
I've been trying to find more documentation on the SendMessageTimeout()
function without much success. Microsoft's Q106716 document
(http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B106716)
isn't very clear.
I'd like to know what happens when SendMessageTimeout times out. As far
as I can see, two cases are possible:
1. SendMessageTimeout is called. The target HWND never starts
processing the message, and the timeout period elapses.
SendMessageTimeout returns. Does the target HWND eventually process the
message?
2. SendMessageTimeout is called. The target HWND begins processing the
message, but the timeout period elapses before it is done.
SendMessageTimeout returns. In this case, Q106716 seems to indicate
that the target HWND will continue processing the message even though
SendMessageTimeout returned.
Does anyone have any hard facts on what happens in both cases?
Case #1 interests me most, because in my application I want to send a
message to a window, and if it doesn't process the message in time, the
message must not be processed at all. However, before I know exactly
what SendMessageTimeout does, I am reluctant to write too much code
that uses it.
Thanks,
Markus.
I've been trying to find more documentation on the SendMessageTimeout()
function without much success. Microsoft's Q106716 document
(http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B106716)
isn't very clear.
I'd like to know what happens when SendMessageTimeout times out. As far
as I can see, two cases are possible:
1. SendMessageTimeout is called. The target HWND never starts
processing the message, and the timeout period elapses.
SendMessageTimeout returns. Does the target HWND eventually process the
message?
2. SendMessageTimeout is called. The target HWND begins processing the
message, but the timeout period elapses before it is done.
SendMessageTimeout returns. In this case, Q106716 seems to indicate
that the target HWND will continue processing the message even though
SendMessageTimeout returned.
Does anyone have any hard facts on what happens in both cases?
Case #1 interests me most, because in my application I want to send a
message to a window, and if it doesn't process the message in time, the
message must not be processed at all. However, before I know exactly
what SendMessageTimeout does, I am reluctant to write too much code
that uses it.
Thanks,
Markus.