PeerDistServerPublishCompleteStream function

The PeerDistServerPublishCompleteStream function completes the process of adding data to the stream.

Syntax


DWORD WINAPI PeerDistServerPublishCompleteStream(
  _In_ PEERDIST_INSTANCE_HANDLE hPeerDist,
  _In_ PEERDIST_STREAM_HANDLE   hStream,
  _In_ LPOVERLAPPED             lpOverlapped
);

Parameters

hPeerDist [in]

A PEERDIST_INSTANCE_HANDLE returned by PeerDistStartup.

hStream [in]

A PEERDIST_STREAM_HANDLE returned by PeerDistServerPublishStream.

lpOverlapped [in]

Pointer to an OVERLAPPED structure. The Offset and OffsetHigh are reserved and must be zero.

Return value

If the function succeeds, the return value is ERROR_IO_PENDING. 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 hStream handle is invalid

ERROR_OPERATION_ABORTED

The operation was canceled.

ERROR_ACCESS_DISABLED_BY_POLICY

The feature is disabled by Group Policy.

PEERDIST_ERROR_SERVICE_UNAVAILABLE

The service is unavailable.

 

Remarks

Once this API completes successfully, PeerDistServerOpenContentInformation and PeerDistServerRetrieveContentInformation can be used to retrieve content information.

PeerDistServerPublishCompleteStream does not close hStream. In order to close hStream, call PeerDistServerCloseStreamHandle.

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

PeerDistServerPublishStream
PeerDistServerOpenContentInformation
PeerDistServerRetrieveContentInformation
PeerDistServerPublishAddToStream
PeerDistServerCloseStreamHandle
PeerDistServerUnpublish

 

 

Community Additions

ADD
Show: