PNRP_RESOLVE_CRITERIA enumeration (pnrpdef.h)

The PNRP_RESOLVE_CRITERIA enumeration specifies the criteria that PNRP uses to resolve searches.

Syntax

typedef enum _PNRP_RESOLVE_CRITERIA {
  PNRP_RESOLVE_CRITERIA_DEFAULT = 0,
  PNRP_RESOLVE_CRITERIA_REMOTE_PEER_NAME = 1,
  PNRP_RESOLVE_CRITERIA_NEAREST_REMOTE_PEER_NAME = 2,
  PNRP_RESOLVE_CRITERIA_NON_CURRENT_PROCESS_PEER_NAME = 3,
  PNRP_RESOLVE_CRITERIA_NEAREST_NON_CURRENT_PROCESS_PEER_NAME = 4,
  PNRP_RESOLVE_CRITERIA_ANY_PEER_NAME = 5,
  PNRP_RESOLVE_CRITERIA_NEAREST_PEER_NAME
} PNRP_RESOLVE_CRITERIA;

Constants

 
PNRP_RESOLVE_CRITERIA_DEFAULT
Value: 0
Use the PNRP_RESOLVE_CRITERIA_NON_CURRENT_PROCESS_PEER_NAME criteria. This is also the default behavior if PNRPINFO is not specified.
PNRP_RESOLVE_CRITERIA_REMOTE_PEER_NAME
Value: 1
Match a peer name. The resolve request excludes any peer name registered locally on this computer.
PNRP_RESOLVE_CRITERIA_NEAREST_REMOTE_PEER_NAME
Value: 2
Match a peer name by finding the name with a service location closest to the supplied hint, or if no hint is supplied, closest to the local IP address. The resolve request excludes any peer name registered locally on this computer.
PNRP_RESOLVE_CRITERIA_NON_CURRENT_PROCESS_PEER_NAME
Value: 3
Match a peer name. The matching peer name can be registered locally or remotely, but the resolve request excludes any peer name registered by the process making the resolve request.
PNRP_RESOLVE_CRITERIA_NEAREST_NON_CURRENT_PROCESS_PEER_NAME
Value: 4
Match a peer name by finding the name with a service location closest to the supplied hint, or if no hint is supplied, closest to the local IP address. The matching peer name can be registered locally or remotely, but the resolve request excludes any peer name registered by the process making the resolve request.
PNRP_RESOLVE_CRITERIA_ANY_PEER_NAME
Value: 5
Match a peer name. The matching peer name can be registered locally or remotely.
PNRP_RESOLVE_CRITERIA_NEAREST_PEER_NAME
Match a peer name by finding the name with a service location closest to the supplied hint, or if no hint is supplied, closest to the local IP address. The matching peer name can be registered locally or remotely.

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]
Header pnrpdef.h

See also

PNRPINFO

PNRP_and WSALookupServiceBegin