Re: [racket] ffi->SendMessageTimeoutW

2013-01-21 Thread heraklea
Ahh, yes you are right. I compare it with the results in c++. There I get an Error_success in getlasterror(), thatswhy I was a little bit confused about the ERROR_PATH_NOT_FOUND in (GetLastError) in Racket. Thank you very much. Yours, Racket Users list: http://lists.

Re: [racket] ffi->SendMessageTimeoutW

2013-01-21 Thread Thomas Chust
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, s

Re: [racket] ffi->SendMessageTimeoutW

2013-01-21 Thread heraklea
Thank you very much, but if I understand you right, I make it so: [Code_Begin] #lang racket (require ffi/com ffi/unsafe ffi/unsafe/define ffi/winapi racket/string racket/format) (define _HKEY (_cpointer/null 'HKEY)) (define _HANDLE (_cpointer/null '

Re: [racket] ffi->SendMessageTimeoutW

2013-01-18 Thread Thomas Chust
On Fri, 18 Jan 2013, herak...@gmx.de wrote: [...] (define ENV (cast "Environment" _string/utf-16 _intptr)) [...] But in Racket when I call the function: (define-values ( r4 res4) (SendMessageTimeoutW HWND_BROADCAST WM_SETTINGCHANGE