PeerGroupUnregisterEvent function (p2p.h)

The PeerGroupUnregisterEvent function unregisters a peer from notification of peer events associated with the supplied event handle.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGroupUnregisterEvent(
  [in] HPEEREVENT hPeerEvent
);

Parameters

[in] hPeerEvent

Handle returned by a previous call to PeerGroupRegisterEvent. This parameter is required.

Return value

Returns S_OK if the operation succeeds. Otherwise, the function returns the following value.

Return code Description
E_INVALIDARG
The parameter is not valid.
 

Cryptography-specific errors can be returned from the Microsoft RSA Base Provider. These errors are prefixed with CRYPT_* and defined in Winerror.h.

Remarks

This function must be called before the HPEEREVENT handle is closed.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP
Minimum supported server None supported
Target Platform Windows
Header p2p.h
Library P2P.lib
DLL P2P.dll

See also

PeerGroupRegisterEvent