Share via


ContactsSearchCriteria (Windows Embedded CE 6.0)

1/6/2010

This structure contains criteria submitted to Exchange when querying for information about members of an entity's Exchange contact list.

You pass an instance of this structure to the IExchangeClient::RequestContacts method when retrieving contact information.

Syntax

struct ContactsSearchCriteria {
  WCHAR* wszFirstName;
  WCHAR* wszLastName;
};

Members

  • wszFirstName
    The first name on which to search.
  • wszLastName
    The last name on which to search.

Remarks

A search using this structure returns records that start with the provided strings.

For example, if wszFirstName is John, the search returns records that have first names that start with John, including John, Johnny, and so on.

Each field of the structure can point to a string that constrains the search, or the field can contain NULL if the field is not relevant for the search.

If neither field is specified, the search returns all contacts.

If both fields point to valid strings, the search applies both criteria in an AND combination.

For example, if wszFirstName is John and wszLastName is Doe, the search returns records that have a first name that starts with John and a last name that starts with Doe.

The search is case-insensitive.

Requirements

Header iexchangeclient.h, iexchangeclient.idl
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Exchange Client Structures
IExchangeClient::RequestContacts