Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The PeerIdentityGetDefault function retrieves the default peer name set for the current user.
Syntax
NOT_BUILD_WINDOWS_DEPRECATE HRESULT PeerIdentityGetDefault(
[out] PWSTR *ppwzPeerName
);
Parameters
[out] ppwzPeerName
Pointer to the address of a zero-terminated Unicode string that contains the default name of the current user.
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. |
|
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 |