Skip to content

Latest commit

 

History

History
136 lines (104 loc) · 4.04 KB

nf-p2p-peergroupimportdatabase.md

File metadata and controls

136 lines (104 loc) · 4.04 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.PeerGroupImportDatabase
PeerGroupImportDatabase function (p2p.h)
The PeerGroupImportDatabase function imports a peer group database from a local file.
PeerGroupImportDatabase
PeerGroupImportDatabase function [Peer Networking]
p2p.peergroupimportdatabase
p2p/PeerGroupImportDatabase
p2p\peergroupimportdatabase.htm
p2p
507b2b51-07d1-4e8d-8ec6-6b7398eadcc0
12/05/2018
PeerGroupImportDatabase, PeerGroupImportDatabase function [Peer Networking], p2p.peergroupimportdatabase, p2p/PeerGroupImportDatabase
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
PeerGroupImportDatabase
p2p/PeerGroupImportDatabase
c++
APIRef
kbSyntax
DllExport
P2P.dll
PeerGroupImportDatabase

PeerGroupImportDatabase function

-description

The PeerGroupImportDatabase function imports a peer group database from a local file.

-parameters

-param hGroup [in]

Handle to a peer group whose database is imported from a local file. This handle is returned by the PeerGroupCreate, PeerGroupOpen, or PeerGroupJoin function. This parameter is required.

-param pwzFilePath [in]

Pointer to a Unicode string that contains the absolute file system path and file name where the data is stored, for example, "C:\backup\p2pdb.db". If the file does not exist at this location, an appropriate error from the file system is returned. This parameter is required.

-returns

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

Note  If an import fails due to a file system error, the appropriate file system error is returned.
 
Return code Description
E_INVALIDARG
One of the parameters is not valid.
PEER_E_GROUP_IN_USE
The operation cannot be completed because the peer group database is currently in use. For example, PeerGroupConnect has been called by a peer, but has not yet completed any database transactions.
PEER_E_INVALID_GROUP
The handle to the peer group is invalid.
 

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

-remarks

This function must be called before PeerGroupConnect, and after PeerGroupOpen or PeerGroupJoin.

-see-also

PeerGroupConnect

PeerGroupCreate

PeerGroupJoin

PeerGroupOpen

PerrGroupExportDatabase