From: "Marvin Gülker" Date: 2009-12-30T00:59:15+09:00 Subject: Re: au3 0.1.1 released Edward Middleton wrote: > Marvin Gülker wrote: >> Edward Middleton wrote: >>> Marvin Gülker wrote: >>>> "One of the parameters was invalid.". I suppose it's the C array I don't >>>> provide, even if it contains only one element. >>> Yes thats the problem. I was forgetting it was an array.... >> >> Why can't it be flattened? The SendInput() function expects an array of >> INPUT structs, the INPUT struct itself doesn't expect an array of >> KEYBDINPUT structs. > > Sorry, yes you are right, I should have checked the msdn. What does > GetMessageExtraInfo(VOID) return? > > Edward That function returns a LPARAM, which is, according to the explanations on the FFI wiki page ( http://wiki.github.com/ffi/ffi/types ), a pointer. MSDN docs: http://msdn.microsoft.com/en-us/library/ms644937%28VS.85%29.aspx @Roger: Looks good, I will try working with that. @Philip: Thank you, but I'd like to continue using MinGW + MSYS for building C extensions (when I really do this, what is quite rarely the case). I'm not good at C, so FFI sounds really nice to me. Marvin -- Posted via http://www.ruby-forum.com/.