In Win16, one used PrestoChangoSelector() to convert a DS segment into a CS segment and then run code that's constructed at runtime. This was done by loader applications that: 1) allocated memory, 2) loaded a binary image into the memory, and 3) executed the contents of the memory. How does one do something like this from a Win32 program.I'm trying to do the following. I have an application which has a scripting subsystem. I want to add the functionality of Visual Basic's "AddressOf" operator -- basically on-the-floy Callback's. AddressOf is a function returns a "void*" to a newly defined callback. I basically need to be able to create a "Thunk" the way MakeProcInstance worked in Win16.Anyone have a clue on how to do this from a straight Win32program?