Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
The PeerGraphClose function invalidates the peer graph handle returned by a call to either PeerGraphCreate or PeerGraphOpen, and closes all network connections for the specified peer graph.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphClose(
[in] HGRAPH hGraph
);
Parameters
[in] hGraph
Handle to the peer graph to close.
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. |
|
There is not enough memory to perform the specified operation. |
|
The handle to the peer graph is invalid. |
|
The peer graph must be initialized with a call to PeerGraphStartup before using this function. |
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 |