#include <windows.h>
#include <stdio.h>
#include <winerror.h>
#include <windns.h>
#include <winsock2.h>
#include <assert.h>
Go to the source code of this file.
◆ main()
Definition at line 8 of file dnsapi.c.
8 {
11
18 AddrResponse = QueryReply;
19 while( AddrResponse ) {
21 Addr =
ntohl( AddrResponse->Data.A.IpAddress );
22 printf(
"www.reactos.com == %d.%d.%d.%d\n",
23 (int)(Addr >> 24) & 0xff,
24 (int)(Addr >> 16) & 0xff,
25 (int)(Addr >> 8) & 0xff,
26 (int)Addr & 0xff );
27 }
28 AddrResponse = AddrResponse->pNext;
29 }
31
32 return 0;
33}
VOID WINAPI DnsRecordListFree(PDNS_RECORD list, DNS_FREE_TYPE type)
#define DNS_QUERY_STANDARD
#define DNS_ERROR_INVALID_NAME_CHAR
#define DNS_ERROR_INVALID_NAME