I need my 16-bit app to take advantage of a couple of simple Win32 functions if it is running under Windows 95/NT. Apparently it is reasonably feasible to do this with the thunking functions LoadLibraryEx32W, GetProcAddress32W, CallProc32W and FreeLibraryEx32W.
I've built a little routine to test this and it fails every time with a nasty system error, and I'm not surprised, since they are not part of the Win16 interface and I never specifically linked their library in.
What DLL do these functions live in and how do you safely link to them at compile time (and at run-time, where they may not exist for Win16 ?).
Suggestions gratefully received.