PeerDistServerCloseContentInformation 函数 (peerdist.h)
PeerDistServerCloseContentInformation 函数关闭 PeerDistServerOpenContentInformation 打开的句柄。
语法
DWORD PeerDistServerCloseContentInformation(
[in] PEERDIST_INSTANCE_HANDLE hPeerDist,
[in] PEERDIST_CONTENTINFO_HANDLE hContentInfo
);
参数
[in] hPeerDist
PeerDistStartup 返回的PEERDIST_INSTANCE_HANDLE。
[in] hContentInfo
PeerDistServerOpenContentInformation 返回的句柄。
返回值
如果函数成功,则返回值 ERROR_SUCCESS。 否则,该函数返回以下值之一:
返回代码 | 说明 |
---|---|
|
提供的 hPeerDist 或 hContentInfo 句柄无效。 |
|
组策略禁用该功能。 |
注解
PeerDistServerCloseContentInformation 关闭PEERDIST_CONTENTINFO_HANDLE。 此外,调用 PeerDistServerCloseContentInformation 将取消与 PEERDIST_CONTENTINFO_HANDLE关联的任何挂起操作。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | Windows 7 专业版 [仅限桌面应用] |
最低受支持的服务器 | Windows Server 2008 R2 [仅限桌面应用] |
目标平台 | Windows |
标头 | peerdist.h |
Library | PeerDist.lib |
DLL | PeerDist.dll |