Re: IMAPITable::Advise on MAPI folder selection
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Thu, 17 Jan 2008 13:29:11 -0700
Did you mean Advise(0, NULL, ...) which stes an event sink for *all* objects
in the store?
Or Advise() with the entry id of a specific folder?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mahesh" <Mahesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:947A3A96-21DD-4E46-8660-34AB6D1B55CC@xxxxxxxxxxxxxxxx
Thanks Dmitry.
Yes, it does. But the problem with that is Unadvise is not being called
till
you logout from outlook, which means that we will not know whether the
folder
has been deselected or not.
Regards,
Mahesh
"Dmitry Streblechenko" wrote:
Do you get IMsgStore::Advise on that folder?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mahesh" <Mahesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E3D5C188-A6EF-441B-92DD-0623D2B79B02@xxxxxxxxxxxxxxxx
Thanks Dmitry for you reply.
Yes, we are doing that as well. But the problem with that approach is
that
we will not be able to catch the folders which are selected just by
clicking
the check box in the calendar view of OL2003+ and that is the reason we
took
this approach. Initially when we implemented this it was working fine
but
suddenly it has stopped working I am not sure why. Even I reverted back
all
the changes that we had done post the implementation but still Outlook
behaves differently now, I know it sounds wierd but unfortunately that
is
the
case.
-Mahesh
"Dmitry Streblechenko" wrote:
I don't think it is a good idea to use IMAPITable:Advise to check
whether
a
particular folder is selected.
You can implement a COM add-in in the same dll that will do nothing
but
retrieve Outlook.Application from Outlok and subscribe to the
Application.Explorerss.NewExplorer and Explorer.FolderSwitch events.
You
can
then use MAPIFolder.CurrentFolder property to figure out which folders
are
selected (can be more than one).
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Mahesh" <Mahesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2D801936-C6D5-48F8-8B36-E0A60AFFDB14@xxxxxxxxxxxxxxxx
Hello,
As part of MAPI Provider wrapped around MSPST.
We have wrapped the IMAPITable returned by PST provider in
IMAPIFolder::GetContentstable and on IMAPITable::Advise call on this
table
pointer we determine that particular folder has been selected. This
works
fine with OL2K but is not working in OL2K3 and OL2K7 ( I remember
that
this
was working fine few months ago with OL2K3) i.e IMAPTable::Advise is
not
being called. I am not sure why it is not being called?
I also observed that the IMAPITable pointer is being released
completely
(i.e counter is zero and object is getting deleted).
Thanks in advance,
Mahesh
.
- Follow-Ups:
- Re: IMAPITable::Advise on MAPI folder selection
- From: Mahesh
- Re: IMAPITable::Advise on MAPI folder selection
- References:
- Re: IMAPITable::Advise on MAPI folder selection
- From: Dmitry Streblechenko
- Re: IMAPITable::Advise on MAPI folder selection
- From: Mahesh
- Re: IMAPITable::Advise on MAPI folder selection
- From: Dmitry Streblechenko
- Re: IMAPITable::Advise on MAPI folder selection
- From: Mahesh
- Re: IMAPITable::Advise on MAPI folder selection
- Prev by Date: Re: IMAPITable::Advise on MAPI folder selection
- Next by Date: Can I make a namedpipe client do asynchronous reading with overlap
- Previous by thread: Re: IMAPITable::Advise on MAPI folder selection
- Next by thread: Re: IMAPITable::Advise on MAPI folder selection
- Index(es):
Relevant Pages
|