Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 3 Mar 2008 08:16:33 -0800 (PST),    group: microsoft.public.platformsdk.mapi        back       


MAPI_E_NOT_FOUND in Windows 2000 & Exchange 2003   
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
date: Mon, 3 Mar 2008 08:16:33 -0800 (PST)   author:   unknown

Re: MAPI_E_NOT_FOUND in Windows 2000 & Exchange 2003   
This question is not related to this Outlook newsgroup. Address the 
outlook.program_vba or outlook.program_addins newsgroup instead.

-- 
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

-----

 wrote in message 
news:72c22141-e6e4-4db7-b165-5a2dc5b7c87a@s19g2000prg.googlegroups.com...
> 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
date: Mon, 3 Mar 2008 17:25:37 +0100   author:   Roady [MVP] newsgroups_DELETE_@_DELETE_sparnaaij_NO_._SPAM_net

Re: MAPI_E_NOT_FOUND in Windows 2000 & Exchange 2003   
Hi,

> 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
date: Mon, 3 Mar 2008 18:01:17 +0100   author:   SvenC am

Re: MAPI_E_NOT_FOUND in Windows 2000 & Exchange 2003   
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

"SvenC" <SvenC@community.nospam> wrote in message 
news:F96EEBA1-1469-4FFA-96DB-E5C64A3713F6@microsoft.com...
> Hi,
>
>> 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
date: Tue, 4 Mar 2008 11:45:14 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us