[racket] ffi->SendMessageTimeoutW
Hello,
your code looks fine to me.
On my virtualized installation of Windows XP it runs flawlessly and the
call to SendMessageTimeoutW returns with (= r4 1), which is a successful
result according to the Win32 API documentation [1]. The result of
GetLastError is meaningless in that context, since successful Win32 API
calls are allowed, but not required to set the error code of the current
thread to anything specific [2].
But I am no Windows expert, since I rather try to avoid programming
against interfaces whose behaviour frequently contradicts their
documentation or is simply undefined ;-)
Ciao,
Thomas
--
[1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms644952%28v=vs.85%29.aspx
[2] http://msdn.microsoft.com/en-us/library/ms679360%28VS.85%29.aspx
--
When C++ is your hammer, every problem looks like your thumb.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1600 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.racket-lang.org/users/archive/attachments/20130121/233f4e73/attachment-0001.p7s>