Subject:
Re: [ruby-ffi] unable to find method?
From:
Luis Lavena
Date:
12/18/09 6:57 AM
To:
ruby-ffi@googlegroups.com

On Thu, Dec 17, 2009 at 9:28 PM, rogerdpack <rogerpack2005@gmail.com> wrote:
> Perhaps I'm missing something here...
>
> require 'ffi'
>
> module Hello
>  extend FFI::Library
>  ffi_lib 'user32'
>  attach_function 'FindWindow', [ :string, :string], :pointer # blows
> up
> end
>
> ref: http://msdn.microsoft.com/en-us/library/ms633499(VS.85).aspx
>
> What might it be...?

FindWindow is an alias of FindWindowA or FindWindowW depending if
unicode/wide condition was defined prior including the headers.

So: there is no FindWindow, as pointed by others on this thread.
-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry