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.

349 lines
5.7 KiB

  1. #include "dspch.h"
  2. #pragma hdrstop
  3. #define DNS_STATUS LONG
  4. #define PIP4_ARRAY PVOID
  5. #define PDNS_RECORD PVOID
  6. #define PDNS_DEBUG_INFO PVOID
  7. #define DNS_CHARSET DWORD
  8. #define DNS_FREE_TYPE DWORD
  9. #define DNS_NAME_FORMAT DWORD
  10. #define DNS_CONFIG_TYPE DWORD
  11. //
  12. // SDK public
  13. //
  14. static
  15. BOOL
  16. WINAPI
  17. DnsFlushResolverCache(
  18. VOID
  19. )
  20. {
  21. return FALSE;
  22. }
  23. static
  24. VOID
  25. WINAPI
  26. DnsFree(
  27. IN OUT PVOID pData,
  28. IN DNS_FREE_TYPE FreeType
  29. )
  30. {
  31. return;
  32. }
  33. static
  34. BOOL
  35. WINAPI
  36. DnsNameCompare_A(
  37. IN LPSTR pName1,
  38. IN LPSTR pName2
  39. )
  40. {
  41. return FALSE;
  42. }
  43. static
  44. BOOL
  45. WINAPI
  46. DnsNameCompare_UTF8(
  47. IN LPSTR pName1,
  48. IN LPSTR pName2
  49. )
  50. {
  51. return FALSE;
  52. }
  53. static
  54. BOOL
  55. WINAPI
  56. DnsNameCompare_W(
  57. IN LPWSTR pName1,
  58. IN LPWSTR pName2
  59. )
  60. {
  61. return FALSE;
  62. }
  63. static
  64. DNS_STATUS
  65. WINAPI
  66. DnsQuery_A(
  67. IN LPSTR pszName,
  68. IN WORD wType,
  69. IN DWORD Options,
  70. IN PIP4_ARRAY aipServers OPTIONAL,
  71. IN OUT PDNS_RECORD * ppQueryResults OPTIONAL,
  72. IN OUT PVOID * pReserved OPTIONAL
  73. )
  74. {
  75. return ERROR_PROC_NOT_FOUND;
  76. }
  77. static
  78. DNS_STATUS
  79. WINAPI
  80. DnsQuery_UTF8(
  81. IN LPSTR pszName,
  82. IN WORD wType,
  83. IN DWORD Options,
  84. IN PIP4_ARRAY aipServers OPTIONAL,
  85. IN OUT PDNS_RECORD * ppQueryResults OPTIONAL,
  86. IN OUT PVOID * pReserved OPTIONAL
  87. )
  88. {
  89. return ERROR_PROC_NOT_FOUND;
  90. }
  91. static
  92. DNS_STATUS
  93. WINAPI
  94. DnsQuery_W(
  95. IN LPWSTR pszName,
  96. IN WORD wType,
  97. IN DWORD Options,
  98. IN PIP4_ARRAY aipServers OPTIONAL,
  99. IN OUT PDNS_RECORD * ppQueryResults OPTIONAL,
  100. IN OUT PVOID * pReserved OPTIONAL
  101. )
  102. {
  103. return ERROR_PROC_NOT_FOUND;
  104. }
  105. BOOL
  106. WINAPI
  107. DnsRecordCompare(
  108. IN PDNS_RECORD pRecord1,
  109. IN PDNS_RECORD pRecord2
  110. )
  111. {
  112. return FALSE;
  113. }
  114. BOOL
  115. WINAPI
  116. DnsRecordSetCompare(
  117. IN OUT PDNS_RECORD pRR1,
  118. IN OUT PDNS_RECORD pRR2,
  119. OUT PDNS_RECORD * ppDiff1,
  120. OUT PDNS_RECORD * ppDiff2
  121. )
  122. {
  123. return FALSE;
  124. }
  125. PDNS_RECORD
  126. WINAPI
  127. DnsRecordCopyEx(
  128. IN PDNS_RECORD pRecord,
  129. IN DNS_CHARSET CharSetIn,
  130. IN DNS_CHARSET CharSetOut
  131. )
  132. {
  133. return NULL;
  134. }
  135. PDNS_RECORD
  136. WINAPI
  137. DnsRecordSetCopyEx(
  138. IN PDNS_RECORD pRecordSet,
  139. IN DNS_CHARSET CharSetIn,
  140. IN DNS_CHARSET CharSetOut
  141. )
  142. {
  143. return NULL;
  144. }
  145. static
  146. VOID
  147. WINAPI
  148. DnsRecordListFree(
  149. IN OUT PDNS_RECORD pRecordList,
  150. IN DNS_FREE_TYPE FreeType
  151. )
  152. {
  153. return;
  154. }
  155. PDNS_RECORD
  156. DnsRecordSetDetach(
  157. IN OUT PDNS_RECORD pRecordList
  158. )
  159. {
  160. return NULL;
  161. }
  162. static
  163. DNS_STATUS
  164. DnsValidateName_A(
  165. IN LPCSTR pszName,
  166. IN DNS_NAME_FORMAT Format
  167. )
  168. {
  169. return ERROR_PROC_NOT_FOUND;
  170. }
  171. static
  172. DNS_STATUS
  173. DnsValidateName_UTF8(
  174. IN LPCSTR pszName,
  175. IN DNS_NAME_FORMAT Format
  176. )
  177. {
  178. return ERROR_PROC_NOT_FOUND;
  179. }
  180. static
  181. DNS_STATUS
  182. DnsValidateName_W(
  183. IN LPCWSTR pwszName,
  184. IN DNS_NAME_FORMAT Format
  185. )
  186. {
  187. return ERROR_PROC_NOT_FOUND;
  188. }
  189. DNS_STATUS
  190. WINAPI
  191. DnsQueryConfig(
  192. IN DNS_CONFIG_TYPE Config,
  193. IN DWORD Flag,
  194. IN PWSTR pwsAdapterName,
  195. IN PVOID pReserved,
  196. OUT PVOID pBuffer,
  197. IN OUT PDWORD pBufferLength
  198. )
  199. {
  200. return ERROR_PROC_NOT_FOUND;
  201. }
  202. //
  203. // Private config
  204. //
  205. PVOID
  206. WINAPI
  207. DnsQueryConfigAllocEx(
  208. IN DNS_CONFIG_TYPE Config,
  209. IN PWSTR pwsAdapterName,
  210. IN BOOL fLocalAlloc
  211. )
  212. {
  213. return NULL;
  214. }
  215. VOID
  216. WINAPI
  217. DnsFreeConfigStructure(
  218. IN OUT PVOID pData,
  219. IN DNS_CONFIG_TYPE ConfigId
  220. )
  221. {
  222. return;
  223. }
  224. DWORD
  225. WINAPI
  226. DnsQueryConfigDword(
  227. IN DNS_CONFIG_TYPE Config,
  228. IN PWSTR pwsAdapterName
  229. )
  230. {
  231. return 0;
  232. }
  233. DNS_STATUS
  234. WINAPI
  235. DnsSetConfigDword(
  236. IN DNS_CONFIG_TYPE Config,
  237. IN PWSTR pwsAdapterName,
  238. IN DWORD NewValue
  239. )
  240. {
  241. return ERROR_PROC_NOT_FOUND;
  242. }
  243. //
  244. // Private stuff
  245. //
  246. PVOID
  247. DnsApiAlloc(
  248. IN INT iSize
  249. )
  250. {
  251. return NULL;
  252. }
  253. PVOID
  254. DnsApiRealloc(
  255. IN OUT PVOID pMem,
  256. IN INT iSize
  257. )
  258. {
  259. return NULL;
  260. }
  261. VOID
  262. DnsApiFree(
  263. IN OUT PVOID pMem
  264. )
  265. {
  266. return;
  267. }
  268. PDNS_DEBUG_INFO
  269. DnsApiSetDebugGlobals(
  270. IN OUT PDNS_DEBUG_INFO pInfo
  271. )
  272. {
  273. return NULL;
  274. }
  275. //
  276. // !! WARNING !! The entries below must be in alphabetical order, and are
  277. // CASE SENSITIVE (eg lower case comes last!)
  278. //
  279. DEFINE_PROCNAME_ENTRIES(dnsapi)
  280. {
  281. DLPENTRY(DnsApiAlloc)
  282. DLPENTRY(DnsApiFree)
  283. DLPENTRY(DnsApiRealloc)
  284. DLPENTRY(DnsApiSetDebugGlobals)
  285. DLPENTRY(DnsFlushResolverCache)
  286. DLPENTRY(DnsFree)
  287. DLPENTRY(DnsFreeConfigStructure)
  288. DLPENTRY(DnsNameCompare_A)
  289. DLPENTRY(DnsNameCompare_UTF8)
  290. DLPENTRY(DnsNameCompare_W)
  291. DLPENTRY(DnsQueryConfig)
  292. DLPENTRY(DnsQueryConfigAllocEx)
  293. DLPENTRY(DnsQueryConfigDword)
  294. DLPENTRY(DnsQuery_A)
  295. DLPENTRY(DnsQuery_UTF8)
  296. DLPENTRY(DnsQuery_W)
  297. DLPENTRY(DnsRecordCompare)
  298. DLPENTRY(DnsRecordCopyEx)
  299. DLPENTRY(DnsRecordListFree)
  300. DLPENTRY(DnsRecordSetCompare)
  301. DLPENTRY(DnsRecordSetCopyEx)
  302. DLPENTRY(DnsRecordSetDetach)
  303. DLPENTRY(DnsSetConfigDword)
  304. DLPENTRY(DnsValidateName_A)
  305. DLPENTRY(DnsValidateName_UTF8)
  306. DLPENTRY(DnsValidateName_W)
  307. };
  308. DEFINE_PROCNAME_MAP(dnsapi)