PeerPnrpStartup function (p2p.h)
The PeerPnrpStartup function starts the Peer Name Resolution Protocol (PNRP) service for the calling peer.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerPnrpStartup(
WORD wVersionRequested
);
Parameters
wVersionRequested
The version of PNRP to use for this service instance. The default value is PNRP_VERSION (2).
Return value
If the function call succeeds, the return value is S_OK. Otherwise, it returns one of the following values.
Return code | Description |
---|---|
|
One of the parameters is not valid. |
|
There is not enough memory to perform the specified operation. |
|
The provided version is unsupported. |
|
The Peer Collaboration infrastructure, which includes People Near Me, is not available. This code will also be returned whenever an attempt is made to utilize the Collaboration infrastructure from an elevated process. |
Remarks
To shutdown the PNRP service for the calling peer and release all resources associated with it, call PeerPnrpShutdown.
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 | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | p2p.h |
Library | P2P.lib |
DLL | P2P.dll |