Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Mon, 10 Oct 2005 20:03:01 -0700,    group: microsoft.public.exchange2000.applications        back       


Private Store   
I am registering for storewide events  with the Exchange server 2000 and 
windows 2000. I am using the ATL COM in vc++ and registering with Exchange 
server as a COM+ application. When i am registering for only OnsyncSave and 
OnSyncDelete and use MAPI for finding out the details about the Mailbox data 
then I am able to Open the Private Store using HrOpenExchangePrivateStore But 
when i register for the system events(OnmDBShutDown and OnMDBStartUp) first i 
was not able to initialize MAPI also. Then when i used the CoInitialize i 
could initialize MAPI but the HrOpenExchangePrivateStore is failing with the 
Error code 80004005 (-2147467259)which is E_FAIL (unspecified error). Does 
any of you know why is that and what i should do to solve that?

I initialized MAPI like this,

CoInitializeEx (NULL,COINIT_MULTITHREADED);
MAPIINIT_0 mapiInit;
mapiInit.ulVersion = 0;
mapiInit.ulFlags = MAPI_MULTITHREAD_NOTIFICATIONS | MAPI_NO_COINIT;
MAPIInitialize (&mapiInit);

Thanks a lotz in Advance,
        Melbin
date: Mon, 10 Oct 2005 20:03:01 -0700   author:   Melbin

Google
 
Web ureader.com


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