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
31 #include "wine/debug.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(dnsapi
);
35 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
37 TRACE( "(%p, %lu, %p)\n", hinst
, reason
, reserved
);
41 case DLL_PROCESS_ATTACH
:
42 DisableThreadLibraryCalls( hinst
);
43 if (__wine_init_unix_call())
44 ERR( "No libresolv support, expect problems\n" );
46 case DLL_PROCESS_DETACH
:
52 /******************************************************************************
53 * DnsAcquireContextHandle_A [DNSAPI.@]
56 DNS_STATUS WINAPI
DnsAcquireContextHandle_A( DWORD flags
, void *cred
, HANDLE
*context
)
58 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
60 *context
= (HANDLE
)0xdeadbeef;
64 /******************************************************************************
65 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
68 DNS_STATUS WINAPI
DnsAcquireContextHandle_UTF8( DWORD flags
, void *cred
, HANDLE
*context
)
70 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
72 *context
= (HANDLE
)0xdeadbeef;
76 /******************************************************************************
77 * DnsAcquireContextHandle_W [DNSAPI.@]
80 DNS_STATUS WINAPI
DnsAcquireContextHandle_W( DWORD flags
, void *cred
, HANDLE
*context
)
82 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
84 *context
= (HANDLE
)0xdeadbeef;
88 /******************************************************************************
89 * DnsFlushResolverCache [DNSAPI.@]
92 VOID WINAPI
DnsFlushResolverCache(void)
97 /******************************************************************************
98 * DnsFlushResolverCacheEntry_A [DNSAPI.@]
101 BOOL WINAPI
DnsFlushResolverCacheEntry_A( PCSTR entry
)
103 FIXME( "%s: stub\n", debugstr_a(entry
) );
104 if (!entry
) return FALSE
;
108 /******************************************************************************
109 * DnsFlushResolverCacheEntry_UTF8 [DNSAPI.@]
112 BOOL WINAPI
DnsFlushResolverCacheEntry_UTF8( PCSTR entry
)
114 FIXME( "%s: stub\n", debugstr_a(entry
) );
115 if (!entry
) return FALSE
;
119 /******************************************************************************
120 * DnsFlushResolverCacheEntry_W [DNSAPI.@]
123 BOOL WINAPI
DnsFlushResolverCacheEntry_W( PCWSTR entry
)
125 FIXME( "%s: stub\n", debugstr_w(entry
) );
126 if (!entry
) return FALSE
;
130 /******************************************************************************
131 * DnsGetCacheDataTable [DNSAPI.@]
134 BOOL WINAPI
DnsGetCacheDataTable( PDNS_CACHE_ENTRY
* entry
)
136 FIXME( "(%p) stub\n", entry
);
140 /******************************************************************************
141 * DnsReleaseContextHandle [DNSAPI.@]
144 VOID WINAPI
DnsReleaseContextHandle( HANDLE context
)
146 FIXME( "(%p) stub\n", context
);
149 /******************************************************************************
150 * DnsModifyRecordsInSet_A [DNSAPI.@]
153 DNS_STATUS WINAPI
DnsModifyRecordsInSet_A( DNS_RECORDA
*add
, DNS_RECORDA
*delete, DWORD options
, HANDLE context
,
154 void *servers
, void *reserved
)
156 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
157 return ERROR_SUCCESS
;
160 /******************************************************************************
161 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
164 DNS_STATUS WINAPI
DnsModifyRecordsInSet_UTF8( DNS_RECORDA
*add
, DNS_RECORDA
*delete, DWORD options
, HANDLE context
,
165 void *servers
, void *reserved
)
167 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
168 return ERROR_SUCCESS
;
171 /******************************************************************************
172 * DnsModifyRecordsInSet_W [DNSAPI.@]
175 DNS_STATUS WINAPI
DnsModifyRecordsInSet_W( DNS_RECORDW
*add
, DNS_RECORDW
*delete, DWORD options
, HANDLE context
,
176 void *servers
, void *reserved
)
178 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
179 return ERROR_SUCCESS
;
182 /******************************************************************************
183 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
186 BOOL WINAPI
DnsWriteQuestionToBuffer_UTF8( DNS_MESSAGE_BUFFER
*buffer
, DWORD
*size
, const char *name
, WORD type
,
187 WORD xid
, BOOL recurse
)
189 FIXME( "(%p, %p, %s, %d, %d, %d) stub\n", buffer
, size
, debugstr_a(name
), type
, xid
, recurse
);
193 /******************************************************************************
194 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
197 BOOL WINAPI
DnsWriteQuestionToBuffer_W( DNS_MESSAGE_BUFFER
*buffer
, DWORD
*size
, const WCHAR
*name
, WORD type
,
198 WORD xid
, BOOL recurse
)
200 FIXME( "(%p, %p, %s, %d, %d, %d) stub\n", buffer
, size
, debugstr_w(name
), type
, xid
, recurse
);
204 /******************************************************************************
205 * DnsReplaceRecordSetA [DNSAPI.@]
208 DNS_STATUS WINAPI
DnsReplaceRecordSetA( DNS_RECORDA
*set
, DWORD options
, HANDLE context
, void *servers
,
211 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
212 return ERROR_SUCCESS
;
215 /******************************************************************************
216 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
219 DNS_STATUS WINAPI
DnsReplaceRecordSetUTF8( DNS_RECORDA
*set
, DWORD options
, HANDLE context
, void *servers
,
222 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
223 return ERROR_SUCCESS
;
226 /******************************************************************************
227 * DnsReplaceRecordSetW [DNSAPI.@]
230 DNS_STATUS WINAPI
DnsReplaceRecordSetW( DNS_RECORDW
*set
, DWORD options
, HANDLE context
, void *servers
,
233 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
234 return ERROR_SUCCESS
;