Subject:
[ruby-ffi] Re: unable to find method?
From:
rogerdpack
Date:
12/18/09 12:10 PM
To:
ruby-ffi


> > 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.

Interesting.

Thanks for the help.

C:\>strings \WINDOWS\system32\user32.dll | grep  FindWindow
FindWindowA
FindWindowExA
FindWindowExW
FindWindowW


Any guesses as to how VB is able to accomplish its snippet?

<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Public Shared Function FindWindow(ByVal lpClassName As String, ByVal
lpWindowName As String) As IntPtr
End Function

Does it add a W or something, for us? (and ffi theoretically could,
too?)


Thanks.
-r