Re: IMAPITable::Advise on MAPI folder selection

Tech-Archive recommends: Fix windows errors by optimizing your registry



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









.



Relevant Pages

  • Re: HTML Item properties vs. Regular item properties
    ... Why would Outlook record different times for the HTTP ... and the default folder? ... Dim app As Outlook.Application ... "Dmitry Streblechenko" wrote: ...
    (microsoft.public.outlook.program_vba)
  • Re: Redemption.RDOSession().CurrentUser.Name is UNKNOWN?
    ... and MAPI Developer Tool ... Outlook is paralley running. ... Dmitry Streblechenko wrote: ... LogonExchangeMailbox - supressing login dialogs ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Incremental Change Synchronization - redemption dll
    ... Does it always happen for the same folder? ... OutlookSpy - Outlook, CDO ... "Dmitry Streblechenko" wrote: ... QueryInterface call on the COM component for the interface with IID ...
    (microsoft.public.outlook.program_forms)
  • Re: How to link Contact and Exchange User (GAL)
    ... Redemption loads it in-proc, Redemption must also be 32 bit. ... OutlookSpy - Outlook, CDO ... and MAPI Developer Tool ... "Dmitry Streblechenko" wrote: ...
    (microsoft.public.outlook.program_vba)
  • Re: Fake a .Sent
    ... OutlookSpy - Outlook, CDO ... and MAPI Developer Tool ... So as an e-mail is dropped to the Sent folder, ... "Dmitry Streblechenko" wrote: ...
    (microsoft.public.outlook.program_vba)