Skip to content

Latest commit

 

History

History
111 lines (94 loc) · 2.57 KB

nf-p2p-peercollabsetendpointname.md

File metadata and controls

111 lines (94 loc) · 2.57 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:p2p.PeerCollabSetEndpointName
PeerCollabSetEndpointName function (p2p.h)
Sets the name of the current endpoint used by the peer application.
PeerCollabSetEndpointName
PeerCollabSetEndpointName function [Peer Networking]
p2p.peercollabsetendpointname
p2p/PeerCollabSetEndpointName
p2p\peercollabsetendpointname.htm
p2p
9b8d0559-c70e-4b05-bd73-1eb3b2e8f9c8
12/05/2018
PeerCollabSetEndpointName, PeerCollabSetEndpointName function [Peer Networking], p2p.peercollabsetendpointname, p2p/PeerCollabSetEndpointName
p2p.h
Windows
Windows Vista [desktop apps only]
None supported
P2P.lib
P2P.dll
Windows
19H1
PeerCollabSetEndpointName
p2p/PeerCollabSetEndpointName
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerCollabSetEndpointName

PeerCollabSetEndpointName function

-description

The PeerCollabSetEndpointName function sets the name of the current endpoint used by the peer application.

-parameters

-param pwzEndpointName [in]

Pointer to the new name of the current endpoint, represented as a zero-terminated Unicode string. An error is raised if the new name is the same as the current one. An endpoint name is limited to 255 Unicode characters.

-returns

Returns S_OK if the function succeeds. Otherwise, the function returns one of the following values.

Return code Description
E_OUTOFMEMORY
There is not enough memory to support this operation.
E_INVALIDARG
One of the arguments is invalid.
PEER_E_NOT_SIGNED_IN
The operation requires the user to be signed in.

-remarks

An endpoint name is set to the machine name by default. However, a new endpoint name set by the PeerCollabSetEndpointName function will persist across reboots.

-see-also

Peer Collaboration API Functions