Title: [MSVC] function pointers

Hi All:

I am currently making an email application curiously I am in doubt about
something that never happens before to me.
There are a set of fucntion declared in mapix.h (those functions who's
permit access to mapi subsystem) and there is not import library for
mapi32.dll, the module where the functions are exported from. The
question is can I access the functions addresses using GetProcAddress and
assign the address to that variables declared in mapix.h???

I mean the following sentence

MapiLogonEx = (some cast I don't know how to
do)GetProcAddress(m_hMapiModuleHandle, "MapiLogonEx");

Or I have to declare my owns funtin pointer to use a sentence like this

LPFNMAPILOGONEX lpfn =
(LPFNMAPILOGONEX)GetProcAddress(m_hMapiModuleHandle, "MapiLogoEx");

assumming the LPFNMAPILOGONEX is defined like this

typedef HRESULT (LPFNMAPILOGONEX)(ULONG, LPTSTR, LPTSTR, FLAGS,
LPMAPISESSION*);

If the solution is the second scenario what for the header mapix.h???? if
the solution is the first scanerio  please
drop me an example about how to make a cast i don't know to do for
example with the function MapiLogonEx

Thanks in advance
yosvel...
--
  Yosvel
  [EMAIL PROTECTED]

--
http://www.fastmail.fm - Accessible with your email software
                          or over the web

Reply via email to