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。 否則,此函式可能會傳回下列其中一個值:
傳回碼 | Description |
---|---|
|
提供的 hPeerDist 或 hContentInfo 句柄無效。 |
|
群組原則 會停用此功能。 |
備註
PeerDistServerCloseContentInformation 會關閉PEERDIST_CONTENTINFO_HANDLE。 此外,呼叫 PeerDistServerCloseContentInformation 將會取消與 PEERDIST_CONTENTINFO_HANDLE相關聯的任何擱置作業。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows 7 專業版 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2008 R2 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | peerdist.h |
程式庫 | PeerDist.lib |
Dll | PeerDist.dll |