Função PeerDistServerPublishCompleteStream (peerdist.h)

A função PeerDistServerPublishCompleteStream conclui o processo de adição de dados ao fluxo.

Sintaxe

DWORD PeerDistServerPublishCompleteStream(
  [in] PEERDIST_INSTANCE_HANDLE hPeerDist,
  [in] PEERDIST_STREAM_HANDLE   hStream,
  [in] LPOVERLAPPED             lpOverlapped
);

Parâmetros

[in] hPeerDist

Um PEERDIST_INSTANCE_HANDLE retornado por PeerDistStartup.

[in] hStream

Um PEERDIST_STREAM_HANDLE retornado por PeerDistServerPublishStream.

[in] lpOverlapped

Ponteiro para uma estrutura OVERLAPPED . O Offset e o OffsetHigh são reservados e devem ser zero.

Retornar valor

Se a função for bem-sucedida, o valor retornado será ERROR_IO_PENDING. Caso contrário, a função pode retornar um dos seguintes valores:

Código de retorno Descrição
ERROR_INVALID_PARAMETER
Um ou mais parâmetros são inválidos.
ERROR_INVALID_HANDLE
O identificador hPeerDist ou hStream é inválido
ERROR_OPERATION_ABORTED
A operação foi cancelada.
ERROR_ACCESS_DISABLED_BY_POLICY
O recurso é desabilitado por Política de Grupo.
PEERDIST_ERROR_SERVICE_UNAVAILABLE
O serviço está indisponível.

Comentários

Depois que essa API for concluída com êxito, PeerDistServerOpenContentInformation e PeerDistServerRetrieveContentInformation poderão ser usados para recuperar informações de conteúdo.

PeerDistServerPublishCompleteStream não fecha hStream. Para fechar hStream, chame PeerDistServerCloseStreamHandle.

Requisitos

Requisito Valor
Cliente mínimo com suporte Windows 7 Professional [somente aplicativos da área de trabalho]
Servidor mínimo com suporte Windows Server 2008 R2 [somente aplicativos da área de trabalho]
Plataforma de Destino Windows
Cabeçalho peerdist.h
Biblioteca PeerDist.lib
DLL PeerDist.dll

Confira também

PeerDistServerCloseStreamHandle

PeerDistServerOpenContentInformation

PeerDistServerPublishAddToStream

PeerDistServerPublishStream

PeerDistServerRetrieveContentInformation

PeerDistServerUnpublish