Gepostet am: Jul 23, 2012 12:44:23 AM
when you're hooking stuff which uses non-standard calling conventions, then specify it correctly:
int __stdcall MainWndProc_h(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
typedef int (__stdcall *MainWndProc_orig)(HWND,UINT,WPARAM,LPARAM);
this will save your nerves.