Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / New Users / March 2008

Tip: Looking for answers? Try searching our database.

MAPI_E_NOT_FOUND in Windows 2000 & Exchange 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
duraisridhar@gmail.com - 03 Mar 2008 16:16 GMT
Hi,

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
Roady [MVP] - 03 Mar 2008 16:25 GMT
This question is not related to this Outlook newsgroup. Address the
outlook.program_vba or outlook.program_addins newsgroup instead.

Signature

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

-----

> Hi,
>
[quoted text clipped - 28 lines]
> Regards,
> Sri
SvenC - 03 Mar 2008 17:01 GMT
Hi,

> in Windows 2000 m/c running Exchange 2003. My MAPI call
> 'MAPILogonEx'  fails with  MAPI_E_NOT_FOUND. My  'MAPILogonEx' call is
[quoted text clipped - 12 lines]
> logged in
> lpMAPISession);//handle of session

Does the MAPI profile Profile1 exist on the Windows 2000 machine?

--
SvenC
Dmitry Streblechenko - 04 Mar 2008 18:45 GMT
Also make sure that your code runs under the identity of the Windows user
who has the specified profile (stored in HKCU on the per-user basis).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi,
>
[quoted text clipped - 19 lines]
> --
> SvenC
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.