rsaenh: Add a test for importing a key into a container and acquiring a container...
[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  * DnsReleaseContextHandle                [DNSAPI.@]
94  *
95  */
96 VOID WINAPI DnsReleaseContextHandle( HANDLE context )
97 {
98     FIXME( "(%p) stub\n", context );
99 }
100
101 /******************************************************************************
102  * DnsExtractRecordsFromMessage_UTF8       [DNSAPI.@]
103  *
104  */
105 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_UTF8( PDNS_MESSAGE_BUFFER buffer,
106                                                      WORD len, PDNS_RECORDA *record )
107 {
108     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
109
110     *record = NULL;
111     return ERROR_SUCCESS;
112 }
113
114 /******************************************************************************
115  * DnsExtractRecordsFromMessage_W          [DNSAPI.@]
116  *
117  */
118 DNS_STATUS WINAPI DnsExtractRecordsFromMessage_W( PDNS_MESSAGE_BUFFER buffer,
119                                                   WORD len, PDNS_RECORDW *record )
120 {
121     FIXME( "(%p,%d,%p) stub\n", buffer, len, record );
122
123     *record = NULL;
124     return ERROR_SUCCESS;
125 }
126
127 /******************************************************************************
128  * DnsModifyRecordsInSet_A                 [DNSAPI.@]
129  *
130  */
131 DNS_STATUS WINAPI DnsModifyRecordsInSet_A( PDNS_RECORDA add, PDNS_RECORDA delete,
132                                            DWORD options, HANDLE context,
133                                            PVOID servers, PVOID reserved )
134 {
135     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
136            context, servers, reserved );
137     return ERROR_SUCCESS;
138 }
139
140 /******************************************************************************
141  * DnsModifyRecordsInSet_UTF8              [DNSAPI.@]
142  *
143  */
144 DNS_STATUS WINAPI DnsModifyRecordsInSet_UTF8( PDNS_RECORDA add, PDNS_RECORDA delete,
145                                               DWORD options, HANDLE context,
146                                               PVOID servers, PVOID reserved )
147 {
148     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
149            context, servers, reserved );
150     return ERROR_SUCCESS;
151 }
152
153 /******************************************************************************
154  * DnsModifyRecordsInSet_W                 [DNSAPI.@]
155  *
156  */
157 DNS_STATUS WINAPI DnsModifyRecordsInSet_W( PDNS_RECORDW add, PDNS_RECORDW delete,
158                                            DWORD options, HANDLE context,
159                                            PVOID servers, PVOID reserved )
160 {
161     FIXME( "(%p,%p,0x%08x,%p,%p,%p) stub\n", add, delete, options,
162            context, servers, reserved );
163     return ERROR_SUCCESS;
164 }
165
166 /******************************************************************************
167  * DnsWriteQuestionToBuffer_UTF8          [DNSAPI.@]
168  *
169  */
170 BOOL WINAPI DnsWriteQuestionToBuffer_UTF8( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
171                                            PCSTR name, WORD type, WORD xid,
172                                            BOOL recurse )
173 {
174     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_a(name),
175            type, xid, recurse );
176     return FALSE;
177 }
178
179 /******************************************************************************
180  * DnsWriteQuestionToBuffer_W              [DNSAPI.@]
181  *
182  */
183 BOOL WINAPI DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer, PDWORD size,
184                                         PCWSTR name, WORD type, WORD xid,
185                                         BOOL recurse )
186 {
187     FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer, size, debugstr_w(name),
188            type, xid, recurse );
189     return FALSE;
190 }
191
192 /******************************************************************************
193  * DnsReplaceRecordSetA                    [DNSAPI.@]
194  *
195  */
196 DNS_STATUS WINAPI DnsReplaceRecordSetA( PDNS_RECORDA set, DWORD options,
197                                         HANDLE context, PVOID servers,
198                                         PVOID reserved )
199 {
200     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
201            servers, reserved );
202     return ERROR_SUCCESS;
203 }
204
205 /******************************************************************************
206  * DnsReplaceRecordSetUTF8                 [DNSAPI.@]
207  *
208  */
209 DNS_STATUS WINAPI DnsReplaceRecordSetUTF8( PDNS_RECORDA set, DWORD options,
210                                            HANDLE context, PVOID servers,
211                                            PVOID reserved )
212 {
213     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
214            servers, reserved );
215     return ERROR_SUCCESS;
216 }
217
218 /******************************************************************************
219  * DnsReplaceRecordSetW                    [DNSAPI.@]
220  *
221  */
222 DNS_STATUS WINAPI DnsReplaceRecordSetW( PDNS_RECORDW set, DWORD options,
223                                         HANDLE context, PVOID servers,
224                                         PVOID reserved )
225 {
226     FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set, options, context,
227            servers, reserved );
228     return ERROR_SUCCESS;
229 }