wineps: Handle EMR_SCALEVIEWPORTEXTEX record in spool files.
[wine.git] / include / winldap.h
blob9e91d0e653aba0788a8c27d9fda8d96545117861
1 /*
2 * Copyright 2005 Hans Leidekker
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_WINLDAP_H
20 #define __WINE_WINLDAP_H
22 #include <windef.h>
23 #include <schnlsp.h>
25 #ifndef LDAPAPI
26 #define LDAPAPI __cdecl
27 #endif
30 typedef enum {
31 LDAP_SUCCESS = 0x00,
32 LDAP_OPERATIONS_ERROR = 0x01,
33 LDAP_PROTOCOL_ERROR = 0x02,
34 LDAP_TIMELIMIT_EXCEEDED = 0x03,
35 LDAP_SIZELIMIT_EXCEEDED = 0x04,
36 LDAP_COMPARE_FALSE = 0x05,
37 LDAP_COMPARE_TRUE = 0x06,
38 LDAP_AUTH_METHOD_NOT_SUPPORTED = 0x07,
39 LDAP_STRONG_AUTH_REQUIRED = 0x08,
40 LDAP_REFERRAL_V2 = 0x09,
41 LDAP_PARTIAL_RESULTS = 0x09,
42 LDAP_REFERRAL = 0x0a,
43 LDAP_ADMIN_LIMIT_EXCEEDED = 0x0b,
44 LDAP_UNAVAILABLE_CRIT_EXTENSION = 0x0c,
45 LDAP_CONFIDENTIALITY_REQUIRED = 0x0d,
46 LDAP_SASL_BIND_IN_PROGRESS = 0x0e,
48 LDAP_NO_SUCH_ATTRIBUTE = 0x10,
49 LDAP_UNDEFINED_TYPE = 0x11,
50 LDAP_INAPPROPRIATE_MATCHING = 0x12,
51 LDAP_CONSTRAINT_VIOLATION = 0x13,
52 LDAP_ATTRIBUTE_OR_VALUE_EXISTS = 0x14,
53 LDAP_INVALID_SYNTAX = 0x15,
55 LDAP_NO_SUCH_OBJECT = 0x20,
56 LDAP_ALIAS_PROBLEM = 0x21,
57 LDAP_INVALID_DN_SYNTAX = 0x22,
58 LDAP_IS_LEAF = 0x23,
59 LDAP_ALIAS_DEREF_PROBLEM = 0x24,
61 LDAP_INAPPROPRIATE_AUTH = 0x30,
62 LDAP_INVALID_CREDENTIALS = 0x31,
63 LDAP_INSUFFICIENT_RIGHTS = 0x32,
64 LDAP_BUSY = 0x33,
65 LDAP_UNAVAILABLE = 0x34,
66 LDAP_UNWILLING_TO_PERFORM = 0x35,
67 LDAP_LOOP_DETECT = 0x36,
68 LDAP_SORT_CONTROL_MISSING = 0x3C,
69 LDAP_OFFSET_RANGE_ERROR = 0x3D,
71 LDAP_NAMING_VIOLATION = 0x40,
72 LDAP_OBJECT_CLASS_VIOLATION = 0x41,
73 LDAP_NOT_ALLOWED_ON_NONLEAF = 0x42,
74 LDAP_NOT_ALLOWED_ON_RDN = 0x43,
75 LDAP_ALREADY_EXISTS = 0x44,
76 LDAP_NO_OBJECT_CLASS_MODS = 0x45,
77 LDAP_RESULTS_TOO_LARGE = 0x46,
78 LDAP_AFFECTS_MULTIPLE_DSAS = 0x47,
80 LDAP_VIRTUAL_LIST_VIEW_ERROR = 0x4c,
82 LDAP_OTHER = 0x50,
83 LDAP_SERVER_DOWN = 0x51,
84 LDAP_LOCAL_ERROR = 0x52,
85 LDAP_ENCODING_ERROR = 0x53,
86 LDAP_DECODING_ERROR = 0x54,
87 LDAP_TIMEOUT = 0x55,
88 LDAP_AUTH_UNKNOWN = 0x56,
89 LDAP_FILTER_ERROR = 0x57,
90 LDAP_USER_CANCELLED = 0x58,
91 LDAP_PARAM_ERROR = 0x59,
92 LDAP_NO_MEMORY = 0x5a,
93 LDAP_CONNECT_ERROR = 0x5b,
94 LDAP_NOT_SUPPORTED = 0x5c,
95 LDAP_CONTROL_NOT_FOUND = 0x5d,
96 LDAP_NO_RESULTS_RETURNED = 0x5e,
97 LDAP_MORE_RESULTS_TO_RETURN = 0x5f,
99 LDAP_CLIENT_LOOP = 0x60,
100 LDAP_REFERRAL_LIMIT_EXCEEDED = 0x61
101 } LDAP_RETCODE;
103 #define LDAP_SCOPE_BASE 0x00
104 #define LDAP_SCOPE_ONELEVEL 0x01
105 #define LDAP_SCOPE_SUBTREE 0x02
107 #define LBER_USE_DER 0x01
109 typedef struct berelement
111 PCHAR opaque;
112 } BerElement;
114 #define LDAP_OPT_API_INFO 0x00
115 #define LDAP_OPT_DESC 0x01
116 #define LDAP_OPT_DEREF 0x02
117 #define LDAP_OPT_SIZELIMIT 0x03
118 #define LDAP_OPT_TIMELIMIT 0x04
119 #define LDAP_OPT_THREAD_FN_PTRS 0x05
120 #define LDAP_OPT_REBIND_FN 0x06
121 #define LDAP_OPT_REBIND_ARG 0x07
122 #define LDAP_OPT_REFERRALS 0x08
123 #define LDAP_OPT_RESTART 0x09
124 #define LDAP_OPT_SSL 0x0a
125 #define LDAP_OPT_IO_FN_PTRS 0x0b
126 #define LDAP_OPT_CACHE_FN_PTRS 0x0d
127 #define LDAP_OPT_CACHE_STRATEGY 0x0e
128 #define LDAP_OPT_CACHE_ENABLE 0x0f
129 #define LDAP_OPT_REFERRAL_HOP_LIMIT 0x10
130 #define LDAP_OPT_PROTOCOL_VERSION 0x11
131 #define LDAP_OPT_VERSION 0x11
132 #define LDAP_OPT_API_FEATURE_INFO 0x15
133 #define LDAP_OPT_HOST_NAME 0x30
134 #define LDAP_OPT_ERROR_NUMBER 0x31
135 #define LDAP_OPT_ERROR_STRING 0x32
136 #define LDAP_OPT_SERVER_ERROR 0x33
137 #define LDAP_OPT_SERVER_EXT_ERROR 0x34
138 #define LDAP_OPT_PING_KEEP_ALIVE 0x36
139 #define LDAP_OPT_PING_WAIT_TIME 0x37
140 #define LDAP_OPT_PING_LIMIT 0x38
141 #define LDAP_OPT_DNSDOMAIN_NAME 0x3b
142 #define LDAP_OPT_GETDSNAME_FLAGS 0x3d
143 #define LDAP_OPT_HOST_REACHABLE 0x3e
144 #define LDAP_OPT_PROMPT_CREDENTIALS 0x3f
145 #define LDAP_OPT_TCP_KEEPALIVE 0x40
146 #define LDAP_OPT_FAST_CONCURRENT_BIND 0x41
147 #define LDAP_OPT_SEND_TIMEOUT 0x42
148 #define LDAP_OPT_REFERRAL_CALLBACK 0x70
149 #define LDAP_OPT_CLIENT_CERTIFICATE 0x80
150 #define LDAP_OPT_SERVER_CERTIFICATE 0x81
151 #define LDAP_OPT_AUTO_RECONNECT 0x91
152 #define LDAP_OPT_SSPI_FLAGS 0x92
153 #define LDAP_OPT_SSL_INFO 0x93
154 #define LDAP_OPT_REF_DEREF_CONN_PER_MSG 0x94
155 #define LDAP_OPT_TLS LDAP_OPT_SSL
156 #define LDAP_OPT_TLS_INFO LDAP_OPT_SSL_INFO
157 #define LDAP_OPT_SIGN 0x95
158 #define LDAP_OPT_ENCRYPT 0x96
159 #define LDAP_OPT_SASL_METHOD 0x97
160 #define LDAP_OPT_AREC_EXCLUSIVE 0x98
161 #define LDAP_OPT_SECURITY_CONTEXT 0x99
162 #define LDAP_OPT_ROOTDSE_CACHE 0x9a
164 #define LDAP_OPT_ON ((void *)1)
165 #define LDAP_OPT_OFF ((void *)0)
167 #define LDAP_VERSION1 1
168 #define LDAP_VERSION2 2
169 #define LDAP_VERSION3 3
170 #define LDAP_VERSION LDAP_VERSION2
172 #define LDAP_MSG_ONE 0
173 #define LDAP_MSG_ALL 1
174 #define LDAP_MSG_RECEIVED 2
176 #define LDAP_RES_BIND 0x61
177 #define LDAP_RES_SEARCH_ENTRY 0x64
178 #define LDAP_RES_SEARCH_RESULT 0x65
179 #define LDAP_RES_MODIFY 0x67
180 #define LDAP_RES_ADD 0x69
181 #define LDAP_RES_DELETE 0x6b
182 #define LDAP_RES_MODRDN 0x6d
183 #define LDAP_RES_COMPARE 0x6f
184 #define LDAP_RES_SESSION 0x72
185 #define LDAP_RES_REFERRAL 0x73
186 #define LDAP_RES_EXTENDED 0x78
187 #define LDAP_RES_ANY (-1)
189 #define LDAP_AUTH_SIMPLE 0x80
190 #define LDAP_AUTH_SASL 0x83
191 #define LDAP_AUTH_OTHERKIND 0x86
193 #define LDAP_AUTH_EXTERNAL (LDAP_AUTH_OTHERKIND | 0x0020)
194 #define LDAP_AUTH_SICILY (LDAP_AUTH_OTHERKIND | 0x0200)
195 #define LDAP_AUTH_NEGOTIATE (LDAP_AUTH_OTHERKIND | 0x0400)
196 #define LDAP_AUTH_MSN (LDAP_AUTH_OTHERKIND | 0x0800)
197 #define LDAP_AUTH_NTLM (LDAP_AUTH_OTHERKIND | 0x1000)
198 #define LDAP_AUTH_DPA (LDAP_AUTH_OTHERKIND | 0x2000)
199 #define LDAP_AUTH_DIGEST (LDAP_AUTH_OTHERKIND | 0x4000)
201 typedef struct ldap
203 struct
205 UINT_PTR sb_sd;
206 UCHAR Reserved1[41];
207 ULONG_PTR sb_naddr;
208 UCHAR Reserved2[24];
209 } ld_sb;
211 PCHAR ld_host;
212 ULONG ld_version;
213 UCHAR ld_lberoptions;
214 ULONG ld_deref;
215 ULONG ld_timelimit;
216 ULONG ld_sizelimit;
217 ULONG ld_errno;
218 PCHAR ld_matched;
219 PCHAR ld_error;
220 ULONG ld_msgid;
221 UCHAR Reserved3[25];
222 ULONG ld_cldaptries;
223 ULONG ld_cldaptimeout;
224 ULONG ld_refhoplimit;
225 ULONG ld_options;
226 } LDAP, *PLDAP;
228 #define LDAP_MOD_ADD 0x00
229 #define LDAP_MOD_DELETE 0x01
230 #define LDAP_MOD_REPLACE 0x02
231 #define LDAP_MOD_BVALUES 0x80
233 typedef struct ldapmodA {
234 ULONG mod_op;
235 PCHAR mod_type;
236 union {
237 PCHAR *modv_strvals;
238 struct berval **modv_bvals;
239 } mod_vals;
240 } LDAPModA, *PLDAPModA;
242 typedef struct ldapmodW {
243 ULONG mod_op;
244 PWCHAR mod_type;
245 union {
246 PWCHAR *modv_strvals;
247 struct berval **modv_bvals;
248 } mod_vals;
249 } LDAPModW, *PLDAPModW;
251 DECL_WINELIB_TYPE_AW(LDAPMod)
252 DECL_WINELIB_TYPE_AW(PLDAPMod)
254 typedef struct l_timeval
256 LONG tv_sec;
257 LONG tv_usec;
258 } LDAP_TIMEVAL, *PLDAP_TIMEVAL;
260 typedef struct ldapmsg
262 ULONG lm_msgid;
263 ULONG lm_msgtype;
265 PVOID lm_ber;
267 struct ldapmsg *lm_chain;
268 struct ldapmsg *lm_next;
269 ULONG lm_time;
271 PLDAP Connection;
272 PVOID Request;
273 ULONG lm_returncode;
274 USHORT lm_referral;
275 BOOLEAN lm_chased;
276 BOOLEAN lm_eom;
277 BOOLEAN ConnectionReferenced;
278 } LDAPMessage, *PLDAPMessage;
280 #define LAPI_MAJOR_VER1 1
281 #define LAPI_MINOR_VER1 1
283 typedef struct ldap_version_info
285 ULONG lv_size;
286 ULONG lv_major;
287 ULONG lv_minor;
288 } LDAP_VERSION_INFO, *PLDAP_VERSION_INFO;
290 typedef struct berval
292 ULONG bv_len;
293 PCHAR bv_val;
294 } LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, BerValue;
296 #define LDAP_PAGED_RESULT_OID_STRING "1.2.840.113556.1.4.319"
297 #define LDAP_SERVER_RESP_SORT_OID "1.2.840.113556.1.4.474"
298 #define LDAP_CONTROL_VLVRESPONSE "2.16.840.1.113730.3.4.10"
300 #define LDAP_PAGED_RESULT_OID_STRING_W L"1.2.840.113556.1.4.319"
301 #define LDAP_SERVER_RESP_SORT_OID_W L"1.2.840.113556.1.4.474"
302 #define LDAP_CONTROL_VLVRESPONSE_W L"2.16.840.1.113730.3.4.10"
304 typedef struct ldapcontrolA
306 PCHAR ldctl_oid;
307 struct berval ldctl_value;
308 BOOLEAN ldctl_iscritical;
309 } LDAPControlA, *PLDAPControlA;
311 typedef struct ldapcontrolW
313 PWCHAR ldctl_oid;
314 struct berval ldctl_value;
315 BOOLEAN ldctl_iscritical;
316 } LDAPControlW, *PLDAPControlW;
318 DECL_WINELIB_TYPE_AW(LDAPControl)
319 DECL_WINELIB_TYPE_AW(PLDAPControl)
321 typedef struct ldapvlvinfo
323 int ldvlv_version;
324 ULONG ldvlv_before_count;
325 ULONG ldvlv_after_count;
326 ULONG ldvlv_offset;
327 ULONG ldvlv_count;
328 PBERVAL ldvlv_attrvalue;
329 PBERVAL ldvlv_context;
330 VOID *ldvlv_extradata;
331 } LDAPVLVInfo, *PLDAPVLVInfo;
333 typedef struct ldapsearch LDAPSearch, *PLDAPSearch;
335 typedef struct ldapsortkeyA
337 PCHAR sk_attrtype;
338 PCHAR sk_matchruleoid;
339 BOOLEAN sk_reverseorder;
340 } LDAPSortKeyA, *PLDAPSortKeyA;
342 typedef struct ldapsortkeyW
344 PWCHAR sk_attrtype;
345 PWCHAR sk_matchruleoid;
346 BOOLEAN sk_reverseorder;
347 } LDAPSortKeyW, *PLDAPSortKeyW;
349 DECL_WINELIB_TYPE_AW(LDAPSortKey)
350 DECL_WINELIB_TYPE_AW(PLDAPSortKey)
352 #define LDAP_API_INFO_VERSION 1
354 typedef struct ldapapiinfoA
356 int ldapai_info_version;
357 int ldapai_api_version;
358 int ldapai_protocol_version;
359 char **ldapai_extensions;
360 char *ldapai_vendor_name;
361 int ldapai_vendor_version;
362 } LDAPAPIInfoA;
364 typedef struct ldapapiinfoW
366 int ldapai_info_version;
367 int ldapai_api_version;
368 int ldapai_protocol_version;
369 PWCHAR *ldapai_extensions;
370 PWCHAR ldapai_vendor_name;
371 int ldapai_vendor_version;
372 } LDAPAPIInfoW;
374 DECL_WINELIB_TYPE_AW(LDAPAPIInfo)
376 #define LDAP_FEATURE_INFO_VERSION 1
378 typedef struct ldap_apifeature_infoA
380 int ldapaif_info_version;
381 char *ldapaif_name;
382 int ldapaif_version;
383 } LDAPAPIFeatureInfoA;
385 typedef struct ldap_apifeature_infoW
387 int ldapaif_info_version;
388 PWCHAR ldapaif_name;
389 int ldapaif_version;
390 } LDAPAPIFeatureInfoW;
392 DECL_WINELIB_TYPE_AW(LDAPAPIFeatureInfo)
394 typedef BOOLEAN (CDECL VERIFYSERVERCERT)(LDAP*,const CERT_CONTEXT**);
397 #ifdef __cplusplus
398 extern "C" {
399 #endif
401 void CDECL ldap_memfreeA(char*);
402 void CDECL ldap_memfreeW(WCHAR*);
403 #define ldap_memfree WINELIB_NAME_AW(ldap_memfree)
404 ULONG CDECL ldap_value_freeA(char**);
405 ULONG CDECL ldap_value_freeW(WCHAR**);
406 #define ldap_value_free WINELIB_NAME_AW(ldap_value_free)
407 ULONG CDECL ldap_value_free_len(struct berval**);
409 LDAP * CDECL cldap_openA(PCHAR,ULONG);
410 LDAP * CDECL cldap_openW(PWCHAR,ULONG);
411 #define cldap_open WINELIB_NAME_AW(cldap_open)
412 ULONG CDECL ldap_abandon(LDAP*,ULONG);
413 ULONG CDECL ldap_addA(LDAP*,PCHAR,LDAPModA*[]);
414 ULONG CDECL ldap_addW(LDAP*,PWCHAR,LDAPModW*[]);
415 #define ldap_add WINELIB_NAME_AW(ldap_add)
416 ULONG CDECL ldap_add_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
417 ULONG CDECL ldap_add_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
418 #define ldap_add_ext WINELIB_NAME_AW(ldap_add_ext)
419 ULONG CDECL ldap_add_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
420 ULONG CDECL ldap_add_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
421 #define ldap_add_ext_s WINELIB_NAME_AW(ldap_add_ext_s)
422 ULONG CDECL ldap_add_sA(LDAP*,PCHAR,LDAPModA*[]);
423 ULONG CDECL ldap_add_sW(LDAP*,PWCHAR,LDAPModW*[]);
424 #define ldap_add_s WINELIB_NAME_AW(ldap_add_s)
425 ULONG CDECL ldap_bindA(LDAP*,PCHAR,PCHAR,ULONG);
426 ULONG CDECL ldap_bindW(LDAP*,PWCHAR,PWCHAR,ULONG);
427 #define ldap_bind WINELIB_NAME_AW(ldap_bind)
428 ULONG CDECL ldap_bind_sA(LDAP*,PCHAR,PCHAR,ULONG);
429 ULONG CDECL ldap_bind_sW(LDAP*,PWCHAR,PWCHAR,ULONG);
430 #define ldap_bind_s WINELIB_NAME_AW(ldap_bind_s)
431 ULONG CDECL ldap_check_filterA(LDAP*,PCHAR);
432 ULONG CDECL ldap_check_filterW(LDAP*,PWCHAR);
433 #define ldap_check_filter WINELIB_NAME_AW(ldap_check_filter)
434 ULONG CDECL ldap_cleanup(HANDLE);
435 ULONG CDECL ldap_close_extended_op(LDAP*,ULONG);
436 LDAP* CDECL ldap_conn_from_msg(LDAP*,LDAPMessage*);
437 ULONG CDECL ldap_compareA(LDAP*,PCHAR,PCHAR,PCHAR);
438 ULONG CDECL ldap_compareW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
439 #define ldap_compare WINELIB_NAME_AW(ldap_compare)
440 ULONG CDECL ldap_compare_extA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
441 ULONG CDECL ldap_compare_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
442 #define ldap_compare_ext WINELIB_NAME_AW(ldap_compare_ext)
443 ULONG CDECL ldap_compare_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*);
444 ULONG CDECL ldap_compare_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*);
445 #define ldap_compare_ext_s WINELIB_NAME_AW(ldap_compare_ext_s)
446 ULONG CDECL ldap_compare_sA(LDAP*,PCHAR,PCHAR,PCHAR);
447 ULONG CDECL ldap_compare_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
448 #define ldap_compare_s WINELIB_NAME_AW(ldap_compare_s)
449 ULONG CDECL ldap_connect(LDAP*,struct l_timeval*);
450 ULONG CDECL ldap_control_freeA(LDAPControlA*);
451 ULONG CDECL ldap_control_freeW(LDAPControlW*);
452 #define ldap_control_free WINELIB_NAME_AW(ldap_control_free)
453 ULONG CDECL ldap_controls_freeA(LDAPControlA**);
454 ULONG CDECL ldap_controls_freeW(LDAPControlW**);
455 #define ldap_controls_free WINELIB_NAME_AW(ldap_controls_free)
456 ULONG CDECL ldap_count_entries(LDAP*,LDAPMessage*);
457 ULONG CDECL ldap_count_references(LDAP*,LDAPMessage*);
458 ULONG CDECL ldap_count_values_len(struct berval**);
459 ULONG CDECL ldap_count_valuesA(PCHAR*);
460 ULONG CDECL ldap_count_valuesW(PWCHAR*);
461 #define ldap_count_values WINELIB_NAME_AW(ldap_count_values)
462 ULONG CDECL ldap_create_page_controlA(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlA*);
463 ULONG CDECL ldap_create_page_controlW(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlW*);
464 #define ldap_create_page_control WINELIB_NAME_AW(ldap_create_page_control)
465 ULONG CDECL ldap_create_sort_controlA(PLDAP,PLDAPSortKeyA*,UCHAR,PLDAPControlA*);
466 ULONG CDECL ldap_create_sort_controlW(PLDAP,PLDAPSortKeyW*,UCHAR,PLDAPControlW*);
467 #define ldap_create_sort_control WINELIB_NAME_AW(ldap_create_sort_control)
468 INT CDECL ldap_create_vlv_controlA(PLDAP,PLDAPVLVInfo,UCHAR,PLDAPControlA*);
469 INT CDECL ldap_create_vlv_controlW(PLDAP,PLDAPVLVInfo,UCHAR,PLDAPControlW*);
470 #define ldap_create_vlv_control WINELIB_NAME_AW(ldap_create_vlv_control)
471 ULONG CDECL ldap_deleteA(LDAP*,PCHAR);
472 ULONG CDECL ldap_deleteW(LDAP*,PWCHAR);
473 #define ldap_delete WINELIB_NAME_AW(ldap_delete)
474 ULONG CDECL ldap_delete_extA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*,ULONG*);
475 ULONG CDECL ldap_delete_extW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*,ULONG*);
476 #define ldap_delete_ext WINELIB_NAME_AW(ldap_delete_ext)
477 ULONG CDECL ldap_delete_ext_sA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*);
478 ULONG CDECL ldap_delete_ext_sW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*);
479 #define ldap_delete_ext_s WINELIB_NAME_AW(ldap_delete_ext_s)
480 ULONG CDECL ldap_delete_sA(LDAP*,PCHAR);
481 ULONG CDECL ldap_delete_sW(LDAP*,PWCHAR);
482 #define ldap_delete_s WINELIB_NAME_AW(ldap_delete_s)
483 char* CDECL ldap_dn2ufnA(char*) __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
484 WCHAR* CDECL ldap_dn2ufnW(WCHAR*) __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
485 #define ldap_dn2ufn WINELIB_NAME_AW(ldap_dn2ufn)
486 ULONG CDECL ldap_encode_sort_controlA(PLDAP,PLDAPSortKeyA*,PLDAPControlA,BOOLEAN);
487 ULONG CDECL ldap_encode_sort_controlW(PLDAP,PLDAPSortKeyW*,PLDAPControlW,BOOLEAN);
488 #define ldap_encode_sort_control WINELIB_NAME_AW(ldap_encode_sort_control)
489 PCHAR CDECL ldap_err2stringA(ULONG);
490 PWCHAR CDECL ldap_err2stringW(ULONG);
491 #define ldap_err2string WINELIB_NAME_AW(ldap_err2string)
492 ULONG CDECL ldap_escape_filter_elementA(PCHAR,ULONG,PCHAR,ULONG);
493 ULONG CDECL ldap_escape_filter_elementW(PCHAR,ULONG,PWCHAR,ULONG);
494 #define ldap_escape_filter_element WINELIB_NAME_AW(ldap_escape_filter_element)
495 char** CDECL ldap_explode_dnA(char*,ULONG) __WINE_DEALLOC(ldap_value_freeA);
496 WCHAR** CDECL ldap_explode_dnW(WCHAR*,ULONG) __WINE_DEALLOC(ldap_value_freeW);
497 #define ldap_explode_dn WINELIB_NAME_AW(ldap_explode_dn)
498 ULONG CDECL ldap_extended_operationA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
499 ULONG CDECL ldap_extended_operationW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
500 #define ldap_extended_operation WINELIB_NAME_AW(ldap_extended_operation)
501 ULONG CDECL ldap_extended_operation_sA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,PCHAR*,struct berval**);
502 ULONG CDECL ldap_extended_operation_sW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,PWCHAR*,struct berval**);
503 #define ldap_extended_operation_s WINELIB_NAME_AW(ldap_extended_operation_s)
504 char* CDECL ldap_first_attributeA(LDAP*,LDAPMessage*,BerElement**)
505 __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
506 WCHAR* CDECL ldap_first_attributeW(LDAP*,LDAPMessage*,BerElement**)
507 __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
508 #define ldap_first_attribute WINELIB_NAME_AW(ldap_first_attribute)
509 LDAPMessage* CDECL ldap_first_entry(LDAP*,LDAPMessage*);
510 LDAPMessage* CDECL ldap_first_reference(LDAP*,LDAPMessage*);
511 ULONG CDECL ldap_free_controlsA(LDAPControlA**);
512 ULONG CDECL ldap_free_controlsW(LDAPControlW**);
513 #define ldap_free_controls WINELIB_NAME_AW(ldap_free_controls)
514 char* CDECL ldap_get_dnA(LDAP*,LDAPMessage*) __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
515 WCHAR* CDECL ldap_get_dnW(LDAP*,LDAPMessage*) __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
516 #define ldap_get_dn WINELIB_NAME_AW(ldap_get_dn)
517 ULONG CDECL ldap_get_next_page(PLDAP,PLDAPSearch,ULONG,ULONG*);
518 ULONG CDECL ldap_get_next_page_s(PLDAP,PLDAPSearch,struct l_timeval*,ULONG,ULONG*,LDAPMessage**);
519 ULONG CDECL ldap_get_optionA(LDAP*,int,void*);
520 ULONG CDECL ldap_get_optionW(LDAP*,int,void*);
521 #define ldap_get_option WINELIB_NAME_AW(ldap_get_option)
522 ULONG CDECL ldap_get_paged_count(LDAP*,PLDAPSearch,ULONG*,LDAPMessage*);
523 char** CDECL ldap_get_valuesA(LDAP*,LDAPMessage*,char*) __WINE_DEALLOC(ldap_value_freeA);
524 WCHAR** CDECL ldap_get_valuesW(LDAP*,LDAPMessage*,WCHAR*) __WINE_DEALLOC(ldap_value_freeW);
525 #define ldap_get_values WINELIB_NAME_AW(ldap_get_values)
526 struct berval ** CDECL ldap_get_values_lenA(LDAP*,LDAPMessage*,char*)
527 __WINE_DEALLOC(ldap_value_free_len);
528 struct berval ** CDECL ldap_get_values_lenW(LDAP*,LDAPMessage*,WCHAR*)
529 __WINE_DEALLOC(ldap_value_free_len);
530 #define ldap_get_values_len WINELIB_NAME_AW(ldap_get_values_len)
531 LDAP* CDECL ldap_initA(const PCHAR,ULONG);
532 LDAP* CDECL ldap_initW(const PWCHAR,ULONG);
533 #define ldap_init WINELIB_NAME_AW(ldap_init)
534 ULONG CDECL ldap_modifyA(LDAP*,PCHAR,LDAPModA*[]);
535 ULONG CDECL ldap_modifyW(LDAP*,PWCHAR,LDAPModW*[]);
536 #define ldap_modify WINELIB_NAME_AW(ldap_modify)
537 ULONG CDECL ldap_modify_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
538 ULONG CDECL ldap_modify_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
539 #define ldap_modify_ext WINELIB_NAME_AW(ldap_modify_ext)
540 ULONG CDECL ldap_modify_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
541 ULONG CDECL ldap_modify_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
542 #define ldap_modify_ext_s WINELIB_NAME_AW(ldap_modify_ext_s)
543 ULONG CDECL ldap_modify_sA(LDAP*,PCHAR,LDAPModA*[]);
544 ULONG CDECL ldap_modify_sW(LDAP*,PWCHAR,LDAPModW*[]);
545 #define ldap_modify_s WINELIB_NAME_AW(ldap_modify_s)
546 ULONG CDECL ldap_modrdnA(LDAP*,PCHAR,PCHAR);
547 ULONG CDECL ldap_modrdnW(LDAP*,PWCHAR,PWCHAR);
548 #define ldap_modrdn WINELIB_NAME_AW(ldap_modrdn)
549 ULONG CDECL ldap_modrdn2A(LDAP*,PCHAR,PCHAR,INT);
550 ULONG CDECL ldap_modrdn2W(LDAP*,PWCHAR,PWCHAR,INT);
551 #define ldap_modrdn2 WINELIB_NAME_AW(ldap_modrdn2)
552 ULONG CDECL ldap_modrdn2_sA(LDAP*,PCHAR,PCHAR,INT);
553 ULONG CDECL ldap_modrdn2_sW(LDAP*,PWCHAR,PWCHAR,INT);
554 #define ldap_modrdn2_s WINELIB_NAME_AW(ldap_modrdn2_s)
555 ULONG CDECL ldap_modrdn_sA(LDAP*,PCHAR,PCHAR);
556 ULONG CDECL ldap_modrdn_sW(LDAP*,PWCHAR,PWCHAR);
557 #define ldap_modrdn_s WINELIB_NAME_AW(ldap_modrdn_s)
558 ULONG CDECL ldap_msgfree(LDAPMessage*);
559 char* CDECL ldap_next_attributeA(LDAP*,LDAPMessage*,BerElement*)
560 __WINE_DEALLOC(ldap_memfreeA) __WINE_MALLOC;
561 WCHAR* CDECL ldap_next_attributeW(LDAP*,LDAPMessage*,BerElement*)
562 __WINE_DEALLOC(ldap_memfreeW) __WINE_MALLOC;
563 #define ldap_next_attribute WINELIB_NAME_AW(ldap_next_attribute)
564 LDAPMessage * CDECL ldap_next_entry(LDAP*,LDAPMessage*);
565 LDAP * CDECL ldap_openA(PCHAR,ULONG);
566 LDAP * CDECL ldap_openW(PWCHAR,ULONG);
567 #define ldap_open WINELIB_NAME_AW(ldap_open)
568 ULONG CDECL ldap_parse_extended_resultA(LDAP*,LDAPMessage*,PCHAR*,struct berval**,BOOLEAN);
569 ULONG CDECL ldap_parse_extended_resultW(LDAP*,LDAPMessage*,PWCHAR*,struct berval**,BOOLEAN);
570 #define ldap_parse_extended_result WINELIB_NAME_AW(ldap_parse_extended_result)
571 ULONG CDECL ldap_parse_page_controlA(LDAP*,PLDAPControlA*,ULONG*,struct berval**);
572 ULONG CDECL ldap_parse_page_controlW(LDAP*,PLDAPControlW*,ULONG*,struct berval**);
573 #define ldap_parse_page_control WINELIB_NAME_AW(ldap_parse_page_control)
574 ULONG CDECL ldap_parse_referenceA(LDAP*,LDAPMessage*,PCHAR**);
575 ULONG CDECL ldap_parse_referenceW(LDAP*,LDAPMessage*,PWCHAR**);
576 #define ldap_parse_reference WINELIB_NAME_AW(ldap_parse_reference)
577 ULONG CDECL ldap_result2error(LDAP*,LDAPMessage*,ULONG);
578 ULONG CDECL ldap_parse_resultA(LDAP*,LDAPMessage*,ULONG*,PCHAR*,PCHAR*,PCHAR**,PLDAPControlA**,BOOLEAN);
579 ULONG CDECL ldap_parse_resultW(LDAP*,LDAPMessage*,ULONG*,PWCHAR*,PWCHAR*,PWCHAR**,PLDAPControlW**,BOOLEAN);
580 #define ldap_parse_result WINELIB_NAME_AW(ldap_parse_result)
581 ULONG CDECL ldap_parse_sort_controlA(LDAP*,PLDAPControlA*,ULONG*,PCHAR*);
582 ULONG CDECL ldap_parse_sort_controlW(LDAP*,PLDAPControlW*,ULONG*,PWCHAR*);
583 #define ldap_parse_sort_control WINELIB_NAME_AW(ldap_parse_sort_control)
584 INT CDECL ldap_parse_vlv_controlA(PLDAP,PLDAPControlA*,PULONG,PULONG,PBERVAL*,PINT);
585 INT CDECL ldap_parse_vlv_controlW(PLDAP,PLDAPControlW*,PULONG,PULONG,PBERVAL*,PINT);
586 #define ldap_parse_vlv_control WINELIB_NAME_AW(ldap_parse_vlv_control)
587 void CDECL ldap_perror(LDAP*,const PCHAR);
588 ULONG CDECL ldap_rename_extA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*,ULONG*);
589 ULONG CDECL ldap_rename_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*,ULONG*);
590 #define ldap_rename_ext WINELIB_NAME_AW(ldap_rename_ext)
591 ULONG CDECL ldap_rename_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*);
592 ULONG CDECL ldap_rename_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*);
593 #define ldap_rename_ext_s WINELIB_NAME_AW(ldap_rename_ext_s)
594 ULONG CDECL ldap_result(LDAP*,ULONG,ULONG,struct l_timeval*,LDAPMessage**);
595 ULONG CDECL ldap_result2error(LDAP*,LDAPMessage*,ULONG);
596 ULONG CDECL ldap_sasl_bindA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,int*);
597 ULONG CDECL ldap_sasl_bindW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,int*);
598 #define ldap_sasl_bind WINELIB_NAME_AW(ldap_sasl_bind)
599 ULONG CDECL ldap_sasl_bind_sA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,PBERVAL*);
600 ULONG CDECL ldap_sasl_bind_sW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,PBERVAL*);
601 #define ldap_sasl_bind_s WINELIB_NAME_AW(ldap_sasl_bind_s)
602 ULONG CDECL ldap_simple_bindA(LDAP*,PCHAR,PCHAR);
603 ULONG CDECL ldap_simple_bindW(LDAP*,PWCHAR,PWCHAR);
604 #define ldap_simple_bind WINELIB_NAME_AW(ldap_simple_bind)
605 ULONG CDECL ldap_simple_bind_sA(LDAP*,PCHAR,PCHAR);
606 ULONG CDECL ldap_simple_bind_sW(LDAP*,PWCHAR,PWCHAR);
607 #define ldap_simple_bind_s WINELIB_NAME_AW(ldap_simple_bind_s)
608 ULONG CDECL ldap_search_abandon_page(PLDAP,PLDAPSearch);
609 ULONG CDECL ldap_searchA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG);
610 ULONG CDECL ldap_searchW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG);
611 #define ldap_search WINELIB_NAME_AW(ldap_search)
612 ULONG CDECL ldap_search_extA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
613 PLDAPControlA*,ULONG,ULONG,ULONG*);
614 ULONG CDECL ldap_search_extW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
615 PLDAPControlW*,ULONG,ULONG,ULONG*);
616 #define ldap_search_ext WINELIB_NAME_AW(ldap_search_ext)
617 ULONG CDECL ldap_search_ext_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
618 PLDAPControlA*,struct l_timeval*,ULONG,LDAPMessage**);
619 ULONG CDECL ldap_search_ext_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
620 PLDAPControlW*,struct l_timeval*,ULONG,LDAPMessage**);
621 #define ldap_search_ext_s WINELIB_NAME_AW(ldap_search_ext_s)
622 PLDAPSearch CDECL ldap_search_init_pageA(PLDAP,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
623 PLDAPControlA*,ULONG,ULONG,PLDAPSortKeyA*);
624 PLDAPSearch CDECL ldap_search_init_pageW(PLDAP,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
625 PLDAPControlW*,ULONG,ULONG, PLDAPSortKeyW*);
626 #define ldap_search_init_page WINELIB_NAME_AW(ldap_search_init_page)
627 ULONG CDECL ldap_search_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,LDAPMessage**);
628 ULONG CDECL ldap_search_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,LDAPMessage**);
629 #define ldap_search_s WINELIB_NAME_AW(ldap_search_s)
630 ULONG CDECL ldap_search_stA(LDAP*,const PCHAR,ULONG,const PCHAR,PCHAR[],ULONG,
631 struct l_timeval*,LDAPMessage**);
632 ULONG CDECL ldap_search_stW(LDAP*,const PWCHAR,ULONG,const PWCHAR,PWCHAR[],ULONG,
633 struct l_timeval*,LDAPMessage**);
634 #define ldap_search_st WINELIB_NAME_AW(ldap_search_st)
635 ULONG CDECL ldap_set_optionA(LDAP*,int,void*);
636 ULONG CDECL ldap_set_optionW(LDAP*,int,void*);
637 #define ldap_set_option WINELIB_NAME_AW(ldap_set_option)
638 LDAP * CDECL ldap_sslinitA(PCHAR,ULONG,int);
639 LDAP * CDECL ldap_sslinitW(PWCHAR,ULONG,int);
640 #define ldap_sslinit WINELIB_NAME_AW(ldap_sslinit)
641 ULONG CDECL ldap_start_tls_sA(LDAP*,PULONG,LDAPMessage**,PLDAPControlA*,PLDAPControlA*);
642 ULONG CDECL ldap_start_tls_sW(LDAP*,PULONG,LDAPMessage**,PLDAPControlW*,PLDAPControlW*);
643 #define ldap_start_tls_s WINELIB_NAME_AW(ldap_start_tls_s)
644 ULONG CDECL ldap_startup(PLDAP_VERSION_INFO,HANDLE*);
645 BOOLEAN CDECL ldap_stop_tls_s(LDAP*);
646 ULONG CDECL ldap_ufn2dnA(PCHAR,PCHAR*);
647 ULONG CDECL ldap_ufn2dnW(PWCHAR,PWCHAR*);
648 #define ldap_ufn2dn WINELIB_NAME_AW(ldap_ufn2dn)
649 ULONG CDECL ldap_unbind(LDAP*);
650 ULONG CDECL ldap_unbind_s(LDAP*);
652 void CDECL ber_bvfree(BERVAL*);
654 ULONG CDECL LdapGetLastError(void);
655 ULONG CDECL LdapMapErrorToWin32(ULONG);
656 int CDECL LdapUnicodeToUTF8(LPCWSTR,int,LPSTR,int);
657 int CDECL LdapUTF8ToUnicode(LPCSTR,int,LPWSTR,int);
659 #ifdef __cplusplus
661 #endif
663 #endif /* __WINE_WINLDAP_H */