Função PeerDistServerCloseContentInformation (peerdist.h)

A função PeerDistServerCloseContentInformation fecha o identificador aberto por PeerDistServerOpenContentInformation.

Sintaxe

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

Parâmetros

[in] hPeerDist

O PEERDIST_INSTANCE_HANDLE retornado por PeerDistStartup.

[in] hContentInfo

O identificador retornado por PeerDistServerOpenContentInformation.

Retornar valor

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

Código de retorno Descrição
ERROR_INVALID_HANDLE
Os identificadores hPeerDist ou hContentInfo fornecidos são inválidos.
ERROR_ACCESS_DISABLED_BY_POLICY
O recurso é desabilitado por Política de Grupo.

Comentários

O PeerDistServerCloseContentInformation fecha o PEERDIST_CONTENTINFO_HANDLE. Além disso, chamar PeerDistServerCloseContentInformation cancelará todas as operações pendentes associadas ao PEERDIST_CONTENTINFO_HANDLE.

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

PeerDistServerOpenContentInformation