Share via


DNS_SRV_DATA

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure represents a DNS service (SRV) record.

Syntax

typedef struct {
  LPTSTR pNameTarget;
  WORD wPriority;
  WORD wWeight;
  WORD wPort;
  WORD Pad;
} DNS_SRV_DATA, *PDNS_SRV_DATA;

Members

  • pNameTarget
    [in] Pointer to a string representing the target host.
  • wPriority
    [in] Priority of the target host specified in the owner name. Lower numbers imply higher priority.
  • wWeight
    [in] Weight of the target host. Useful when selecting among hosts with the same priority. The chances of using this host should be proportional to its weight.
  • wPort
    [in] Port used on the terget host for the service.
  • Pad
    [in] Reserved. Used to keep pointers DWORD aligned.

Remarks

This structure is used in conjunction with the DNS_RECORD structure to programmatically manage DNS entries.

Requirements

Header windns.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

DNS Structures