Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.4 KiB

  1. #ifndef _DNSINCS_H_
  2. #define _DNSINCS_H_
  3. #define INCL_INETSRV_INCS
  4. #include <atq.h>
  5. #include <dbgtrace.h>
  6. #include <dns.h>
  7. #include <dnsapi.h>
  8. #include <time.h>
  9. #include <rwnew.h>
  10. #include <cpool.h>
  11. #include <address.hxx>
  12. #include "cdns.h"
  13. // Definitions of functions/macros used in DNS library
  14. #ifndef ARRAY_SIZE
  15. #define ARRAY_SIZE(x) (sizeof(x)/sizeof(*x))
  16. #endif
  17. DWORD ResolveHost(
  18. LPSTR pszHost,
  19. PIP_ARRAY pipDnsServers,
  20. DWORD fOptions,
  21. DWORD *rgdwIpAddresses,
  22. DWORD *pcIpAddresses);
  23. DWORD GetHostByNameEx(
  24. LPSTR pszHost,
  25. PIP_ARRAY pipDnsServers,
  26. DWORD fOptions,
  27. DWORD *rgdwIpAddresses,
  28. DWORD *pcIpAddresses);
  29. DWORD ProcessCNAMEChain(
  30. PDNS_RECORD pDnsRecordList,
  31. LPSTR pszHost,
  32. LPSTR *ppszChainTail,
  33. DWORD *pdwIpAddresses,
  34. ULONG *pcIpAddresses);
  35. DWORD GetCNAMEChainTail(
  36. PDNS_RECORD *rgCNAMERecord,
  37. ULONG cCNAMERecord,
  38. LPSTR pszHost,
  39. LPSTR *ppszChainTail);
  40. void FindARecord(
  41. LPSTR pszHost,
  42. PDNS_RECORD pDnsRecordList,
  43. DWORD *rgdwIpAddresses,
  44. ULONG *pcIpAddresses);
  45. DWORD MyDnsQuery(
  46. LPSTR pszHost,
  47. WORD wType,
  48. DWORD fOptions,
  49. PIP_ARRAY pipDnsServers,
  50. PDNS_RECORD *ppDnsRecordList);
  51. int MyDnsNameCompare(
  52. LPSTR pszHost,
  53. LPSTR pszFqdn);
  54. #define MAX_CNAME_RECORDS 5
  55. #endif // _DNSINCS_H_