PeerGraphStartup, fonction (p2p.h)

La fonction PeerGraphStartup indique à l’infrastructure Peer Graphing quelle version des protocoles homologues l’application appelante a besoin. PeerGraphStartup doit être appelé avant toute autre fonction de graphique d’homologue. Il doit être mis en correspondance par un appel à PeerGraphShutdown.

Syntaxe

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerGraphStartup(
  [in]  WORD               wVersionRequested,
  [out] PPEER_VERSION_DATA pVersionData
);

Paramètres

[in] wVersionRequested

Spécifiez PEER_GRAPH_VERSION.

[out] pVersionData

Pointeur vers une structure PEER_VERSION_DATA qui reçoit la version de l’infrastructure homologue installée sur l’ordinateur local.

Valeur retournée

Retourne S_OK si l’opération réussit ; sinon, la fonction retourne l’une des valeurs suivantes :

Code de retour Description
E_OUTOFMEMORY
La mémoire est insuffisante pour effectuer l’opération spécifiée.
PEER_E_UNSUPPORTED_VERSION
La version demandée n’est pas prise en charge par l’infrastructure homologue .dll installée sur l’ordinateur local.

Spécifications

   
Client minimal pris en charge Windows XP avec SP2 [applications de bureau uniquement],Windows XP avec SP1 avec le pack de mise en réseau avancé pour Windows XP
Serveur minimal pris en charge Aucun pris en charge
Plateforme cible Windows
En-tête p2p.h
Bibliothèque P2PGraph.lib
DLL P2PGraph.dll

Voir aussi

PEER_VERSION_DATA

PeerGraphShutdown