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 static HINSTANCE hdnsapi;
35 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
37 TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
41 case DLL_WINE_PREATTACH:
42 return FALSE; /* prefer native version */
43 case DLL_PROCESS_ATTACH:
45 DisableThreadLibraryCalls( hinst );
47 case DLL_PROCESS_DETACH:
53 /******************************************************************************
54 * DnsAcquireContextHandle_A [DNSAPI.@]
57 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
60 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
62 *context = (HANDLE)0xdeadbeef;
66 /******************************************************************************
67 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
70 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
73 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
75 *context = (HANDLE)0xdeadbeef;
79 /******************************************************************************
80 * DnsAcquireContextHandle_W [DNSAPI.@]
83 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
86 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
88 *context = (HANDLE)0xdeadbeef;
92 /******************************************************************************
93 * DnsReleaseContextHandle [DNSAPI.@]
96 void WINAPI DnsReleaseContextHandle( HANDLE context )
98 FIXME( "(%p) stub\n", context );
101 /******************************************************************************
102 * DnsExtractRecordsFromMessage_UTF8 [DNSAPI.@]
105 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
106 WORD len, PDNS_RECORDA *record )
108 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
111 return ERROR_SUCCESS;
114 /******************************************************************************
115 * DnsExtractRecordsFromMessage_W [DNSAPI.@]
118 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
119 WORD len, PDNS_RECORDW *record )
121 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
124 return ERROR_SUCCESS;
127 /******************************************************************************
128 * DnsModifyRecordsInSet_A [DNSAPI.@]
131 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
132 DWORD options, HANDLE context,
133 PIP4_ARRAY servers, PVOID reserved )
135 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
136 context, servers, reserved );
137 return ERROR_SUCCESS;
140 /******************************************************************************
141 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
144 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
145 DWORD options, HANDLE context,
146 PIP4_ARRAY servers, PVOID reserved )
148 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
149 context, servers, reserved );
150 return ERROR_SUCCESS;
153 /******************************************************************************
154 * DnsModifyRecordsInSet_W [DNSAPI.@]
157 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
158 DWORD options, HANDLE context,
159 PIP4_ARRAY servers, PVOID reserved )
161 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
162 context, servers, reserved );
163 return ERROR_SUCCESS;
166 /******************************************************************************
167 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
170 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, LPDWORD size,
171 LPSTR name, WORD type, WORD xid,
174 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
175 type, xid, recurse );
179 /******************************************************************************
180 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
183 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, LPDWORD size,
184 LPWSTR name, WORD type, WORD xid,
187 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
188 type, xid, recurse );
192 /******************************************************************************
193 * DnsReplaceRecordSetA [DNSAPI.@]
196 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
197 HANDLE context, PIP4_ARRAY servers,
200 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
202 return ERROR_SUCCESS;
205 /******************************************************************************
206 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
209 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
210 HANDLE context, PIP4_ARRAY servers,
213 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
215 return ERROR_SUCCESS;
218 /******************************************************************************
219 * DnsReplaceRecordSetW [DNSAPI.@]
222 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
223 HANDLE context, PIP4_ARRAY servers,
226 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
228 return ERROR_SUCCESS;