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
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
);
41 case DLL_WINE_PREATTACH
:
42 return FALSE
; /* prefer native version */
43 case DLL_PROCESS_ATTACH
:
45 DisableThreadLibraryCalls( hinst
);
47 case DLL_PROCESS_DETACH
:
53 /******************************************************************************
54 * DnsAcquireContextHandle_A [DNSAPI.@]
57 DNS_STATUS WINAPI
DnsAcquireContextHandle_A( DWORD flags
, PVOID cred
,
60 FIXME( "(0x%08x,%p,%p) stub\n", flags
, cred
, context
);
62 *context
= (HANDLE
)0xdeadbeef;
66 /******************************************************************************
67 * DnsAcquireContextHandle_UTF8 [DNSAPI.@]
70 DNS_STATUS WINAPI
DnsAcquireContextHandle_UTF8( DWORD flags
, PVOID cred
,
73 FIXME( "(0x%08x,%p,%p) stub\n", flags
, cred
, context
);
75 *context
= (HANDLE
)0xdeadbeef;
79 /******************************************************************************
80 * DnsAcquireContextHandle_W [DNSAPI.@]
83 DNS_STATUS WINAPI
DnsAcquireContextHandle_W( DWORD flags
, PVOID cred
,
86 FIXME( "(0x%08x,%p,%p) stub\n", flags
, cred
, context
);
88 *context
= (HANDLE
)0xdeadbeef;
92 /******************************************************************************
93 * DnsFlushResolverCache [DNSAPI.@]
96 VOID WINAPI
DnsFlushResolverCache(void)
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
);
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
);
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
,
184 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer
, size
, debugstr_a(name
),
185 type
, xid
, recurse
);
189 /******************************************************************************
190 * DnsWriteQuestionToBuffer_W [DNSAPI.@]
193 BOOL WINAPI
DnsWriteQuestionToBuffer_W( PDNS_MESSAGE_BUFFER buffer
, PDWORD size
,
194 PCWSTR name
, WORD type
, WORD xid
,
197 FIXME( "(%p,%p,%s,%d,%d,%d) stub\n", buffer
, size
, debugstr_w(name
),
198 type
, xid
, recurse
);
202 /******************************************************************************
203 * DnsReplaceRecordSetA [DNSAPI.@]
206 DNS_STATUS WINAPI
DnsReplaceRecordSetA( PDNS_RECORDA set
, DWORD options
,
207 HANDLE context
, PVOID servers
,
210 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
212 return ERROR_SUCCESS
;
215 /******************************************************************************
216 * DnsReplaceRecordSetUTF8 [DNSAPI.@]
219 DNS_STATUS WINAPI
DnsReplaceRecordSetUTF8( PDNS_RECORDA set
, DWORD options
,
220 HANDLE context
, PVOID servers
,
223 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
225 return ERROR_SUCCESS
;
228 /******************************************************************************
229 * DnsReplaceRecordSetW [DNSAPI.@]
232 DNS_STATUS WINAPI
DnsReplaceRecordSetW( PDNS_RECORDW set
, DWORD options
,
233 HANDLE context
, PVOID servers
,
236 FIXME( "(%p,0x%08x,%p,%p,%p) stub\n", set
, options
, context
,
238 return ERROR_SUCCESS
;