I'm developing small application implementing MAPI .I face peculiar
problem in Windows 2000 m/c running Exchange 2003. My MAPI call
'MAPILogonEx' fails with MAPI_E_NOT_FOUND. My 'MAPILogonEx' call is
executed successfully without any problem in other m/c with Windows
2003 & Exchange 2003.
Here is the snip of my code calling MAPILogonEx,
-------------------------------------------------------8<-------------------------------------------------------------------------
LPMAPISESSION *lpMAPISession;
HRESULT hr = MAPILogonEx(0,
(LPTSTR)"Profile1",
NULL,//password - This parameter should ALWAYS be NULL
MAPI_USE_DEFAULT , //Allow a profile picker box to show if not
logged in
lpMAPISession);//handle of session
-------------------------------------------------------
>8-----------------------------------------------------------------------------
Is there anything i have missed ?. Do I need any special previalges in
2000.
Any help on this will be greatly appreciated,
Thanks in advance,
Regards,
Sri
--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more
http://www.msoutlook.info/
Real World Questions, Real World Answers
-----
<durais...@gmail.com> wrote in message
news:72c22141-e6e4-4db7...@s19g2000prg.googlegroups.com...
> in Windows 2000 m/c running Exchange 2003. My MAPI call
> 'MAPILogonEx' fails with MAPI_E_NOT_FOUND. My 'MAPILogonEx' call is
> executed successfully without any problem in other m/c with Windows
> 2003 & Exchange 2003.
>
> Here is the snip of my code calling MAPILogonEx,
>
> -------------------------------------------------------8<-------------------------------------------------------------------------
> LPMAPISESSION *lpMAPISession;
>
> HRESULT hr = MAPILogonEx(0,
> (LPTSTR)"Profile1",
> NULL,//password - This parameter should ALWAYS be NULL
> MAPI_USE_DEFAULT , //Allow a profile picker box to show if not
> logged in
> lpMAPISession);//handle of session
Does the MAPI profile Profile1 exist on the Windows 2000 machine?
--
SvenC
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"SvenC" <Sv...@community.nospam> wrote in message
news:F96EEBA1-1469-4FFA...@microsoft.com...