Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The PeerGraphUnregisterEvent function requests that the application no longer be notified of changes associated with a peer graph and record type.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphUnregisterEvent(
[in] HPEEREVENT hPeerEvent
);
Parameters
[in] hPeerEvent
Peer event handle obtained from call to PeerGraphRegisterEvent.
Return value
If the function call succeeds, the return value is S_OK. Otherwise, it returns one of the following values.
Return code | Description |
---|---|
|
The parameter is not valid. |
|
The peer graph must be initialized with a call to PeerGraphStartup before using this function. |
Remarks
The peer event handle passed to PeerGraphRegisterEvent must be closed only after PeerGraphUnregisterEvent has been called.
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 | P2PGraph.lib |
DLL | P2PGraph.dll |