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 mail exchanger (MX) record.

Syntax

typedef struct {
  LPTSTR 
pNameExchange;
  WORD 
wPreference;
  WORD 
Pad;
} DNS_MX_DATA, *PDNS_MX_DATA;

Members

pNameExchange

[in] Pointer to a string representing the fully qualified domain name (FQDN) of the host willing to act as a mail exchange.

wPreference

[in] Preference given to this resource record among others at the same owner. Lower values are preferred.

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