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" <Sergeichik[ at ]discussions.microsoft.com> wrote in message news:8C59AEB9-4C09-4EDF-8F7F-73EEA15610FA[ at ]microsoft.com...
[Quoted Text] > 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, n[ at ]vf.com, ResolveName() > can't find contact at all. > > How can I handle this particularities ?
|