PeerDistClientCloseContent function (peerdist.h)
The PeerDistClientCloseContent function closes the content handle opened by PeerDistClientOpenContent.
Syntax
DWORD PeerDistClientCloseContent(
[in] PEERDIST_INSTANCE_HANDLE hPeerDist,
[in] PEERDIST_CONTENT_HANDLE hContentHandle
);
Parameters
[in] hPeerDist
A PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.
[in] hContentHandle
A PEERDIST_CONTENT_HANDLE opened by PeerDistClientOpenContent.
Return value
If the function succeeds, the return value is ERROR_SUCCESS. Otherwise, the function may return one of the following values:
Return code | Description |
---|---|
|
One or more parameters are invalid. |
|
The hPeerDist or hContent handle is invalid. |
Remarks
This function will cancel all pending asynchronous operations associated with the provided hContentHandle.
All handles opened by the PeerDistClientOpenContent function must be closed by PeerDistClientCloseContent.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 Professional [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | peerdist.h |
Library | PeerDist.lib |
DLL | PeerDist.dll |