A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

IAddrBook::ResolveName() problems



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 5th 08, 02:14 PM posted to microsoft.public.outlook.program_addins
Sergeichik
external usenet poster
 
Posts: 21
Default IAddrBook::ResolveName() problems

1. If there are two similar contacts with names: "NN" and "NN " in Outlook
address book (second name with gap after letters), and I call ResolveName()
with parameter PR_DISPLAY_NAME = "NN", function can't resolve names and show
dialog (if MAPI_DIALOG flag was set). Function must find the contact without
the dialog been shown, as 'NN' and 'NN ' (with gap after) are really distinct
names.
2. If there are two contacts, one of which is substring of another: for
example, "Jane" and "Jane L" and function ResolveName() was called to find
"Jane", it can't resolve names too (see 1). Function must find the contact
without the dialog been shown, as 'Jane' and 'Jane L' are really distinct
names.
3. If there are two contacts with coincident names, but in diffrent folders,
ResolveName() stopped at the first founded contact. But dialog 'select name'
should be appear.
4. If display name looks like e-mail: for example, , ResolveName()
can't find contact at all.

How can I handle this particularities ?
Ads
  #2  
Old December 5th 08, 05:07 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IAddrBook::ResolveName() problems

1. If you get an ambiguous name, you can perform a PR_ANR restriction on an
AB container (such as GAL) that you are interested in.
2. Must? That is not how it worked for the last 15 years or so.
3. That is just how name resolution is implemeted. MAPI loops through all AB
providers in the search path (remember you can have multiple independent
providers) and stops at the very first one that returns success or an
ambiguous name. In case of an ambiguous name, it performs PR_ANR restriciton
on that container and uses the returned entries to display the "Ambiguous
name" dialog.
4. Can't find as in "returns an error"? Or as in "returns a one-off entry"?
Which AB provider is that? Remember that MAPI itself does not resolve a
name, a particular address book provider does. and each one of them can have
a different implementation.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Sergeichik" wrote in message
...
1. If there are two similar contacts with names: "NN" and "NN " in Outlook
address book (second name with gap after letters), and I call
ResolveName()
with parameter PR_DISPLAY_NAME = "NN", function can't resolve names and
show
dialog (if MAPI_DIALOG flag was set). Function must find the contact
without
the dialog been shown, as 'NN' and 'NN ' (with gap after) are really
distinct
names.
2. If there are two contacts, one of which is substring of another: for
example, "Jane" and "Jane L" and function ResolveName() was called to find
"Jane", it can't resolve names too (see 1). Function must find the contact
without the dialog been shown, as 'Jane' and 'Jane L' are really distinct
names.
3. If there are two contacts with coincident names, but in diffrent
folders,
ResolveName() stopped at the first founded contact. But dialog 'select
name'
should be appear.
4. If display name looks like e-mail: for example, , ResolveName()
can't find contact at all.

How can I handle this particularities ?



  #3  
Old December 9th 08, 10:23 AM posted to microsoft.public.outlook.program_addins
Sergeichik
external usenet poster
 
Posts: 21
Default IAddrBook::ResolveName() problems


3. That is just how name resolution is implemeted. MAPI loops through all AB
providers in the search path (remember you can have multiple independent
providers) and stops at the very first one that returns success or an
ambiguous name. In case of an ambiguous name, it performs PR_ANR restriciton
on that container and uses the returned entries to display the "Ambiguous
name" dialog.


How can I find all contacts with particular name (fom all folders) ?
  #4  
Old December 10th 08, 02:27 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IAddrBook::ResolveName() problems

All contacts from conatcts folders in a particular store?
All address entries from all address book containers in the address book?
The two are different as you can have a contacts folder in a store that does
not show up in the address book ("Show in teh address book" checkbox is nto
checked). Plus you can have other AB providers (such as GAL) that have
nothign to do with contact messages in a message store.

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

3. That is just how name resolution is implemeted. MAPI loops through all
AB
providers in the search path (remember you can have multiple independent
providers) and stops at the very first one that returns success or an
ambiguous name. In case of an ambiguous name, it performs PR_ANR
restriciton
on that container and uses the returned entries to display the "Ambiguous
name" dialog.


How can I find all contacts with particular name (fom all folders) ?



  #5  
Old December 10th 08, 02:14 PM posted to microsoft.public.outlook.program_addins
Sergeichik
external usenet poster
 
Posts: 21
Default IAddrBook::ResolveName() problems

"Dmitry Streblechenko" wrote:

All contacts from conatcts folders in a particular store?
All address entries from all address book containers in the address book?



All contacts that can be available to user from Outlook Address book.
  #6  
Old December 11th 08, 05:07 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IAddrBook::ResolveName() problems

Opne the address book, open the root container, (IAddrBook::OpenEntry(0,
NULL, ...)), get all the subcontainers (IABContainer::GetHierarchyTable).
For each container, open it (IAddrBook::OpenEntry - get back IABContainer),
get the contents table (IABContainer::GetContentsTable), perform PR_ANR
restriction (IMAPITable::Restrict).

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

All contacts from conatcts folders in a particular store?
All address entries from all address book containers in the address book?



All contacts that can be available to user from Outlook Address book.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two problems No One Outlook Express 14 July 30th 07 05:51 PM
Two problems lcrow Outlook - Calandaring 0 February 20th 07 04:25 PM
problems the boss Outlook Express 1 April 20th 06 01:01 AM
PlanPlus v 3 (and Outlook 2003 SP2) - install problems, uninstall problems, bugs? kkernspa Add-ins for Outlook 0 April 9th 06 03:07 AM
WAB question:how to config the UI popped up with IAddrBook-Address spider Outlook Express 6 February 27th 06 04:52 PM


All times are GMT +1. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.