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
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(dnsapi
);
34 const struct resolv_funcs
*resolv_funcs
= NULL
;
36 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
38 TRACE( "(%p,%u,%p)\n", hinst
, reason
, reserved
);
42 case DLL_PROCESS_ATTACH
:
43 DisableThreadLibraryCalls( hinst
);
44 if (__wine_init_unix_lib( hinst
, reason
, NULL
, &resolv_funcs
))
45 ERR( "No libresolv support, expect problems\n" );
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 * DnsFlushResolverCache [DNSAPI.@]
96 VOID WINAPI
DnsFlushResolverCache(void)
101 /******************************************************************************
102 * DnsFlushResolverCacheEntry_A [DNSAPI.@]
105 BOOL WINAPI
DnsFlushResolverCacheEntry_A( PCSTR entry
)
107 FIXME( "%s: stub\n", debugstr_a(entry
) );
108 if (!entry
) return FALSE
;
112 /******************************************************************************
113 * DnsFlushResolverCacheEntry_UTF8 [DNSAPI.@]
116 BOOL WINAPI
DnsFlushResolverCacheEntry_UTF8( PCSTR entry
)
118 FIXME( "%s: stub\n", debugstr_a(entry
) );
119 if (!entry
) return FALSE
;
123 /******************************************************************************
124 * DnsFlushResolverCacheEntry_W [DNSAPI.@]
127 BOOL WINAPI
DnsFlushResolverCacheEntry_W( PCWSTR entry
)
129 FIXME( "%s: stub\n", debugstr_w(entry
) );
130 if (!entry
) return FALSE
;
134 /******************************************************************************
135 * DnsGetCacheDataTable [DNSAPI.@]
138 BOOL WINAPI
DnsGetCacheDataTable( PDNS_CACHE_ENTRY
* entry
)
140 FIXME( "(%p) stub\n", entry
);
144 /******************************************************************************
145 * DnsReleaseContextHandle [DNSAPI.@]
148 VOID WINAPI
DnsReleaseContextHandle( HANDLE context
)
150 FIXME( "(%p) stub\n", context
);
153 /******************************************************************************
154 * DnsExtractRecordsFromMessage_UTF8 [DNSAPI.@]
157 DNS_STATUS WINAPI
DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer
,
158 WORD len
, PDNS_RECORDA
*record
)
160 FIXME( "(%p,%d,%p) stub\n", buffer
, len
, record
);
163 return ERROR_SUCCESS
;
166 /******************************************************************************
167 * DnsExtractRecordsFromMessage_W [DNSAPI.@]
170 DNS_STATUS WINAPI
DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer
,
171 WORD len
, PDNS_RECORDW
*record
)
173 FIXME( "(%p,%d,%p) stub\n", buffer
, len
, record
);
176 return ERROR_SUCCESS
;
179 /******************************************************************************
180 * DnsModifyRecordsInSet_A [DNSAPI.@]
183 DNS_STATUS WINAPI
DnsModifyRecordsInSet_A( PDNS_RECORDA add
, PDNS_RECORDA
delete,
184 DWORD options
, HANDLE context
,
185 PVOID servers
, PVOID reserved
)
187 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add
, delete, options
,
188 context
, servers
, reserved
);
189 return ERROR_SUCCESS
;
192 /******************************************************************************
193 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
196 DNS_STATUS WINAPI
DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add
, PDNS_RECORDA
delete,
197 DWORD options
, HANDLE context
,
198 PVOID servers
, PVOID reserved
)
200 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add
, delete, options
,
201 context
, servers
, reserved
);
202 return ERROR_SUCCESS
;
205 /******************************************************************************
206 * DnsModifyRecordsInSet_W [DNSAPI.@]
209 DNS_STATUS WINAPI
DnsModifyRecordsInSet_W( PDNS_RECORDW add
, PDNS_RECORDW
delete,
210 DWORD options
, HANDLE context
,
211 PVOID servers
, PVOID reserved
)
213 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add
, delete, options
,
214 context
, servers
, reserved
);
215 return ERROR_SUCCESS
;
218 /******************************************************************************
219 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
222 BOOL WINAPI
DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer
, PDWORD size
,
223 PCSTR name
, WORD type
, WORD xid
,
226 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer
, size
, debugstr_a(name
),
227 type
, xid
, recurse
);
231 /******************************************************************************
232 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
235 BOOL WINAPI
DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer
, PDWORD size
,
236 PCWSTR name
, WORD type
, WORD xid
,
239 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer
, size
, debugstr_w(name
),
240 type
, xid
, recurse
);
244 /******************************************************************************
245 * DnsReplaceRecordSetA [DNSAPI.@]
248 DNS_STATUS WINAPI
DnsReplaceRecordSetA( PDNS_RECORDA set
, DWORD options
,
249 HANDLE context
, PVOID servers
,
252 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
254 return ERROR_SUCCESS
;
257 /******************************************************************************
258 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
261 DNS_STATUS WINAPI
DnsReplaceRecordSetUTF8( PDNS_RECORDA set
, DWORD options
,
262 HANDLE context
, PVOID servers
,
265 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
267 return ERROR_SUCCESS
;
270 /******************************************************************************
271 * DnsReplaceRecordSetW [DNSAPI.@]
274 DNS_STATUS WINAPI
DnsReplaceRecordSetW( PDNS_RECORDW set
, DWORD options
,
275 HANDLE context
, PVOID servers
,
278 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
280 return ERROR_SUCCESS
;