PeerIdentityDelete function (p2p.h)

The PeerIdentityDelete function permanently deletes a peer identity. This includes removing all certificates, private keys, and all group information associated with a specified peer identity.

Syntax

NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerIdentityDelete(
  [in] PCWSTR pwzIdentity
);

Parameters

[in] pwzIdentity

Specifies a peer identity to delete.

Return value

If the function call succeeds, the return value is S_OK. Otherwise, it returns one of the following values.

Return code Description
E_INVALIDARG
The parameter is not valid.
PEER_E_GROUPS_EXIST
The peer identity cannot be deleted because it has peer groups associated with it. All peer groups associated with the specified identity must be deleted by using PeerGroupDelete before a call to PeerIdentityDelete can succeed.
PEER_E_NOT_FOUND
A peer identity that matches the specified name cannot be found.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack for Windows XP
Minimum supported server None supported
Target Platform Windows
Header p2p.h
Library P2P.lib
DLL P2P.dll