PeerDistServerCloseContentInformation function

The PeerDistServerCloseContentInformation function closes the handle opened by PeerDistServerOpenContentInformation.

Syntax


DWORD WINAPI PeerDistServerCloseContentInformation(
  _In_  PEERDIST_INSTANCE_HANDLE hPeerDist,
  _In_  PEERDIST_CONTENT_HANDLE hContentInfo
);

Parameters

hPeerDist [in]

The PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

hContentInfo [in]

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 codeDescription
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

Minimum supported client

Windows 7 Professional [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

PeerDist.h

Library

PeerDist.lib

DLL

PeerDist.dll

See also

PeerDistServerOpenContentInformation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft