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。 否则,该函数返回以下值之一:

返回代码 说明
ERROR_INVALID_HANDLE
提供的 hPeerDisthContentInfo 句柄无效。
ERROR_ACCESS_DISABLED_BY_POLICY
组策略禁用该功能。

注解

PeerDistServerCloseContentInformation 关闭PEERDIST_CONTENTINFO_HANDLE。 此外,调用 PeerDistServerCloseContentInformation 将取消与 PEERDIST_CONTENTINFO_HANDLE关联的任何挂起操作。

要求

要求
最低受支持的客户端 Windows 7 专业版 [仅限桌面应用]
最低受支持的服务器 Windows Server 2008 R2 [仅限桌面应用]
目标平台 Windows
标头 peerdist.h
Library PeerDist.lib
DLL PeerDist.dll

另请参阅

PeerDistServerOpenContentInformation