![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
How to read all contacts from Outlook Address book with some particular name,
for example 'Sunny', (from all folders) programmatically. Can I do it with ResolveName() function ? It stops at the first founded contact. |
Ads |
#2
|
|||
|
|||
![]()
As I mentioned in my prrevious reply, perform PR_ANR restriction on all
address book containers that you want to process. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Sergeichik" wrote in message ... How to read all contacts from Outlook Address book with some particular name, for example 'Sunny', (from all folders) programmatically. Can I do it with ResolveName() function ? It stops at the first founded contact. |
#3
|
|||
|
|||
![]()
"Dmitry Streblechenko" wrote:
As I mentioned in my prrevious reply, perform PR_ANR restriction on all address book containers that you want to process. Can you give any example ? |
#4
|
|||
|
|||
![]()
"Dmitry Streblechenko" wrote:
As I mentioned in my prrevious reply, perform PR_ANR restriction on all address book containers that you want to process. Should I process containers in cycle and use ResolveName() for each of them? |
#5
|
|||
|
|||
![]()
"Dmitry Streblechenko" wrote:
As I mentioned in my prrevious reply, perform PR_ANR restriction on all address book containers that you want to process. May you give an example of such PR_ANR restriction ? |
#6
|
|||
|
|||
![]()
It is a regular RES_PROPERTY restriction:
Restr.rt:=RES_PROPERTY; Restr.res.resProperty.relop:=RELOP_EQ; Restr.res.resProperty.ulPropTag:=PR_ANR; Restr.res.resProperty.lpProp:=@Prop; Prop.ulPropTag:=PR_ANR; Prop.Value.lpszA:=PChar(strName); res:=HrQueryAllRows(Tbl, @GALColumns, @Restr, nil, 0, pRows); -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Sergeichik" wrote in message ... "Dmitry Streblechenko" wrote: As I mentioned in my prrevious reply, perform PR_ANR restriction on all address book containers that you want to process. May you give an example of such PR_ANR restriction ? |
#7
|
|||
|
|||
![]()
Yes, do that in a loop. But ResolveName won't help you if you have multipe
entries with ambiguous names - use PR_ANR restriction. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Sergeichik" wrote in message ... "Dmitry Streblechenko" wrote: As I mentioned in my prrevious reply, perform PR_ANR restriction on all address book containers that you want to process. Should I process containers in cycle and use ResolveName() for each of them? |
#8
|
|||
|
|||
![]()
"Dmitry Streblechenko" wrote:
Thank you, it will be useful. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to read all contacts with the same name. | Sergeichik | Outlook - Using Contacts | 0 | December 9th 08 10:36 AM |
Calendar can't read Contacts? | flarosa | Outlook - Using Contacts | 1 | January 31st 08 08:57 PM |
contacts read only | wilecoyote | Outlook - Using Contacts | 1 | March 9th 07 10:43 AM |
Cannot read Notes contacts by using Outlook | wong | Outlook - General Queries | 0 | December 1st 06 08:24 AM |
export-import contacts read only | bgitter | Outlook - Using Contacts | 5 | May 31st 06 08:14 PM |