Title: RE: [MSVC] Missing function Address in mapi32.dll

> I'm calling GetProcAddress(...) asking for HrQueryAllRows and passing a
> handle to mapi32.dll, and the fucntion returns null a later call to
> GetLastError reports the following error: The specified procedure could
> not be found. The point is that I executes the dumpbin tool with /exports
> parameter to mapi32.dll and dumpbin reports that really the mapi32.dll
> exports a function HrQueryAllRows, also I inspect the dll with
> depends.exe and again get the same result the dll really exports a
> function named HrQueryAllRows.

Does it let you get to it if you ask for it by ordinal (75 for that
function, my XP system + Depends.exe reports)?

I've noticed that that DLL contains many functions with "@xx" at the end,
and some without. In a DLL of my own creation (MFC), they are all without
that decoration. Could this be a name mangling issue? In which case, try
using

GetProcAddress(hMAPI32DLL, "[EMAIL PROTECTED]");

(that's the decoration it has on my system, should be the same for you).

--
Jason Teagle
[EMAIL PROTECTED]

Reply via email to