PeerCollabGetPresenceInfo function (p2p.h)

The PeerCollabGetPresenceInfo function retrieves the presence information for the endpoint associated with a specific contact.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabGetPresenceInfo(
  [in]  PCPEER_ENDPOINT     pcEndpoint,
  [out] PPEER_PRESENCE_INFO *ppPresenceInfo
);

Parameters

[in] pcEndpoint

Pointer to a PEER_ENDPOINT structure that contains the specific endpoint associated with the contact specified in pcContact for which presence information must be returned.

[out] ppPresenceInfo

Pointer to the address of the PEER_PRESENCE_INFO structure that contains the requested presence data for the supplied endpoint.

Return value

Returns S_OK if the function succeeds. Otherwise, the function returns one of the following values.

Return code Description
E_OUTOFMEMORY
There is not enough memory to support this operation.
E_INVALIDARG
One of the arguments is invalid.
PEER_E_NOT_INITIALIZED
The application did not make a previous call to PeerCollabStartup.
PEER_E_NOT_FOUND
The presence information for the specified endpoint was not found in the peer collaboration network.

Remarks

To obtain a peer object successfully:

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header p2p.h
Library P2P.lib
DLL P2P.dll

See also

PEER_CONTACT

PEER_ENDPOINT

PEER_PRESENCE_INFO

Peer Collaboration API Functions