Vb only has native support for calling _stdcall DLL exports, and can only provide _stdcall callbacks.
Through the use of custom asm thunks we can call cdecl exports and provide VB callback implementations for functions that expect cdecl callbacks.
This technique does not require intermediary dlls. Compiles Asm thunks as byte buffers and executes them with CallWindowProc.
May not work on XP-SP2 for machines with DEP compatible processors
|