Borislav,
> If someone point me how to rewrite this "AddressOf WindowProc" to VFP I can rewrite the code in VFP
Can you use VFP 9's new bindevent() to bind to a windows message that is generated in this process? (This is just a wild guess?)
I seem to remember a 3rd party FLL that provided an "AddressOf WindowProc" type function that would in turn raise a VFP function by sending a keystroke to your VFP app that could be trapped by an ON KEY LABEL statement.
Not sure if this will give you any ideas, but I didn't think it would hurt to mention. Hope I haven't confused everyone on this thread (too much).
Malcolm