Thunk

  1. n. In Windows, a non-moveable snippet of code stored in the task instance database of a Windows application or DLL that sets up the proper DS value before executing the associated exported function. There are also reload thunks, but they are too scary to mention. In the days of Real Mode Windows, moveable and discardable code segments, thunks of all types, and stack walking with modification put fear in the hearts of even the heartiest Windows programmers. See thunk mucking.