IRTCPresenceDevice::GetPresenceData (Windows CE 5.0)
This method retrieves the presence data for this device. The presence data contains application-specific information that is included in the presence document. An application sets presence data using IRTCClientPresence2::SetPresenceData.
HRESULT GetPresenceData(BSTR* pbstrNamespace,BSTR* pbstrData);
Parameters
- pbstrNamespace
[out] Pointer to a BSTR that will be filled with the namespace, or an empty string if there is no entry. The method is responsible for allocating the buffer. The application is responsible for releasing this memory with SysFreeString. - pbstrData
[out] Pointer to a BSTR that will be filled with the enhanced presence data, or an empty string if there is no entry. The method is responsible for allocating the buffer. The application 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 pbstrNamespace or pbstrData parameter is not a valid pointer. |
RTC_E_NOT_EXIST | The namespace or the data does not exist. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.
See Also
IRTCPresenceDevice | IRTCClientPresence2::SetPresenceData | SysFreeString
Send Feedback on this topic to the authors