Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
The PeerCollabSetEndpointName function sets the name of the current endpoint used by the peer application.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerCollabSetEndpointName(
[in] PCWSTR pwzEndpointName
);
Parameters
[in] pwzEndpointName
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.
Return value
Returns S_OK if the function succeeds. Otherwise, the function returns one of the following values.
| Return code | Description |
|---|---|
|
There is not enough memory to support this operation. |
|
One of the arguments is invalid. |
|
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.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | None supported |
| Target Platform | Windows |
| Header | p2p.h |
| Library | P2P.lib |
| DLL | P2P.dll |