Compartilhar via


PeerIdentityGetFriendlyName (Windows CE 5.0)

Send Feedback

This function retrieves the friendly name of the peer identity.

HRESULT WINAPI PeerIdentityGetFriendlyName(  PCWSTR pwzIdentity,  PWSTR* ppwzFriendlyName);

Parameters

  • pwzIdentity
    [in] Specifies the peer identity to obtain a friendly name for.
  • ppwzFriendlyName
    [out] Receives a pointer to the friendly name. When ppwzFriendlyName is not required anymore, the application is responsible for freeing this string by calling PeerFreeData.

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.