PeerIdentitySetFriendlyName (Windows CE 5.0)

Send Feedback

This function modifies the friendly name for a specified peer identity. The friendly name is the human-readable name.

HRESULT WINAPI PeerIdentitySetFriendlyName(  PCWSTR pwzIdentity,  PCWSTR pwzFriendlyName);

Parameters

  • pwzIdentity
    [in] Specifies a peer identity to modify.
  • pwzFriendlyName
    [in] Specifies a new friendly name. Specify NULL or an empty string to reset a friendly name to the default value. This is the Unicode version of the peer name.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function call succeeded.
E_INVALIDARG One of the parameters is not valid.
E_OUTOFMEMORY There is not enough memory to perform the specified operation.
PEER_E_NO_KEY_ACCESS Access to the peer identity or peer-to-peer group keys was denied. This is typically caused by an incorrect access control list (ACL) for the folder that contains the user or computer keys. This can happen when the ACL has been manually reset.
PEER_E_NOT_FOUND A peer identity that matches the specified name cannot be found.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: p2p.h.
Link Library: p2p.lib.

See Also

Identity Manager Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.