Hi It looks like there's something fundamentally wrong with my message store. Whenever I navigate away from my message store and the navigate back (i.e. go from my store, click on Exchange folders and then click back on my store) Outlook appears to call my MSProviderInit function again instead of hanging on to the existing folder. At the moment the code detects that the same store is being asked for and passes back a pointer to the existing store after incrementing its reference count. Is there something wrong with my store that it keeps asking for it every time the user navigates away? Cheers Win
You need to register opened store inside the instance of provider object. So every time you have MSProviderInit you have new instance of the provider. So for Logon call you need to check current instance of provider if the same store was opened. Actually Outlook can have several instances of provider opened. There is at least 2 of them. One for showing gui and another for the spooler context. Regards Henry On Feb 8, 5:35 pm, "Windoze" wrote: > Hi > > It looks like there's something fundamentally wrong with my message store. > > Whenever I navigate away from my message store and the navigate back (i.e. > go from my store, click on Exchange folders and then click back on my store) > Outlook appears to call my MSProviderInit function again instead of hanging > on to the existing folder. > > At the moment the code detects that the same store is being asked for and > passes back a pointer to the existing store after incrementing its reference > count. > > Is there something wrong with my store that it keeps asking for it every > time the user navigates away? > > Cheers > Win