devenum: Implement IMoniker::GetClassID().
[wine.git] / dlls / dnsapi / main.c
blob93528a2302d7ae324855315b0c3cc515e35e95d7
1 /*
2 * DNS support
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
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "windns.h"
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 );
37 switch (reason)
39 case DLL_WINE_PREATTACH:
40 return FALSE; /* prefer native version */
41 case DLL_PROCESS_ATTACH:
42 DisableThreadLibraryCalls( hinst );
43 break;
45 return TRUE;
48 /******************************************************************************
49 * DnsAcquireContextHandle_A [DNSAPI.@]
52 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
53 PHANDLE context )
55 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
57 *context = (HANDLE)0xdeadbeef;
58 return ERROR_SUCCESS;
61 /******************************************************************************
62 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
65 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
66 PHANDLE context )
68 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
70 *context = (HANDLE)0xdeadbeef;
71 return ERROR_SUCCESS;
74 /******************************************************************************
75 * DnsAcquireContextHandle_W [DNSAPI.@]
78 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
79 PHANDLE context )
81 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
83 *context = (HANDLE)0xdeadbeef;
84 return ERROR_SUCCESS;
87 /******************************************************************************
88 * DnsFlushResolverCache [DNSAPI.@]
91 VOID WINAPI DnsFlushResolverCache(void)
93 FIXME(": stub\n");
96 /******************************************************************************
97 * DnsFlushResolverCacheEntry_A [DNSAPI.@]
100 BOOL WINAPI DnsFlushResolverCacheEntry_A( PCSTR entry )
102 FIXME( "%s: stub\n", debugstr_a(entry) );
103 if (!entry) return FALSE;
104 return TRUE;
107 /******************************************************************************
108 * DnsFlushResolverCacheEntry_UTF8 [DNSAPI.@]
111 BOOL WINAPI DnsFlushResolverCacheEntry_UTF8( PCSTR entry )
113 FIXME( "%s: stub\n", debugstr_a(entry) );
114 if (!entry) return FALSE;
115 return TRUE;
118 /******************************************************************************
119 * DnsFlushResolverCacheEntry_W [DNSAPI.@]
122 BOOL WINAPI DnsFlushResolverCacheEntry_W( PCWSTR entry )
124 FIXME( "%s: stub\n", debugstr_w(entry) );
125 if (!entry) return FALSE;
126 return TRUE;
129 /******************************************************************************
130 * DnsReleaseContextHandle [DNSAPI.@]
133 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
135 FIXME( "(%p) stub\n", context );
138 /******************************************************************************
139 * DnsExtractRecordsFromMessage_UTF8 [DNSAPI.@]
142 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
143 WORD len, PDNS_RECORDA *record )
145 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
147 *record = NULL;
148 return ERROR_SUCCESS;
151 /******************************************************************************
152 * DnsExtractRecordsFromMessage_W [DNSAPI.@]
155 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
156 WORD len, PDNS_RECORDW *record )
158 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
160 *record = NULL;
161 return ERROR_SUCCESS;
164 /******************************************************************************
165 * DnsModifyRecordsInSet_A [DNSAPI.@]
168 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
169 DWORD options, HANDLE context,
170 PVOID servers, PVOID reserved )
172 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
173 context, servers, reserved );
174 return ERROR_SUCCESS;
177 /******************************************************************************
178 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
181 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
182 DWORD options, HANDLE context,
183 PVOID servers, PVOID reserved )
185 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
186 context, servers, reserved );
187 return ERROR_SUCCESS;
190 /******************************************************************************
191 * DnsModifyRecordsInSet_W [DNSAPI.@]
194 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
195 DWORD options, HANDLE context,
196 PVOID servers, PVOID reserved )
198 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
199 context, servers, reserved );
200 return ERROR_SUCCESS;
203 /******************************************************************************
204 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
207 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
208 PCSTR name, WORD type, WORD xid,
209 BOOL recurse )
211 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
212 type, xid, recurse );
213 return FALSE;
216 /******************************************************************************
217 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
220 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
221 PCWSTR name, WORD type, WORD xid,
222 BOOL recurse )
224 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
225 type, xid, recurse );
226 return FALSE;
229 /******************************************************************************
230 * DnsReplaceRecordSetA [DNSAPI.@]
233 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
234 HANDLE context, PVOID servers,
235 PVOID reserved )
237 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
238 servers, reserved );
239 return ERROR_SUCCESS;
242 /******************************************************************************
243 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
246 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
247 HANDLE context, PVOID servers,
248 PVOID reserved )
250 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
251 servers, reserved );
252 return ERROR_SUCCESS;
255 /******************************************************************************
256 * DnsReplaceRecordSetW [DNSAPI.@]
259 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
260 HANDLE context, PVOID servers,
261 PVOID reserved )
263 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
264 servers, reserved );
265 return ERROR_SUCCESS;