PeerDistClientCloseContent function

The PeerDistClientCloseContent function closes the content handle opened by PeerDistClientOpenContent.

Syntax


DWORD WINAPI PeerDistClientCloseContent(
  _In_  PEERDIST_INSTANCE_HANDLE hPeerDist,
  _In_  PEERDIST_CONTENT_HANDLE hContentHandle
);

Parameters

hPeerDist [in]

A PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

hContentHandle [in]

A PEERDIST_CONTENT_HANDLE opened by PeerDistClientOpenContent.

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_PARAMETER

One or more parameters are invalid.

ERROR_INVALID_HANDLE

The hPeerDist or hContent handle is invalid.

 

Remarks

This function will cancel all pending asynchronous operations associated with the provided hContentHandle.

All handles opened by the PeerDistClientOpenContent function must be closed by PeerDistClientCloseContent.

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

PeerDistClientOpenContent

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.