Skip to content

Latest commit

 

History

History
141 lines (110 loc) · 3.83 KB

nf-p2p-peergroupdeleterecord.md

File metadata and controls

141 lines (110 loc) · 3.83 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.PeerGroupDeleteRecord
PeerGroupDeleteRecord function (p2p.h)
The PeerGroupDeleteRecord function deletes a record from a peer group. The creator, as well as any other member in an administrative role may delete a specific record.
PeerGroupDeleteRecord
PeerGroupDeleteRecord function [Peer Networking]
p2p.peergroupdeleterecord
p2p/PeerGroupDeleteRecord
p2p\peergroupdeleterecord.htm
p2p
e80fbf7f-2193-4a45-8a7f-46707ae4acfe
12/05/2018
PeerGroupDeleteRecord, PeerGroupDeleteRecord function [Peer Networking], p2p.peergroupdeleterecord, p2p/PeerGroupDeleteRecord
p2p.h
Windows
Windows XP with SP2 [desktop apps only],Windows XP with SP1 with the Advanced Networking Pack forWindows XP
None supported
P2P.lib
P2P.dll
Windows
19H1
PeerGroupDeleteRecord
p2p/PeerGroupDeleteRecord
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerGroupDeleteRecord

PeerGroupDeleteRecord function

-description

The PeerGroupDeleteRecord function deletes a record from a peer group. The creator, as well as any other member in an administrative role may delete a specific record.

-parameters

-param hGroup [in]

Handle to the peer group that contains the record. This handle is returned by the PeerGroupCreate, PeerGroupOpen, or PeerGroupJoin function. This parameter is required.

-param pRecordId [in]

Specifies the GUID value that uniquely identifies the record to be deleted. This parameter is required.

-returns

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

Return code Description
PEER_E_GROUP_NOT_READY
The peer group is not in a state where records can be deleted. For example, PeerGroupJoin is called, but synchronization with the peer group database has not completed.
PEER_E_INVALID_GROUP
The handle to the peer group is invalid.
PEER_E_NOT_AUTHORIZED
The current identity does not have the authorization to delete the record. In this case, the identity is not the creator or a member in an administrative role may delete a specific record.
PEER_E_RECORD_NOT_FOUND
The record cannot be located in the data store.
 

Cryptography-specific errors can be returned from the Microsoft RSA Base Provider. These errors are prefixed with CRYPT_* and defined in Winerror.h.

-see-also

PeerGroupAddRecord

PeerGroupCreate

PeerGroupJoin

PeerGroupOpen

PeerGroupUpdateRecord