Funzione PeerDistServerCloseContentInformation (peerdist.h)

La funzione PeerDistServerCloseContentInformation chiude l'handle aperto da PeerDistServerOpenContentInformation.

Sintassi

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

Parametri

[in] hPeerDist

Il PEERDIST_INSTANCE_HANDLE restituito da PeerDistStartup.

[in] hContentInfo

Handle restituito da PeerDistServerOpenContentInformation.

Valore restituito

Se la funzione ha esito positivo, il valore restituito è ERROR_SUCCESS. In caso contrario, la funzione può restituire uno dei valori seguenti:

Codice restituito Descrizione
ERROR_INVALID_HANDLE
Gli handle hPeerDist o hContentInfo forniti non sono validi.
ERROR_ACCESS_DISABLED_BY_POLICY
La funzionalità è disabilitata da Criteri di gruppo.

Commenti

PeerDistServerCloseContentInformation chiude il PEERDIST_CONTENTINFO_HANDLE. Inoltre, la chiamata a PeerDistServerCloseContentInformation annulla tutte le operazioni in sospeso associate alla PEERDIST_CONTENTINFO_HANDLE.

Requisiti

Requisito Valore
Client minimo supportato Windows 7 Professional [solo app desktop]
Server minimo supportato Windows Server 2008 R2 [solo app desktop]
Piattaforma di destinazione Windows
Intestazione peerdist.h
Libreria PeerDist.lib
DLL PeerDist.dll

Vedi anche

PeerDistServerOpenContentInformation