Share via


IRTCBuddy2::PresenceProperty

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

Note

This method is unsupported in Windows Embedded CE 6.0.

This method gets the desired presence property for the buddy. It retrieves the information set in the IRTCClientPresence2::PresenceProperty method.

Syntax

HRESULT get_PresenceProperty(
  RTC_PRESENCE_PROPERTY enProperty,
  BSTR* pbstrProperty
);

Parameters

  • enProperty
    [in] An RTC_PRESENCE_PROPERTY enumeration value specifying the presence property type for this buddy.
  • pbstrProperty
    [out] Pointer to a BSTR that will be filled with the presence property for the buddy, or an empty string if there is no entry. The method allocates the buffer. The caller is responsible for releasing this memory with SysFreeString.

Return Value

This method can return an RTC_E_ constant. The following table shows additional possible return values.

Value Meaning

E_INVALIDARG

The RTCSS_MULTIPLE value is not a valid argument for the enProperty parameter.

E_OUTOFMEMORY

Insufficient memory to perform this operation.

E_POINTER

The pbstrProperty parameter is not a valid pointer.

Requirements

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

See Also

Reference

IRTCBuddy2
IRTCClientPresence2::PresenceProperty
RTC_PRESENCE_PROPERTY

Other Resources

SysFreeString