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: Fri, 8 Feb 2008 15:35:24 -0000,    group: microsoft.public.platformsdk.mapi        back       


Message store provider Init   
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
date: Fri, 8 Feb 2008 15:35:24 -0000   author:   Windoze

Re: Message store provider Init   
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
date: Tue, 12 Feb 2008 15:03:39 -0800 (PST)   author:   Henry Gusakovsky

Google
 
Web ureader.com


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