Partager via


IRTCUserSearchQuery::SearchDomain (Windows Embedded CE 6.0)

1/6/2010

Note

This method is unsupported in Windows Embedded CE 6.0.

This method sets or gets the domain for a user search.

Syntax

HRESULT put_SearchDomain(
  BSTR bstrDomain
);
HRESULT get_SearchDomain(
  BSTR* pbstrDomain
);

Parameters

  • bstrDomain, pbstrDomain
    [in, out] The domain for the user search. On output, this parameter is a pointer to a BSTR that will be filled with the domain for the user search. The method allocates the buffer. The caller is responsible for releasing this memory with SysFreeString. If the value for the output parameter is NULL, the domain specified in the associated profile is used.

Return Value

This method can return an RTC_E_ constant. The following table shows additional return values and additional information about a specific return value.

Value Meaning

E_INVALIDARG

The pbstrDomain string is empty.

E_POINTER

The pbstrDomain parameter is not a valid pointer.

E_OUTOFMEMORY

Insufficient memory to perform this operation.

RTC_E_NOT_EXIST

The requested domain has not been set for this query.

Requirements

Header rtccore.h, rtccore.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

IRTCUserSearchQuery

Other Resources

SysFreeString