Thanks for the help again, this time it was just some misleading
documentation. In the MAPI.HLP file that was installed with Borland
Builder 6, though written by Microsoft, dated February 01, 2002, it
had MAPILogonEx() declared with 6 paramaters, instead of the 5 that it
actually has:
ULONG MAPILogonEx(ULONG ulUIParam, LPTSTR lpszProfileName, LPTSTR
lpszPassword, FLAGS flFlags, ULONG ulReserved, LPLHANDLE lplhSession)
Once I removed the "ulReserved" param from the decleration, everything
worked fine.
Hopefully no one else will make this mistake, but if they do maybe
they'll find this post and figure out the problem. The compiler
didn't complain because I'm using dynamicly loaded functions with
GetProcAddress().
"Dmitry Streblechenko" <(E-Mail Removed)> wrote in message news:<O$(E-Mail Removed)>...
> Try
> MAPI_ALLOW_OTHERS | MAPI_USE_DEFAULT | MAPI_EXTENDED
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "Eric" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > MAPILogonEx(NULL,NULL,NULL,MAPI_ALLOW_OTHERS,0,&MapiSession);