This project has moved and is read-only. For the latest updates, please go here.


GetModuleHandleExW is not present on Windows 2000


StubUtils.cpp contains the following function:
HMODULE AttachToMAPIDll(const WCHAR *wzMapiDll)
HMODULE hinstPrivateMAPI = NULL;
GetModuleHandleExW(0UL, wzMapiDll, &hinstPrivateMAPI);
return hinstPrivateMAPI;
In order to make this stub library work on Windows 2000, the following edit is required:
HMODULE AttachToMAPIDll(const WCHAR *wzMapiDll)
return GetModuleHandleW(wzMapiDll);
Closed Aug 10, 2011 at 7:31 PM by sgriffin


sgriffin wrote Aug 10, 2011 at 7:30 PM

I'm taking a fix for this over in mfcmapi, but I'll leave it to developers incorporating the stub to decide if they want to take this particular fix.

wrote Aug 10, 2011 at 7:31 PM

wrote Feb 14, 2013 at 12:25 AM

wrote May 16, 2013 at 7:55 AM