View Single Post
  #6  
Old December 11th 08, 05:09 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to read all contacts with the same name.

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 ?



Ads