wined3d: Don't load/unload unsupported texture coordinate attribs.
[wine] / dlls / dnsapi / main.c
1 /*
2  * DNS support
3  *
4  * Copyright (C) 2006 Matthew Kehrer
5  * Copyright (C) 2006 Hans Leidekker
6  *
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.
11  *
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.
16  *
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
20  */
21
22 #include <stdarg.h>
23
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winerror.h"
27 #include "windns.h"
28
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(dnsapi);
32
33 static HINSTANCE hdnsapi;
34
35 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
36 {
37     TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
38
39     switch (reason)
40     {
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;
49     }
50     return TRUE;
51 }
52
53 /******************************************************************************
54  * DnsAcquireContextHandle_A              [DNSAPI.@]
55  *
56  */
57 DNS_STATUS WINAPI DnsAcquireContextHandle_A( DWORD flags, PVOID cred,
58                                              PHANDLE context )
59 {
60     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
61
62     *context = (HANDLE)0xdeadbeef;
63     return ERROR_SUCCESS;
64 }
65
66 /******************************************************************************
67  * DnsAcquireContextHandle_UTF8              [DNSAPI.@]
68  *
69  */
70 DNS_STATUS WINAPI DnsAcquireContextHandle_UTF8( DWORD flags, PVOID cred,
71                                                 PHANDLE context )
72 {
73     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
74
75     *context = (HANDLE)0xdeadbeef;
76     return ERROR_SUCCESS;
77 }
78
79 /******************************************************************************
80  * DnsAcquireContextHandle_W              [DNSAPI.@]
81  *
82  */
83 DNS_STATUS WINAPI DnsAcquireContextHandle_W( DWORD flags, PVOID cred,
84                                              PHANDLE context )
85 {
86     FIXME( "(0x%08x,%p,%p) stub\n", flags, cred, context );
87
88     *context = (HANDLE)0xdeadbeef;
89     return ERROR_SUCCESS;
90 }
91
92 /******************************************************************************
93  * DnsFlushResolverCache               [DNSAPI.@]
94  *
95  */
96 VOID WINAPI DnsFlushResolverCache(void)
97 {
98     FIXME(": stub\n");
99 }
100
101
102 /******************************************************************************
103  * DnsReleaseContextHandle                [DNSAPI.@]
104  *
105  */
106 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
107 {
108     FIXME( "(%p) stub\n", context );
109 }
110
111 /******************************************************************************
112  * DnsExtractRecordsFromMessage_UTF8       [DNSAPI.@]
113  *
114  */
115 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
116                                                      WORD len, PDNS_RECORDA *record )
117 {
118     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
119
120     *record = NULL;
121     return ERROR_SUCCESS;
122 }
123
124 /******************************************************************************
125  * DnsExtractRecordsFromMessage_W          [DNSAPI.@]
126  *
127  */
128 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
129                                                   WORD len, PDNS_RECORDW *record )
130 {
131     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
132
133     *record = NULL;
134     return ERROR_SUCCESS;
135 }
136
137 /******************************************************************************
138  * DnsModifyRecordsInSet_A                 [DNSAPI.@]
139  *
140  */
141 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
142                                            DWORD options, HANDLE context,
143                                            PVOID servers, PVOID reserved )
144 {
145     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
146            context, servers, reserved );
147     return ERROR_SUCCESS;
148 }
149
150 /******************************************************************************
151  * DnsModifyRecordsInSet_UTF8              [DNSAPI.@]
152  *
153  */
154 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
155                                               DWORD options, HANDLE context,
156                                               PVOID servers, PVOID reserved )
157 {
158     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
159            context, servers, reserved );
160     return ERROR_SUCCESS;
161 }
162
163 /******************************************************************************
164  * DnsModifyRecordsInSet_W                 [DNSAPI.@]
165  *
166  */
167 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
168                                            DWORD options, HANDLE context,
169                                            PVOID servers, PVOID reserved )
170 {
171     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
172            context, servers, reserved );
173     return ERROR_SUCCESS;
174 }
175
176 /******************************************************************************
177  * DnsWriteQuestionToBuffer_UTF8          [DNSAPI.@]
178  *
179  */
180 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
181                                            PCSTR name, WORD type, WORD xid,
182                                            BOOL recurse )
183 {
184     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
185            type, xid, recurse );
186     return FALSE;
187 }
188
189 /******************************************************************************
190  * DnsWriteQuestionToBuffer_W              [DNSAPI.@]
191  *
192  */
193 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
194                                         PCWSTR name, WORD type, WORD xid,
195                                         BOOL recurse )
196 {
197     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
198            type, xid, recurse );
199     return FALSE;
200 }
201
202 /******************************************************************************
203  * DnsReplaceRecordSetA                    [DNSAPI.@]
204  *
205  */
206 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
207                                         HANDLE context, PVOID servers,
208                                         PVOID reserved )
209 {
210     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
211            servers, reserved );
212     return ERROR_SUCCESS;
213 }
214
215 /******************************************************************************
216  * DnsReplaceRecordSetUTF8                 [DNSAPI.@]
217  *
218  */
219 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
220                                            HANDLE context, PVOID servers,
221                                            PVOID reserved )
222 {
223     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
224            servers, reserved );
225     return ERROR_SUCCESS;
226 }
227
228 /******************************************************************************
229  * DnsReplaceRecordSetW                    [DNSAPI.@]
230  *
231  */
232 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
233                                         HANDLE context, PVOID servers,
234                                         PVOID reserved )
235 {
236     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
237            servers, reserved );
238     return ERROR_SUCCESS;
239 }