YouTube Videos Tools Areas of Research WhitePapers Our Open Source Projects Blogs Contact Us 2050

Calling Cdecl Exports

 
VB6 Projects
Computer Security
Internet
File System
Binary
Misc.
VC
VB6 & C#
C & ASM
Multi-Language
Plugins
IDA/Olly/Misc
Scripting
Javascript
Windows Script Host
MicroControllers
Arduino
Netduino
Links
Free Tools
Blog

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

Download
© 2013 Sandsprite.com