Condividi tramite


Funzione PeerDistClientGetInformationByHandle (peerdist.h)

La funzione PeerDistClientGetInformationByHandle recupera informazioni aggiuntive dal servizio di distribuzione peer per un handle di contenuto specifico.

Sintassi

DWORD PeerDistClientGetInformationByHandle(
  [in]  PEERDIST_INSTANCE_HANDLE             hPeerDist,
  [in]  PEERDIST_CONTENT_HANDLE              hContentHandle,
  [in]  PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS PeerDistClientInfoClass,
        DWORD                                dwBufferSize,
  [out] LPVOID                               lpInformation
);

Parametri

[in] hPeerDist

Oggetto PEERDIST_INSTANCE_HANDLE restituito dalla funzione PeerDistStartup .

[in] hContentHandle

Oggetto PEERDIST_CONTENT_HANDLE restituito dalla funzione PeerDistClientOpenContent .

[in] PeerDistClientInfoClass

Valore dell'enumerazione PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS che indica le informazioni da recuperare.

dwBufferSize

Dimensioni, in byte, del buffer per il parametro lpInformation .

[out] lpInformation

Buffer per le informazioni restituite. Il formato di queste informazioni dipende dal valore del parametro PeerDistClientInfoClass .

Valore restituito

Se la funzione ha esito positivo, il valore restituito viene ERROR_SUCCESS.

Requisiti

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

Vedi anche

PEERDIST_CLIENT_INFO_BY_HANDLE_CLASS

PeerDistClientOpenContent

PeerDistStartup