Share via


IRTCUserSearch::CreateQuery

The CreateQuery method creates a user search query object. The query is defined by setting properties on this object, which can be passed to the IRTCUserSearch::ExecuteSearch method to perform the search.

HRESULT CreateQuery(IRTCUserSearchQuery**ppQuery);

Parameters

  • ppQuery
    [out] Pointer to the IRTCUserSearchQuery interface. This call adds a reference to the user search query object, which the caller is responsible for releasing.

Return Values

RTC methods may return an RTC_E_ constant.

Value Meaning
E_POINTER The ppQuery parameter is not a valid pointer.
RTC_E_CLIENT_NOT_INITIALIZED The client object is not initialized.
E_OUTOFMEMORY Insufficient memory to perform this operation.

Requirements

Redistributable: Requires Rtcdll.dll on Windows 2000, Windows XP, and Windows Server 2003.
Header: Declared in Rtccore.h.
Library: Included as a resource in Rtcdll.dll.
GUID: IID_IRTCUserSearch is defined as B619882B-860C-4db4-BE1B-693B6505BBE5.

See Also

IRTCUserSearch, IRTCUserSearchQuery, Create and Send a Search Request