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 unixlib_handle_t resolv_handle
= 0;
37 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID reserved
)
39 TRACE( "(%p, %lu, %p)\n", hinst
, reason
, reserved
);
43 case DLL_PROCESS_ATTACH
:
44 DisableThreadLibraryCalls( hinst
);
45 if (NtQueryVirtualMemory( GetCurrentProcess(), hinst
, MemoryWineUnixFuncs
,
46 &resolv_handle
, sizeof(resolv_handle
), NULL
))
47 ERR( "No libresolv support, expect problems\n" );
49 case DLL_PROCESS_DETACH
:
55 /******************************************************************************
56 * DnsAcquireContextHandle_A [DNSAPI.@]
59 DNS_STATUS WINAPI
DnsAcquireContextHandle_A( DWORD flags
, void *cred
, HANDLE
*context
)
61 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
63 *context
= (HANDLE
)0xdeadbeef;
67 /******************************************************************************
68 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
71 DNS_STATUS WINAPI
DnsAcquireContextHandle_UTF8( DWORD flags
, void *cred
, HANDLE
*context
)
73 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
75 *context
= (HANDLE
)0xdeadbeef;
79 /******************************************************************************
80 * DnsAcquireContextHandle_W [DNSAPI.@]
83 DNS_STATUS WINAPI
DnsAcquireContextHandle_W( DWORD flags
, void *cred
, HANDLE
*context
)
85 FIXME( "(%#lx, %p, %p) stub\n", flags
, cred
, context
);
87 *context
= (HANDLE
)0xdeadbeef;
91 /******************************************************************************
92 * DnsFlushResolverCache [DNSAPI.@]
95 VOID WINAPI
DnsFlushResolverCache(void)
100 /******************************************************************************
101 * DnsFlushResolverCacheEntry_A [DNSAPI.@]
104 BOOL WINAPI
DnsFlushResolverCacheEntry_A( PCSTR entry
)
106 FIXME( "%s: stub\n", debugstr_a(entry
) );
107 if (!entry
) return FALSE
;
111 /******************************************************************************
112 * DnsFlushResolverCacheEntry_UTF8 [DNSAPI.@]
115 BOOL WINAPI
DnsFlushResolverCacheEntry_UTF8( PCSTR entry
)
117 FIXME( "%s: stub\n", debugstr_a(entry
) );
118 if (!entry
) return FALSE
;
122 /******************************************************************************
123 * DnsFlushResolverCacheEntry_W [DNSAPI.@]
126 BOOL WINAPI
DnsFlushResolverCacheEntry_W( PCWSTR entry
)
128 FIXME( "%s: stub\n", debugstr_w(entry
) );
129 if (!entry
) return FALSE
;
133 /******************************************************************************
134 * DnsGetCacheDataTable [DNSAPI.@]
137 BOOL WINAPI
DnsGetCacheDataTable( PDNS_CACHE_ENTRY
* entry
)
139 FIXME( "(%p) stub\n", entry
);
143 /******************************************************************************
144 * DnsReleaseContextHandle [DNSAPI.@]
147 VOID WINAPI
DnsReleaseContextHandle( HANDLE context
)
149 FIXME( "(%p) stub\n", context
);
152 /******************************************************************************
153 * DnsModifyRecordsInSet_A [DNSAPI.@]
156 DNS_STATUS WINAPI
DnsModifyRecordsInSet_A( DNS_RECORDA
*add
, DNS_RECORDA
*delete, DWORD options
, HANDLE context
,
157 void *servers
, void *reserved
)
159 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
160 return ERROR_SUCCESS
;
163 /******************************************************************************
164 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
167 DNS_STATUS WINAPI
DnsModifyRecordsInSet_UTF8( DNS_RECORDA
*add
, DNS_RECORDA
*delete, DWORD options
, HANDLE context
,
168 void *servers
, void *reserved
)
170 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
171 return ERROR_SUCCESS
;
174 /******************************************************************************
175 * DnsModifyRecordsInSet_W [DNSAPI.@]
178 DNS_STATUS WINAPI
DnsModifyRecordsInSet_W( DNS_RECORDW
*add
, DNS_RECORDW
*delete, DWORD options
, HANDLE context
,
179 void *servers
, void *reserved
)
181 FIXME( "(%p, %p, %#lx, %p, %p, %p) stub\n", add
, delete, options
, context
, servers
, reserved
);
182 return ERROR_SUCCESS
;
185 /******************************************************************************
186 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
189 BOOL WINAPI
DnsWriteQuestionToBuffer_UTF8( DNS_MESSAGE_BUFFER
*buffer
, DWORD
*size
, const char *name
, WORD type
,
190 WORD xid
, BOOL recurse
)
192 FIXME( "(%p, %p, %s, %d, %d, %d) stub\n", buffer
, size
, debugstr_a(name
), type
, xid
, recurse
);
196 /******************************************************************************
197 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
200 BOOL WINAPI
DnsWriteQuestionToBuffer_W( DNS_MESSAGE_BUFFER
*buffer
, DWORD
*size
, const WCHAR
*name
, WORD type
,
201 WORD xid
, BOOL recurse
)
203 FIXME( "(%p, %p, %s, %d, %d, %d) stub\n", buffer
, size
, debugstr_w(name
), type
, xid
, recurse
);
207 /******************************************************************************
208 * DnsReplaceRecordSetA [DNSAPI.@]
211 DNS_STATUS WINAPI
DnsReplaceRecordSetA( DNS_RECORDA
*set
, DWORD options
, HANDLE context
, void *servers
,
214 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
215 return ERROR_SUCCESS
;
218 /******************************************************************************
219 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
222 DNS_STATUS WINAPI
DnsReplaceRecordSetUTF8( DNS_RECORDA
*set
, DWORD options
, HANDLE context
, void *servers
,
225 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
226 return ERROR_SUCCESS
;
229 /******************************************************************************
230 * DnsReplaceRecordSetW [DNSAPI.@]
233 DNS_STATUS WINAPI
DnsReplaceRecordSetW( DNS_RECORDW
*set
, DWORD options
, HANDLE context
, void *servers
,
236 FIXME( "(%p, %#lx, %p, %p, %p) stub\n", set
, options
, context
, servers
, reserved
);
237 return ERROR_SUCCESS
;