Hello guys!
Here I come with new problem,...
I'm stuck, I'm stuck, I'm stuck, Google can't help me anymore. *sob*
Btw, I have questions about dynamic function for interpreter that can interact with DLL.
1. How to call loaded DLL function with n parameter?
Should I use assembly code for this?Code:import long MessageBox as "MessageBoxA" (HWND hWnd, char *message ...) from "user32.dll"; MessageBox(0, "Hello world", "Test", 16);
2. I need to make an interpreter that supports callback from DLL.Code:push 0 push "Hello world" push "Test" push 16 call MessageBoxA
This means the interpreter should generate function pointers with n argument and pass it to the DLL function. For example: SetWindowsHookEx, SetWindowLong.
I absolutely have no idea on this one...Code:HRESULT OnActivate(HWND hWnd, ...) { ... } SetWindowLong(frmMain.handle, GWL_WNDPROC, @OnActivate);
Please, if anyone have any reference for interpreter thing or dynamic function pointers... It might be help.
Thanks in advance.



LinkBack URL
About LinkBacks


