在 2011-6-8 下午7:21,"Attila" <
ejjeliorjarat@gmail.com>写道:
> Dear Peter,
>
> Thank you for your great help, I won't be able to do something like this -
> seems it's harder as I expected... I have x64 machine, so it won't work for
> me, but I really thank you your help - I will try to check out what it does,
> and do something with it. It's good to know that there are so helpful people
> here like you ;)
>
> Regards,
> Attila
>
> 2011/6/8 Peter Cawley <
lua@corsix.org>
>
>> Callbacks are rather hard to do with the current LuaJIT. One approach
>> is to perform some call stack contortions so that invocations of the
>> callback turn into returns to Lua. On Windows, the fiber API can be
>> used to perform the contortions, which does the really hard part for
>> you.
>> My attempt at doing so is:
http://pastebin.com/r9WxJ6iP>> This currently only works for x86 Windows, as support for x64 would
>> require different machine code.
>>
>> On Tue, Jun 7, 2011 at 3:47 PM, Attila <
ejjeliorjarat@gmail.com> wrote:
>> > Hello All,
>> >
>> > I am just starting get familiar with LuaJIT's FFI interface, and what can
>> I
>> > say... It's GREAT! I want to improve my programs with that, but my C/C++
>> > skills are weak. Where can I find/ask for help about it? I think this is
>> not
>> > the best place, because it's Lua forum, LuaJIT is an another project, but
>> I
>> > haven't found mailing list address on LuaJIT's homepage...
>> > I want to find a window on Windows systems. I was able to do that with
>> > FindWindowA, but I need a child-window's title (from a browser. If that
>> page
>> > is selected what I need, the title is ok, but if an another one is
>> selected,
>> > I should use EnumChildWindows, which needs a CALLBACK parameter). I have
>> no
>> > idea how can I do it.... Can somebody help me in it?
>>
>>