[Message Deleted]
-
What's the error code returned? As it says on MSDN, If the function fails or times out, the return value is zero. To get extended error information, call GetLastError. If GetLastError returns ERROR_TIMEOUT, then the function timed out. Regards, --Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
-
What's the error code returned? As it says on MSDN, If the function fails or times out, the return value is zero. To get extended error information, call GetLastError. If GetLastError returns ERROR_TIMEOUT, then the function timed out. Regards, --Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
-
The reason the function times out is because the window(s) receiving the message take longer to process the message than you specify in the sixth argument for
SendMessageTimeOut()
- the uTimeout argument (which is in milliseconds). To overcome the problem really depends on what you're doing; you could try increasing the time-out period, or do less message processing in the window procedures that the message is being sent to, however this is not failsafe if the system is running slowly. I assume that you're sending this message to multiple windows, but if you're only sending the message to one window, then it may be better to use theSendMessage()
function if you want to avoid a time-out. Regards, --PerspxDon't trust a computer you can't throw out a window
-- Steve Wozniak