IRTCClientPresence2::DisablePresence
The DisablePresence method disables the presence functionality on the client. The local store for buddies and watchers is closed and the buddy and watcher objects are destroyed.
An application should call this after the default presence profile has been unregistered with IRTCClientProvisioning::DisableProfile.
HRESULT DisablePresence();
Parameters
This method has no parameters.
Return Values
RTC methods may return an RTC_E_ constant.
Value | Meaning |
---|---|
RTC_E_NOT_PRESENCE_NOT_ENABLED | Presence has not been enabled. |
RTC_E_CLIENT_NOT_INITIALIZED | The client object has not been initialized. |
RTC_E_ROAMING_ENABLED | Presence cannot be disabled because roaming is enabled on the profile. |
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_IRTCClientPresence2 is defined as AD1809E8-62F7-4783-909A-29C9D2CB1D34.
See Also
IRTCClientPresence2, IRTCClientPresence, IRTCClientPresence2::EnablePresenceEx, IRTCClientPresence::EnablePresence, Roaming