Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Subscribed Contacts should be shown in the address book drop down

97 views
Skip to first unread message

Dmitry Streblechenko

unread,
Feb 26, 2006, 4:48:40 PM2/26/06
to
What kind of provider did you write? Is it an address book or a message
store provider?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Nitin" <Ni...@discussions.microsoft.com> wrote in message
news:A88FAC2B-0F06-4847...@microsoft.com...
> Is there any way that i can programatically display a subcribed contact
> folder in the drop down list for address book in Outlook. The same
> functionality when the user selects the contact folder and selects "Show
> this
> folder as an email address book ". I have written my own MAPI service
> providers for Outlook and would like to do this from my provider. I guess
> that there is a method IAddrBook::SetSearchPath which can be used to set
> the
> serach path for the contacts, but could i use this in my service provider?
>
> Any help deeply appreciated.


Nitin

unread,
Feb 27, 2006, 9:30:27 AM2/27/06
to
Thanks Dmitry for your reply.

We have a message store provider

Nitin

Dmitry Streblechenko

unread,
Feb 28, 2006, 12:28:57 PM2/28/06
to
1. Open the OAB root container
2. Call IABContainer::CreateEntry
3. Set the following properties on the newly created container and call
SaveChanges:

PR_AB_FOLDER_ENTRYID = 0x66100102
PR_AB_FOLDER_STORE_SUPPORT_MASK = 0x66110003
PR_DISPLAY_NAME
PR_AB_FOLDER_STORE_DISPLAY_NAME_W = 0x6612001F
PR_AB_FOLDER_FOLDER_DISPLAY_NAME_A = 0x6613001E
PR_AB_FOLDER_DISPLAY_IN_AB = 0x6614000B
PR_STORE_ENTRYID

Look at the OAB's root folder hierarchy table to see what these properties
contain for other folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Nitin" <Ni...@discussions.microsoft.com> wrote in message

news:6CB7717D-DD03-416A...@microsoft.com...

Nitin

unread,
Feb 28, 2006, 4:09:28 PM2/28/06
to
Thanks a lot for the reply Dmitry, will try this out and let you know.

I wanted to know how are these hard coded values obtained, is there any
documentation that you could point me to regarding this,this would be of
great help.

I searched for PR_AB_FOLDER_DISPLAY_IN_AB in goggle as well as platform sdk
help but was unable to find any details on this.

Thanks again
Nitin

Dmitry Streblechenko

unread,
Mar 1, 2006, 12:23:47 PM3/1/06
to
Nope, nothing is documented. The prop tag names are my own, that's why I
also gave their numeric values.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Nitin" <Ni...@discussions.microsoft.com> wrote in message

news:81D8FF52-2920-4994...@microsoft.com...

Nitin

unread,
Mar 1, 2006, 12:39:29 PM3/1/06
to
Ok thanks again for the response. Would it be possible for you to send a
small example, just a few lines of code on this please.

Thanks in advance

Nitin

Dmitry Streblechenko

unread,
Mar 1, 2006, 2:17:45 PM3/1/06
to
The code that I have is a part of a commercial project that does not belong
to me, I can't post it, sorry.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Nitin" <Ni...@discussions.microsoft.com> wrote in message

news:3B10321F-F458-4903...@microsoft.com...

rick

unread,
Aug 22, 2006, 2:56:32 PM8/22/06
to
Hi Dmitry,

Currently I am trying to show a contact folder in Outlook address book's
drop down list.

I happened to read your post here, and tried on it.

It seems that OAB comes with an AB_UNMODIFIABLE flag in its
PR_CONTAINER_FLAGS property. Thus even though I can successfully CreateEntry,
SetProps, SaveChanges for the new contact folder, I still could not see it
in OAB container from the same Outlook session.

Then I came up with another one of your posts talking about modifying
properties in OAB provider's IProfSect interface (link http://groups.yahoo.
com/group/outlook-dev/message/21745)

In order to display my contact folder, do I still need to program through
IProfSect interface at the same time?

Any help is greatly appreciated.

Dmitry Streblechenko

unread,
Aug 22, 2006, 4:48:56 PM8/22/06
to
What properties do you set? I do not see AB_UNMODIFIABLE in any OAB
containers; AB_MODIFIABLE is there however.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"rick" <your...@yoursiteNOSPAM.com> wrote in message
news:33faeb1c7bbb452a...@ureader.com...

0 new messages