Platform SDK: Win32 API
Using the Thunk Compiler
The following topics explain the steps required to implement a flat thunk using the thunk compiler:
Creating a Thunk Script
Compiling Flat Thunks
Creating a 16-Bit Thunk DLL
Creating a Win32-Based Thunk DLL