Archived

This topic is now archived and is closed to further replies.

sliderag

16-bit thunk functions...

Recommended Posts

Hello, I''ve a quick question in regards to the Windows 16-bit thunk functions (i.e. LoadLibraryEx32W, CallProcEx32W, GetProcAddress32W) which are used to call functions from a 32-bit DLL in 16-bit code. The problem is that I can''t seem to find the proper link library with the definitions for these functions, and so I cannot link my application. I know I could bypass all this by compiling a 32-bit application, but that is not an option in my situation (my employer only wants me to update some old code, not port it). I''ve googled for this and found nothing, and MSDN only tells me that I need to include wownt16.h, which I already knew. If anyone has used these functions before, I would appreciate any guidance in this matter. Regards, David

Share this post


Link to post
Share on other sites
From MSDN....

NOTE: When linking the Windows-based application, you need to put the following statements in the .DEF file, indicating that the functions will be imported from the WOW kernel:

IMPORTS
kernel.LoadLibraryEx32W
kernel.FreeLibrary32W
kernel.GetProcAddress32W
kernel.GetVDMPointer32W
kernel.CallProcEx32W
kernel.CallProc32W



SmokingBrain