Source code of Windows XP (NT5)
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.

79 lines
1.3 KiB

  1. #include "pch.h"
  2. #pragma hdrstop
  3. #define DNS_STATUS LONG
  4. #define PIP4_ARRAY PVOID
  5. #define PDNS_RECORD PVOID
  6. #define DNS_FREE_TYPE DWORD
  7. #define DNS_NAME_FORMAT DWORD
  8. static
  9. BOOL
  10. WINAPI
  11. DnsNameCompare_UTF8(
  12. IN LPSTR pName1,
  13. IN LPSTR pName2
  14. )
  15. {
  16. return FALSE;
  17. }
  18. static
  19. BOOL
  20. WINAPI
  21. DnsNameCompare_W(
  22. IN LPWSTR pName1,
  23. IN LPWSTR pName2
  24. )
  25. {
  26. return FALSE;
  27. }
  28. static
  29. DNS_STATUS
  30. WINAPI
  31. DnsQuery_UTF8(
  32. IN LPSTR pszName,
  33. IN WORD wType,
  34. IN DWORD Options,
  35. IN PIP4_ARRAY aipServers OPTIONAL,
  36. IN OUT PDNS_RECORD * ppQueryResults OPTIONAL,
  37. IN OUT PVOID * pReserved OPTIONAL
  38. )
  39. {
  40. return ERROR_PROC_NOT_FOUND;
  41. }
  42. static
  43. VOID
  44. WINAPI
  45. DnsRecordListFree(
  46. IN OUT PDNS_RECORD pRecordList,
  47. IN DNS_FREE_TYPE FreeType
  48. )
  49. {
  50. return;
  51. }
  52. static
  53. DNS_STATUS
  54. DnsValidateName_W(
  55. IN LPCWSTR pwszName,
  56. IN DNS_NAME_FORMAT Format
  57. )
  58. {
  59. return ERROR_PROC_NOT_FOUND;
  60. }
  61. DEFINE_PROCNAME_ENTRIES(dnsapi)
  62. {
  63. DLPENTRY(DnsNameCompare_UTF8)
  64. DLPENTRY(DnsNameCompare_W)
  65. DLPENTRY(DnsQuery_UTF8)
  66. DLPENTRY(DnsRecordListFree)
  67. DLPENTRY(DnsValidateName_W)
  68. };
  69. DEFINE_PROCNAME_MAP(dnsapi)