IRTCProfile2::Realm (Windows CE 5.0)

Send Feedback

This method sets or gets the realm value for the profile.

HRESULT put_Realm(  BSTR bstrRealm);HRESULT get_Realm(  BSTR* pbstrRealm);

Parameters

  • bstrRealm, pbstrRealm
    [in, out] Realm set on this profile. On output, this parameter is a pointer to a BSTR that will be filled with the realm, or an empty string if there is no entry. The method is responsible for allocating the buffer. The caller is responsible for releasing this memory with SysFreeString.

Return Values

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_OUTOFMEMORY Insufficient memory to perform this operation.
E_POINTER The pbstrRealm parameter is not a valid pointer.
RTC_E_INVALID_REGISTRATION_STATE The profile is in the RTCRS_REGISTERED, RTCRS_UNREGISTERING, or RTCRS_REGISTERING state. In these states, the value previously set for the realm is being used and it cannot be changed.
RTC_E_NOT_EXIST The realm is not present in the profile.

Remarks

If Realm is set with a different realm than the user is logged onto or searching under, the user receives an RTCE_REGISTRATION_STATE_CHANGE_EVENT or RTCE_USERSEARCH event with the status code RTC_E_SIP_AUTH_TYPE_NOT_SUPPORTED.

If no realm has been previously set with the Realm method, the profile object uses the realm provided in the first authentication challenge.

If the challenge does not contain a realm value and the user has not set a realm on the profile using this method, Realm returns an RTC_E_NOT_EXIST error.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCProfile2 | SysFreeString

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.