4 * Copyright (C) 2006 Matthew Kehrer
5 * Copyright (C) 2006 Hans Leidekker
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(dnsapi);
33 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
35 TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
39 case DLL_WINE_PREATTACH:
40 return FALSE; /* prefer native version */
41 case DLL_PROCESS_ATTACH:
42 DisableThreadLibraryCalls( hinst );
44 case DLL_PROCESS_DETACH:
50 /******************************************************************************
51 * DnsAcquireContextHandle_A [DNSAPI.@]
54 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
57 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
59 *context = (HANDLE)0xdeadbeef;
63 /******************************************************************************
64 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
67 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
70 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
72 *context = (HANDLE)0xdeadbeef;
76 /******************************************************************************
77 * DnsAcquireContextHandle_W [DNSAPI.@]
80 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
83 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
85 *context = (HANDLE)0xdeadbeef;
89 /******************************************************************************
90 * DnsFlushResolverCache [DNSAPI.@]
93 VOID WINAPI DnsFlushResolverCache(void)
99 /******************************************************************************
100 * DnsReleaseContextHandle [DNSAPI.@]
103 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
105 FIXME( "(%p) stub\n", context );
108 /******************************************************************************
109 * DnsExtractRecordsFromMessage_UTF8 [DNSAPI.@]
112 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
113 WORD len, PDNS_RECORDA *record )
115 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
118 return ERROR_SUCCESS;
121 /******************************************************************************
122 * DnsExtractRecordsFromMessage_W [DNSAPI.@]
125 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
126 WORD len, PDNS_RECORDW *record )
128 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
131 return ERROR_SUCCESS;
134 /******************************************************************************
135 * DnsModifyRecordsInSet_A [DNSAPI.@]
138 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
139 DWORD options, HANDLE context,
140 PVOID servers, PVOID reserved )
142 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
143 context, servers, reserved );
144 return ERROR_SUCCESS;
147 /******************************************************************************
148 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
151 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
152 DWORD options, HANDLE context,
153 PVOID servers, PVOID reserved )
155 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
156 context, servers, reserved );
157 return ERROR_SUCCESS;
160 /******************************************************************************
161 * DnsModifyRecordsInSet_W [DNSAPI.@]
164 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
165 DWORD options, HANDLE context,
166 PVOID servers, PVOID reserved )
168 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
169 context, servers, reserved );
170 return ERROR_SUCCESS;
173 /******************************************************************************
174 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
177 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
178 PCSTR name, WORD type, WORD xid,
181 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
182 type, xid, recurse );
186 /******************************************************************************
187 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
190 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
191 PCWSTR name, WORD type, WORD xid,
194 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
195 type, xid, recurse );
199 /******************************************************************************
200 * DnsReplaceRecordSetA [DNSAPI.@]
203 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
204 HANDLE context, PVOID servers,
207 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
209 return ERROR_SUCCESS;
212 /******************************************************************************
213 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
216 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
217 HANDLE context, PVOID servers,
220 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
222 return ERROR_SUCCESS;
225 /******************************************************************************
226 * DnsReplaceRecordSetW [DNSAPI.@]
229 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
230 HANDLE context, PVOID servers,
233 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
235 return ERROR_SUCCESS;