Thunk
From open-encyclopedia.com - the free encyclopedia.
A thunk is a computer programming technique where a piece of code is executed to provide an address. The most common usage is in the Win16 / Win32 API, where thunking is used to convert a 16 bit address into a 32 bit equivalent or vice versa. The ubiquitous early example was "wsock32.dll", a thunking layer added to allow Win32 Internet applications to use the Win16 "winsock.dll" Sockets library originally written for Windows 3.1.1
Earlier implementations of thunking include early Algol 60 implementations.
Compare with: