Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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_RECORDstructure 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