Share via


PNRPINFO (Windows CE 5.0)

Send Feedback

This structure contains PNRP information. It is pointed to by the lpBlob member of the WSAQUERYSET (Windows Sockets) structure.

typedef struct _PNRPINFO {  DWORD dwSize;  LPWSTR lpwszIdentity;  DWORD nMaxResolve;  DWORD dwTimeout;  DWORD dwLifetime;  PNRP_RESOLVE_CRITERIA enResolveCriteria;  DWORD dwFlags;  SOCKET_ADDRESS saHint;  PNRP_REGISTERED_ID_STATE enNameState;} PNRPINFO, *PPNRPINFO;

Members

  • dwSize
    Specifies the size of this structure.
  • lpwszIdentity
    Points to the Unicode string that contains the identity.
  • nMaxResolve
    Specifies the requested number of resolutions. Maximum number is 64. If more results are requested by setting this member to a number greater than 64, then nMaxResolve is implicitly set to 64 and the call to the function, such as WSALookupServiceBegin (Windows Sockets) that uses this structure, succeeds.
  • dwTimeout
    Specifies the time, in seconds, to wait for a response.
  • dwLifetime
    Specifies the number of seconds between refresh operations. Must be 86400 (24 * 60 * 60 seconds).
  • enResolveCriteria
    Specifies the criteria used to resolve matches. PNRP can attempt to find the first matching name, or attempt to find a name that is numerically close to the service location. Valid values are specified by PNRP_RESOLVE_CRITERIA.
  • dwFlags
    Specifies the flags to use for the resolve operation. Set this flag to PNRPINFO_HINT to indicate that the saHint member is used. The hint influences how the service location portion of the PNRP ID is generated. It also influences how names are resolved, and specifies how to select between multiple peer names.
  • saHint
    Specifies the IPv6 address to use for the location. The dwFlags member must be PNRPINFO_HINT.
  • enNameState
    Specifies the state of the registered ID. This value is reserved and must be set to zero (0).

Requirements

OS Versions: Windows CE 5.0 and later.
Header: pnrpns.h.
Link Library: p2p.lib.

See Also

PNRP Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.