PeerDistServerCloseContentInformation function (peerdist.h)

The PeerDistServerCloseContentInformation function closes the handle opened by PeerDistServerOpenContentInformation.

Syntax

DWORD PeerDistServerCloseContentInformation(
  [in] PEERDIST_INSTANCE_HANDLE    hPeerDist,
  [in] PEERDIST_CONTENTINFO_HANDLE hContentInfo
);

Parameters

[in] hPeerDist

The PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

[in] hContentInfo

The handle returned by PeerDistServerOpenContentInformation.

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
ERROR_INVALID_HANDLE
The provided hPeerDist or hContentInfo handles are invalid.
ERROR_ACCESS_DISABLED_BY_POLICY
The feature is disabled by Group Policy.

Remarks

The PeerDistServerCloseContentInformation closes the PEERDIST_CONTENTINFO_HANDLE. Additionally, calling PeerDistServerCloseContentInformation will cancel any pending operations associated with the PEERDIST_CONTENTINFO_HANDLE.

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

See also

PeerDistServerOpenContentInformation