wined3d: Fix a comment.
[wine/hramrach.git] / dlls / dnsapi / main.c
blob188955216d07265dd1eaa4909102247b9810041c
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 static HINSTANCE hdnsapi;
35 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
37 TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
39 switch (reason)
41 case DLL_WINE_PREATTACH:
42 return FALSE; /* prefer native version */
43 case DLL_PROCESS_ATTACH:
44 hdnsapi = hinst;
45 DisableThreadLibraryCalls( hinst );
46 break;
47 case DLL_PROCESS_DETACH:
48 break;
50 return TRUE;
53 /******************************************************************************
54 * DnsAcquireContextHandle_A [DNSAPI.@]
57 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
58 PHANDLE context )
60 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
62 *context = (HANDLE)0xdeadbeef;
63 return ERROR_SUCCESS;
66 /******************************************************************************
67 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
70 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
71 PHANDLE context )
73 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
75 *context = (HANDLE)0xdeadbeef;
76 return ERROR_SUCCESS;
79 /******************************************************************************
80 * DnsAcquireContextHandle_W [DNSAPI.@]
83 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
84 PHANDLE context )
86 FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
88 *context = (HANDLE)0xdeadbeef;
89 return ERROR_SUCCESS;
92 /******************************************************************************
93 * DnsFlushResolverCache [DNSAPI.@]
96 VOID WINAPI DnsFlushResolverCache(void)
98 FIXME(": stub\n");
102 /******************************************************************************
103 * DnsReleaseContextHandle [DNSAPI.@]
106 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
108 FIXME( "(%p) stub\n", context );
111 /******************************************************************************
112 * DnsExtractRecordsFromMessage_UTF8 [DNSAPI.@]
115 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
116 WORD len, PDNS_RECORDA *record )
118 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
120 *record = NULL;
121 return ERROR_SUCCESS;
124 /******************************************************************************
125 * DnsExtractRecordsFromMessage_W [DNSAPI.@]
128 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
129 WORD len, PDNS_RECORDW *record )
131 FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
133 *record = NULL;
134 return ERROR_SUCCESS;
137 /******************************************************************************
138 * DnsModifyRecordsInSet_A [DNSAPI.@]
141 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
142 DWORD options, HANDLE context,
143 PVOID servers, PVOID reserved )
145 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
146 context, servers, reserved );
147 return ERROR_SUCCESS;
150 /******************************************************************************
151 * DnsModifyRecordsInSet_UTF8 [DNSAPI.@]
154 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
155 DWORD options, HANDLE context,
156 PVOID servers, PVOID reserved )
158 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
159 context, servers, reserved );
160 return ERROR_SUCCESS;
163 /******************************************************************************
164 * DnsModifyRecordsInSet_W [DNSAPI.@]
167 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
168 DWORD options, HANDLE context,
169 PVOID servers, PVOID reserved )
171 FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
172 context, servers, reserved );
173 return ERROR_SUCCESS;
176 /******************************************************************************
177 * DnsWriteQuestionToBuffer_UTF8 [DNSAPI.@]
180 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
181 PCSTR name, WORD type, WORD xid,
182 BOOL recurse )
184 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
185 type, xid, recurse );
186 return FALSE;
189 /******************************************************************************
190 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
193 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
194 PCWSTR name, WORD type, WORD xid,
195 BOOL recurse )
197 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
198 type, xid, recurse );
199 return FALSE;
202 /******************************************************************************
203 * DnsReplaceRecordSetA [DNSAPI.@]
206 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
207 HANDLE context, PVOID servers,
208 PVOID reserved )
210 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
211 servers, reserved );
212 return ERROR_SUCCESS;
215 /******************************************************************************
216 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
219 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
220 HANDLE context, PVOID servers,
221 PVOID reserved )
223 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
224 servers, reserved );
225 return ERROR_SUCCESS;
228 /******************************************************************************
229 * DnsReplaceRecordSetW [DNSAPI.@]
232 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
233 HANDLE context, PVOID servers,
234 PVOID reserved )
236 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
237 servers, reserved );
238 return ERROR_SUCCESS;