- Added Find functions
[wine/gsoc_dplay.git] / include / winldap.h
blob6c1e15a613be9d82b5cdae533464cde5a43f7de1
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_WINLDAP_H
20 #define __WINE_WINLDAP_H
22 typedef enum {
23 LDAP_SUCCESS = 0x00,
24 LDAP_OPERATIONS_ERROR = 0x01,
25 LDAP_PROTOCOL_ERROR = 0x02,
26 LDAP_TIMELIMIT_EXCEEDED = 0x03,
27 LDAP_SIZELIMIT_EXCEEDED = 0x04,
28 LDAP_COMPARE_FALSE = 0x05,
29 LDAP_COMPARE_TRUE = 0x06,
30 LDAP_AUTH_METHOD_NOT_SUPPORTED = 0x07,
31 LDAP_STRONG_AUTH_REQUIRED = 0x08,
32 LDAP_REFERRAL_V2 = 0x09,
33 LDAP_PARTIAL_RESULTS = 0x09,
34 LDAP_REFERRAL = 0x0a,
35 LDAP_ADMIN_LIMIT_EXCEEDED = 0x0b,
36 LDAP_UNAVAILABLE_CRIT_EXTENSION = 0x0c,
37 LDAP_CONFIDENTIALITY_REQUIRED = 0x0d,
38 LDAP_SASL_BIND_IN_PROGRESS = 0x0e,
40 LDAP_NO_SUCH_ATTRIBUTE = 0x10,
41 LDAP_UNDEFINED_TYPE = 0x11,
42 LDAP_INAPPROPRIATE_MATCHING = 0x12,
43 LDAP_CONSTRAINT_VIOLATION = 0x13,
44 LDAP_ATTRIBUTE_OR_VALUE_EXISTS = 0x14,
45 LDAP_INVALID_SYNTAX = 0x15,
47 LDAP_NO_SUCH_OBJECT = 0x20,
48 LDAP_ALIAS_PROBLEM = 0x21,
49 LDAP_INVALID_DN_SYNTAX = 0x22,
50 LDAP_IS_LEAF = 0x23,
51 LDAP_ALIAS_DEREF_PROBLEM = 0x24,
53 LDAP_INAPPROPRIATE_AUTH = 0x30,
54 LDAP_INVALID_CREDENTIALS = 0x31,
55 LDAP_INSUFFICIENT_RIGHTS = 0x32,
56 LDAP_BUSY = 0x33,
57 LDAP_UNAVAILABLE = 0x34,
58 LDAP_UNWILLING_TO_PERFORM = 0x35,
59 LDAP_LOOP_DETECT = 0x36,
60 LDAP_SORT_CONTROL_MISSING = 0x3C,
61 LDAP_OFFSET_RANGE_ERROR = 0x3D,
63 LDAP_NAMING_VIOLATION = 0x40,
64 LDAP_OBJECT_CLASS_VIOLATION = 0x41,
65 LDAP_NOT_ALLOWED_ON_NONLEAF = 0x42,
66 LDAP_NOT_ALLOWED_ON_RDN = 0x43,
67 LDAP_ALREADY_EXISTS = 0x44,
68 LDAP_NO_OBJECT_CLASS_MODS = 0x45,
69 LDAP_RESULTS_TOO_LARGE = 0x46,
70 LDAP_AFFECTS_MULTIPLE_DSAS = 0x47,
72 LDAP_VIRTUAL_LIST_VIEW_ERROR = 0x4c,
74 LDAP_OTHER = 0x50,
75 LDAP_SERVER_DOWN = 0x51,
76 LDAP_LOCAL_ERROR = 0x52,
77 LDAP_ENCODING_ERROR = 0x53,
78 LDAP_DECODING_ERROR = 0x54,
79 LDAP_TIMEOUT = 0x55,
80 LDAP_AUTH_UNKNOWN = 0x56,
81 LDAP_FILTER_ERROR = 0x57,
82 LDAP_USER_CANCELLED = 0x58,
83 LDAP_PARAM_ERROR = 0x59,
84 LDAP_NO_MEMORY = 0x5a,
85 LDAP_CONNECT_ERROR = 0x5b,
86 LDAP_NOT_SUPPORTED = 0x5c,
87 LDAP_NO_RESULTS_RETURNED = 0x5e,
88 LDAP_CONTROL_NOT_FOUND = 0x5d,
89 LDAP_MORE_RESULTS_TO_RETURN = 0x5f,
91 LDAP_CLIENT_LOOP = 0x60,
92 LDAP_REFERRAL_LIMIT_EXCEEDED = 0x61
93 } LDAP_RETCODE;
95 #define LDAP_SCOPE_BASE 0x00
96 #define LDAP_SCOPE_ONELEVEL 0x01
97 #define LDAP_SCOPE_SUBTREE 0x02
99 typedef struct berelement
101 PCHAR opaque;
102 } BerElement;
104 #define LDAP_OPT_API_INFO 0x00
105 #define LDAP_OPT_DESC 0x01
106 #define LDAP_OPT_DEREF 0x02
107 #define LDAP_OPT_SIZELIMIT 0x03
108 #define LDAP_OPT_TIMELIMIT 0x04
109 #define LDAP_OPT_THREAD_FN_PTRS 0x05
110 #define LDAP_OPT_REBIND_FN 0x06
111 #define LDAP_OPT_REBIND_ARG 0x07
112 #define LDAP_OPT_REFERRALS 0x08
113 #define LDAP_OPT_RESTART 0x09
114 #define LDAP_OPT_SSL 0x0a
115 #define LDAP_OPT_IO_FN_PTRS 0x0b
116 #define LDAP_OPT_CACHE_FN_PTRS 0x0d
117 #define LDAP_OPT_CACHE_STRATEGY 0x0e
118 #define LDAP_OPT_CACHE_ENABLE 0x0f
119 #define LDAP_OPT_REFERRAL_HOP_LIMIT 0x10
120 #define LDAP_OPT_PROTOCOL_VERSION 0x11
121 #define LDAP_OPT_VERSION 0x11
122 #define LDAP_OPT_API_FEATURE_INFO 0x15
123 #define LDAP_OPT_HOST_NAME 0x30
124 #define LDAP_OPT_ERROR_NUMBER 0x31
125 #define LDAP_OPT_ERROR_STRING 0x32
126 #define LDAP_OPT_SERVER_ERROR 0x33
127 #define LDAP_OPT_SERVER_EXT_ERROR 0x34
128 #define LDAP_OPT_PING_KEEP_ALIVE 0x36
129 #define LDAP_OPT_PING_WAIT_TIME 0x37
130 #define LDAP_OPT_PING_LIMIT 0x38
131 #define LDAP_OPT_DNSDOMAIN_NAME 0x3b
132 #define LDAP_OPT_GETDSNAME_FLAGS 0x3d
133 #define LDAP_OPT_HOST_REACHABLE 0x3e
134 #define LDAP_OPT_PROMPT_CREDENTIALS 0x3f
135 #define LDAP_OPT_TCP_KEEPALIVE 0x40
136 #define LDAP_OPT_FAST_CONCURRENT_BIND 0x41
137 #define LDAP_OPT_SEND_TIMEOUT 0x42
138 #define LDAP_OPT_REFERRAL_CALLBACK 0x70
139 #define LDAP_OPT_CLIENT_CERTIFICATE 0x80
140 #define LDAP_OPT_SERVER_CERTIFICATE 0x81
141 #define LDAP_OPT_AUTO_RECONNECT 0x91
142 #define LDAP_OPT_SSPI_FLAGS 0x92
143 #define LDAP_OPT_SSL_INFO 0x93
144 #define LDAP_OPT_REF_DEREF_CONN_PER_MSG 0x94
145 #define LDAP_OPT_TLS LDAP_OPT_SSL
146 #define LDAP_OPT_TLS_INFO LDAP_OPT_SSL_INFO
147 #define LDAP_OPT_SIGN 0x95
148 #define LDAP_OPT_ENCRYPT 0x96
149 #define LDAP_OPT_SASL_METHOD 0x97
150 #define LDAP_OPT_AREC_EXCLUSIVE 0x98
151 #define LDAP_OPT_SECURITY_CONTEXT 0x99
152 #define LDAP_OPT_ROOTDSE_CACHE 0x9a
154 #define LDAP_OPT_ON ((void *)1)
155 #define LDAP_OPT_OFF ((void *)0)
157 #define LDAP_VERSION1 1
158 #define LDAP_VERSION2 2
159 #define LDAP_VERSION3 3
160 #define LDAP_VERSION LDAP_VERSION2
162 #define LDAP_MSG_ONE 0
163 #define LDAP_MSG_ALL 1
164 #define LDAP_MSG_RECEIVED 2
166 #define LDAP_RES_BIND 0x61
167 #define LDAP_RES_SEARCH_ENTRY 0x64
168 #define LDAP_RES_SEARCH_RESULT 0x65
169 #define LDAP_RES_MODIFY 0x67
170 #define LDAP_RES_ADD 0x69
171 #define LDAP_RES_DELETE 0x6b
172 #define LDAP_RES_MODRDN 0x6d
173 #define LDAP_RES_COMPARE 0x6f
174 #define LDAP_RES_SESSION 0x72
175 #define LDAP_RES_REFERRAL 0x73
176 #define LDAP_RES_EXTENDED 0x78
177 #define LDAP_RES_ANY (-1)
179 typedef struct ldap
181 struct
183 UINT_PTR sb_sd;
184 UCHAR Reserved1[41];
185 ULONG_PTR sb_naddr;
186 UCHAR Reserved2[24];
187 } ld_sb;
189 PCHAR ld_host;
190 ULONG ld_version;
191 UCHAR ld_lberoptions;
192 ULONG ld_deref;
193 ULONG ld_timelimit;
194 ULONG ld_sizelimit;
195 ULONG ld_errno;
196 PCHAR ld_matched;
197 PCHAR ld_error;
198 ULONG ld_msgid;
199 UCHAR Reserved3[25];
200 ULONG ld_cldaptries;
201 ULONG ld_cldaptimeout;
202 ULONG ld_refhoplimit;
203 ULONG ld_options;
204 } LDAP, *PLDAP;
206 #define LDAP_MOD_ADD 0x00
207 #define LDAP_MOD_DELETE 0x01
208 #define LDAP_MOD_REPLACE 0x02
209 #define LDAP_MOD_BVALUES 0x80
211 typedef struct ldapmodA {
212 ULONG mod_op;
213 PCHAR mod_type;
214 union {
215 PCHAR *modv_strvals;
216 struct berval **modv_bvals;
217 } mod_vals;
218 } LDAPModA, *PLDAPModA;
220 typedef struct ldapmodW {
221 ULONG mod_op;
222 PWCHAR mod_type;
223 union {
224 PWCHAR *modv_strvals;
225 struct berval **modv_bvals;
226 } mod_vals;
227 } LDAPModW, *PLDAPModW;
229 DECL_WINELIB_TYPE_AW(LDAPMod)
230 DECL_WINELIB_TYPE_AW(PLDAPMod)
232 typedef struct l_timeval
234 LONG tv_sec;
235 LONG tv_usec;
236 } LDAP_TIMEVAL, *PLDAP_TIMEVAL;
238 typedef struct ldapmsg
240 ULONG lm_msgid;
241 ULONG lm_msgtype;
243 PVOID lm_ber;
245 struct ldapmsg *lm_chain;
246 struct ldapmsg *lm_next;
247 ULONG lm_time;
249 PLDAP Connection;
250 PVOID Request;
251 ULONG lm_returncode;
252 USHORT lm_referral;
253 BOOLEAN lm_chased;
254 BOOLEAN lm_eom;
255 BOOLEAN ConnectionReferenced;
256 } LDAPMessage, *PLDAPMessage;
258 #define LAPI_MAJOR_VER1 1
259 #define LAPI_MINOR_VER1 1
261 typedef struct ldap_version_info
263 ULONG lv_size;
264 ULONG lv_major;
265 ULONG lv_minor;
266 } LDAP_VERSION_INFO, *PLDAP_VERSION_INFO;
268 typedef struct berval
270 ULONG bv_len;
271 PCHAR bv_val;
272 } LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, BerValue;
274 typedef struct ldapcontrolA
276 PCHAR ldctl_oid;
277 struct berval ldctl_value;
278 BOOLEAN ldctl_iscritical;
279 } LDAPControlA, *PLDAPControlA;
281 typedef struct ldapcontrolW
283 PWCHAR ldctl_oid;
284 struct berval ldctl_value;
285 BOOLEAN ldctl_iscritical;
286 } LDAPControlW, *PLDAPControlW;
288 DECL_WINELIB_TYPE_AW(LDAPControl)
289 DECL_WINELIB_TYPE_AW(PLDAPControl)
291 typedef struct ldapvlvinfo
293 int ldvlv_version;
294 ULONG ldvlv_before_count;
295 ULONG ldvlv_after_count;
296 ULONG ldvlv_offset;
297 ULONG ldvlv_count;
298 PBERVAL ldvlv_attrvalue;
299 PBERVAL ldvlv_context;
300 VOID *ldvlv_extradata;
301 } LDAPVLVInfo, *PLDAPVLVInfo;
303 typedef struct ldapsearch LDAPSearch, *PLDAPSearch;
305 typedef struct ldapsortkeyA
307 PCHAR sk_attrtype;
308 PCHAR sk_matchruleoid;
309 BOOLEAN sk_reverseorder;
310 } LDAPSortKeyA, *PLDAPSortKeyA;
312 typedef struct ldapsortkeyW
314 PWCHAR sk_attrtype;
315 PWCHAR sk_matchruleoid;
316 BOOLEAN sk_reverseorder;
317 } LDAPSortKeyW, *PLDAPSortKeyW;
319 DECL_WINELIB_TYPE_AW(LDAPSortKey)
320 DECL_WINELIB_TYPE_AW(PLDAPSortKey)
322 #define LDAP_API_INFO_VERSION 1
324 typedef struct ldapapiinfoA
326 int ldapai_info_version;
327 int ldapai_api_version;
328 int ldapai_protocol_version;
329 char **ldapai_extensions;
330 char *ldapai_vendor_name;
331 int ldapai_vendor_version;
332 } LDAPAPIInfoA;
334 typedef struct ldapapiinfoW
336 int ldapai_info_version;
337 int ldapai_api_version;
338 int ldapai_protocol_version;
339 PWCHAR *ldapai_extensions;
340 PWCHAR ldapai_vendor_name;
341 int ldapai_vendor_version;
342 } LDAPAPIInfoW;
344 DECL_WINELIB_TYPE_AW(LDAPAPIInfo)
346 #define LDAP_FEATURE_INFO_VERSION 1
348 typedef struct ldap_apifeature_infoA
350 int ldapaif_info_version;
351 char *ldapaif_name;
352 int ldapaif_version;
353 } LDAPAPIFeatureInfoA;
355 typedef struct ldap_apifeature_infoW
357 int ldapaif_info_version;
358 PWCHAR ldapaif_name;
359 int ldapaif_version;
360 } LDAPAPIFeatureInfoW;
362 DECL_WINELIB_TYPE_AW(LDAPAPIFeatureInfo)
364 LDAP *cldap_openA(PCHAR,ULONG);
365 LDAP *cldap_openW(PWCHAR,ULONG);
366 #define cldap_open WINELIB_NAME_AW(cldap_open)
367 ULONG ldap_abandon(LDAP*,ULONG);
368 ULONG ldap_addA(LDAP*,PCHAR,LDAPModA*[]);
369 ULONG ldap_addW(LDAP*,PWCHAR,LDAPModW*[]);
370 #define ldap_add WINELIB_NAME_AW(ldap_add)
371 ULONG ldap_add_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
372 ULONG ldap_add_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
373 #define ldap_add_ext WINELIB_NAME_AW(ldap_add_ext)
374 ULONG ldap_add_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
375 ULONG ldap_add_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
376 #define ldap_add_ext_s WINELIB_NAME_AW(ldap_add_ext_s)
377 ULONG ldap_add_sA(LDAP*,PCHAR,LDAPModA*[]);
378 ULONG ldap_add_sW(LDAP*,PWCHAR,LDAPModW*[]);
379 #define ldap_add_s WINELIB_NAME_AW(ldap_add_s)
380 ULONG ldap_bindA(LDAP*,PCHAR,PCHAR,ULONG);
381 ULONG ldap_bindW(LDAP*,PWCHAR,PWCHAR,ULONG);
382 #define ldap_bind WINELIB_NAME_AW(ldap_bind)
383 ULONG ldap_bind_sA(LDAP*,PCHAR,PCHAR,ULONG);
384 ULONG ldap_bind_sW(LDAP*,PWCHAR,PWCHAR,ULONG);
385 #define ldap_bind_s WINELIB_NAME_AW(ldap_bind_s)
386 ULONG ldap_check_filterA(LDAP*,PCHAR);
387 ULONG ldap_check_filterW(LDAP*,PWCHAR);
388 #define ldap_check_filter WINELIB_NAME_AW(ldap_check_filter)
389 ULONG ldap_cleanup(HANDLE);
390 ULONG ldap_close_extended_op(LDAP*,ULONG);
391 LDAP *ldap_conn_from_msg(LDAP*,LDAPMessage*);
392 ULONG ldap_compareA(LDAP*,PCHAR,PCHAR,PCHAR);
393 ULONG ldap_compareW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
394 #define ldap_compare WINELIB_NAME_AW(ldap_compare)
395 ULONG ldap_compare_extA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
396 ULONG ldap_compare_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
397 #define ldap_compare_ext WINELIB_NAME_AW(ldap_compare_ext)
398 ULONG ldap_compare_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*);
399 ULONG ldap_compare_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*);
400 #define ldap_compare_ext_s WINELIB_NAME_AW(ldap_compare_ext_s)
401 ULONG ldap_compare_sA(LDAP*,PCHAR,PCHAR,PCHAR);
402 ULONG ldap_compare_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR);
403 #define ldap_compare_s WINELIB_NAME_AW(ldap_compare_s)
404 ULONG ldap_connect(LDAP*,LDAP_TIMEVAL*);
405 ULONG ldap_control_freeA(LDAPControlA*);
406 ULONG ldap_control_freeW(LDAPControlW*);
407 #define ldap_control_free WINELIB_NAME_AW(ldap_control_free)
408 ULONG ldap_controls_freeA(LDAPControlA**);
409 ULONG ldap_controls_freeW(LDAPControlW**);
410 #define ldap_controls_free WINELIB_NAME_AW(ldap_controls_free)
411 ULONG ldap_count_entries(LDAP*,LDAPMessage*);
412 ULONG ldap_count_references(LDAP*,LDAPMessage*);
413 ULONG ldap_count_values_len(struct berval**);
414 ULONG ldap_count_valuesA(PCHAR*);
415 ULONG ldap_count_valuesW(PWCHAR*);
416 #define ldap_count_values WINELIB_NAME_AW(ldap_count_values)
417 ULONG ldap_create_page_controlA(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlA*);
418 ULONG ldap_create_page_controlW(PLDAP,ULONG,struct berval*,UCHAR,PLDAPControlW*);
419 #define ldap_create_page_control WINELIB_NAME_AW(ldap_create_page_control)
420 ULONG ldap_create_sort_controlA(PLDAP,PLDAPSortKeyA*,UCHAR,PLDAPControlA*);
421 ULONG ldap_create_sort_controlW(PLDAP,PLDAPSortKeyW*,UCHAR,PLDAPControlW*);
422 #define ldap_create_sort_control WINELIB_NAME_AW(ldap_create_sort_control)
423 INT ldap_create_vlv_controlA(LDAP*,LDAPVLVInfo*,char,LDAPControlA**);
424 INT ldap_create_vlv_controlW(LDAP*,LDAPVLVInfo*,char,LDAPControlW**);
425 #define ldap_create_vlv_control WINELIB_NAME_AW(ldap_create_vlv_control)
426 ULONG ldap_deleteA(LDAP*,PCHAR);
427 ULONG ldap_deleteW(LDAP*,PWCHAR);
428 #define ldap_delete WINELIB_NAME_AW(ldap_delete)
429 ULONG ldap_delete_extA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*,ULONG*);
430 ULONG ldap_delete_extW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*,ULONG*);
431 #define ldap_delete_ext WINELIB_NAME_AW(ldap_delete_ext)
432 ULONG ldap_delete_ext_sA(LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*);
433 ULONG ldap_delete_ext_sW(LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*);
434 #define ldap_delete_ext_s WINELIB_NAME_AW(ldap_delete_ext_s)
435 ULONG ldap_delete_sA(LDAP*,PCHAR);
436 ULONG ldap_delete_sW(LDAP*,PWCHAR);
437 #define ldap_delete_s WINELIB_NAME_AW(ldap_delete_s)
438 PCHAR ldap_dn2ufnA(PCHAR);
439 PWCHAR ldap_dn2ufnW(PWCHAR);
440 #define ldap_dn2ufn WINELIB_NAME_AW(ldap_dn2ufn)
441 ULONG ldap_encode_sort_controlA(PLDAP,PLDAPSortKeyA*,PLDAPControlA,BOOLEAN);
442 ULONG ldap_encode_sort_controlW(PLDAP,PLDAPSortKeyW*,PLDAPControlW,BOOLEAN);
443 #define ldap_encode_sort_control WINELIB_NAME_AW(ldap_encode_sort_control)
444 PCHAR ldap_err2stringA(ULONG);
445 PWCHAR ldap_err2stringW(ULONG);
446 #define ldap_err2string WINELIB_NAME_AW(ldap_err2string)
447 ULONG ldap_escape_filter_elementA(PCHAR,ULONG,PCHAR,ULONG);
448 ULONG ldap_escape_filter_elementW(PCHAR,ULONG,PWCHAR,ULONG);
449 #define ldap_escape_filter_element WINELIB_NAME_AW(ldap_escape_filter_element)
450 PCHAR *ldap_explode_dnA(PCHAR,ULONG);
451 PWCHAR *ldap_explode_dnW(PWCHAR,ULONG);
452 #define ldap_explode_dn WINELIB_NAME_AW(ldap_explode_dn)
453 ULONG ldap_extended_operationA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
454 ULONG ldap_extended_operationW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
455 #define ldap_extended_operation WINELIB_NAME_AW(ldap_extended_operation)
456 ULONG ldap_extended_operation_sA(LDAP*,PCHAR,struct berval*,PLDAPControlA*,PLDAPControlA*,PCHAR*,struct berval**);
457 ULONG ldap_extended_operation_sW(LDAP*,PWCHAR,struct berval*,PLDAPControlW*,PLDAPControlW*,PWCHAR*,struct berval**);
458 #define ldap_extended_operation_s WINELIB_NAME_AW(ldap_extended_operation_s)
459 PCHAR ldap_first_attributeA(LDAP*,LDAPMessage*,BerElement**);
460 PWCHAR ldap_first_attributeW(LDAP*,LDAPMessage*,BerElement**);
461 #define ldap_first_attribute WINELIB_NAME_AW(ldap_first_attribute)
462 LDAPMessage *ldap_first_entry(LDAP*,LDAPMessage*);
463 LDAPMessage* ldap_first_reference(LDAP*,LDAPMessage*);
464 ULONG ldap_free_controlsA(LDAPControlA**);
465 ULONG ldap_free_controlsW(LDAPControlW**);
466 #define ldap_free_controls WINELIB_NAME_AW(ldap_free_controls)
467 PCHAR ldap_get_dnA(LDAP*,LDAPMessage*);
468 PWCHAR ldap_get_dnW(LDAP*,LDAPMessage*);
469 #define ldap_get_dn WINELIB_NAME_AW(ldap_get_dn)
470 ULONG ldap_get_next_page(LDAP*,PLDAPSearch,ULONG,ULONG*);
471 ULONG ldap_get_next_page_s(LDAP*,PLDAPSearch,struct l_timeval*,ULONG,ULONG*,LDAPMessage**);
472 ULONG ldap_get_optionA(LDAP*,int,void*);
473 ULONG ldap_get_optionW(LDAP*,int,void*);
474 #define ldap_get_option WINELIB_NAME_AW(ldap_get_option)
475 ULONG ldap_get_paged_count(LDAP*,PLDAPSearch,ULONG*,LDAPMessage*);
476 PCHAR *ldap_get_valuesA(LDAP*,LDAPMessage*,PCHAR);
477 PWCHAR *ldap_get_valuesW(LDAP*,LDAPMessage*,PWCHAR);
478 #define ldap_get_values WINELIB_NAME_AW(ldap_get_values)
479 struct berval **ldap_get_values_lenA(LDAP*,LDAPMessage*,PCHAR);
480 struct berval **ldap_get_values_lenW(LDAP*,LDAPMessage*,PWCHAR);
481 #define ldap_get_values_len WINELIB_NAME_AW(ldap_get_values_len)
482 LDAP *ldap_initA(const PCHAR,ULONG);
483 LDAP *ldap_initW(const PWCHAR,ULONG);
484 #define ldap_init WINELIB_NAME_AW(ldap_init)
485 VOID ldap_memfreeA(PCHAR);
486 VOID ldap_memfreeW(PWCHAR);
487 #define ldap_memfree WINELIB_NAME_AW(ldap_memfree)
488 ULONG ldap_modifyA(LDAP*,PCHAR,LDAPModA*[]);
489 ULONG ldap_modifyW(LDAP*,PWCHAR,LDAPModW*[]);
490 #define ldap_modify WINELIB_NAME_AW(ldap_modify)
491 ULONG ldap_modify_extA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
492 ULONG ldap_modify_extW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
493 #define ldap_modify_ext WINELIB_NAME_AW(ldap_modify_ext)
494 ULONG ldap_modify_ext_sA(LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
495 ULONG ldap_modify_ext_sW(LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
496 #define ldap_modify_ext_s WINELIB_NAME_AW(ldap_modify_ext_s)
497 ULONG ldap_modify_sA(LDAP*,PCHAR,LDAPModA*[]);
498 ULONG ldap_modify_sW(LDAP*,PWCHAR,LDAPModW*[]);
499 #define ldap_modify_s WINELIB_NAME_AW(ldap_modify_s)
500 ULONG ldap_modrdnA(LDAP*,PCHAR,PCHAR);
501 ULONG ldap_modrdnW(LDAP*,PWCHAR,PWCHAR);
502 #define ldap_modrdn WINELIB_NAME_AW(ldap_modrdn)
503 ULONG ldap_modrdn2A(LDAP*,PCHAR,PCHAR,INT);
504 ULONG ldap_modrdn2W(LDAP*,PWCHAR,PWCHAR,INT);
505 #define ldap_modrdn2 WINELIB_NAME_AW(ldap_modrdn2)
506 ULONG ldap_modrdn2_sA(LDAP*,PCHAR,PCHAR,INT);
507 ULONG ldap_modrdn2_sW(LDAP*,PWCHAR,PWCHAR,INT);
508 #define ldap_modrdn2_s WINELIB_NAME_AW(ldap_modrdn2_s)
509 ULONG ldap_modrdn_sA(LDAP*,PCHAR,PCHAR);
510 ULONG ldap_modrdn_sW(LDAP*,PWCHAR,PWCHAR);
511 #define ldap_modrdn_s WINELIB_NAME_AW(ldap_modrdn_s)
512 ULONG ldap_msgfree(LDAPMessage*);
513 PCHAR ldap_next_attributeA(LDAP*,LDAPMessage*,BerElement*);
514 PWCHAR ldap_next_attributeW(LDAP*,LDAPMessage*,BerElement*);
515 #define ldap_next_attribute WINELIB_NAME_AW(ldap_next_attribute)
516 LDAPMessage *ldap_next_entry(LDAP*,LDAPMessage*);
517 LDAP *ldap_openA(PCHAR,ULONG);
518 LDAP *ldap_openW(PWCHAR,ULONG);
519 #define ldap_open WINELIB_NAME_AW(ldap_open)
520 ULONG ldap_parse_extended_resultA(LDAP*,LDAPMessage*,PCHAR*,struct berval**,BOOLEAN);
521 ULONG ldap_parse_extended_resultW(LDAP*,LDAPMessage*,PWCHAR*,struct berval**,BOOLEAN);
522 #define ldap_parse_extended_result WINELIB_NAME_AW(ldap_parse_extended_result)
523 ULONG ldap_parse_page_controlA(LDAP*,PLDAPControlA*,ULONG*,struct berval**);
524 ULONG ldap_parse_page_controlW(LDAP*,PLDAPControlW*,ULONG*,struct berval**);
525 #define ldap_parse_page_control WINELIB_NAME_AW(ldap_parse_page_control)
526 ULONG ldap_parse_referenceA(LDAP*,LDAPMessage*,PCHAR**);
527 ULONG ldap_parse_referenceW(LDAP*,LDAPMessage*,PWCHAR**);
528 #define ldap_parse_reference WINELIB_NAME_AW(ldap_parse_reference)
529 ULONG ldap_result2error(LDAP*,LDAPMessage*,ULONG);
530 ULONG ldap_parse_resultA(LDAP*,LDAPMessage*,ULONG*,PCHAR*,PCHAR*,PCHAR**,PLDAPControlA**,BOOLEAN);
531 ULONG ldap_parse_resultW(LDAP*,LDAPMessage*,ULONG*,PWCHAR*,PWCHAR*,PWCHAR**,PLDAPControlW**,BOOLEAN);
532 #define ldap_parse_result WINELIB_NAME_AW(ldap_parse_result)
533 ULONG ldap_parse_sort_controlA(LDAP*,PLDAPControlA*,ULONG*,PCHAR*);
534 ULONG ldap_parse_sort_controlW(LDAP*,PLDAPControlW*,ULONG*,PWCHAR*);
535 #define ldap_parse_sort_control WINELIB_NAME_AW(ldap_parse_sort_control)
536 int ldap_parse_vlv_controlA(LDAP*,LDAPControlA**,unsigned long*,unsigned long*,struct berval**,int*);
537 int ldap_parse_vlv_controlW(LDAP*,LDAPControlW**,unsigned long*,unsigned long*,struct berval**,int*);
538 #define ldap_parse_vlv_control WINELIB_NAME_AW(ldap_parse_vlv_control)
539 void ldap_perror(LDAP*,const PCHAR);
540 ULONG ldap_rename_extA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*,ULONG*);
541 ULONG ldap_rename_extW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*,ULONG*);
542 #define ldap_rename_ext WINELIB_NAME_AW(ldap_rename_ext)
543 ULONG ldap_rename_ext_sA(LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*);
544 ULONG ldap_rename_ext_sW(LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*);
545 #define ldap_rename_ext_s WINELIB_NAME_AW(ldap_rename_ext_s)
546 ULONG ldap_result(LDAP*,ULONG,ULONG,struct l_timeval*,LDAPMessage**);
547 ULONG ldap_result2error(LDAP*,LDAPMessage*,ULONG);
548 ULONG ldap_sasl_bindA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,int*);
549 ULONG ldap_sasl_bindW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,int*);
550 #define ldap_sasl_bind WINELIB_NAME_AW(ldap_sasl_bind)
551 ULONG ldap_sasl_bind_sA(LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,PBERVAL*);
552 ULONG ldap_sasl_bind_sW(LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,PBERVAL*);
553 #define ldap_sasl_bind_s WINELIB_NAME_AW(ldap_sasl_bind_s)
554 ULONG ldap_simple_bindA(LDAP*,PCHAR,PCHAR);
555 ULONG ldap_simple_bindW(LDAP*,PWCHAR,PWCHAR);
556 #define ldap_simple_bind WINELIB_NAME_AW(ldap_simple_bind)
557 ULONG ldap_simple_bind_sA(LDAP*,PCHAR,PCHAR);
558 ULONG ldap_simple_bind_sW(LDAP*,PWCHAR,PWCHAR);
559 #define ldap_simple_bind_s WINELIB_NAME_AW(ldap_simple_bind_s)
560 ULONG ldap_search_abandon_page(PLDAP,PLDAPSearch);
561 ULONG ldap_searchA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG);
562 ULONG ldap_searchW(LDAP*,PWCHAR,ULONG,PWCHAR,PCHAR[],ULONG);
563 #define ldap_search WINELIB_NAME_AW(ldap_search)
564 ULONG ldap_search_extA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
565 PLDAPControlA*,ULONG,ULONG,ULONG*);
566 ULONG ldap_search_extW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
567 PLDAPControlW*,ULONG,ULONG,ULONG*);
568 #define ldap_search_ext WINELIB_NAME_AW(ldap_search_ext)
569 ULONG ldap_search_ext_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
570 PLDAPControlA*,struct l_timeval*,ULONG,LDAPMessage**);
571 ULONG ldap_search_ext_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
572 PLDAPControlW*,struct l_timeval*,ULONG,LDAPMessage**);
573 #define ldap_search_ext_s WINELIB_NAME_AW(ldap_search_ext_s)
574 PLDAPSearch ldap_search_init_pageA(PLDAP,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
575 PLDAPControlA*,ULONG,ULONG,PLDAPSortKeyA*);
576 PLDAPSearch ldap_search_init_pageW(PLDAP,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
577 PLDAPControlW*,ULONG,ULONG, PLDAPSortKeyW*);
578 #define ldap_search_init_page WINELIB_NAME_AW(ldap_search_init_page)
579 ULONG ldap_search_sA(LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,LDAPMessage**);
580 ULONG ldap_search_sW(LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,LDAPMessage**);
581 #define ldap_search_s WINELIB_NAME_AW(ldap_search_s)
582 ULONG ldap_search_stA(LDAP*,const PCHAR,ULONG,const PCHAR,PCHAR[],ULONG,
583 struct l_timeval*,LDAPMessage**);
584 ULONG ldap_search_stW(LDAP*,const PWCHAR,ULONG,const PWCHAR,PWCHAR[],ULONG,
585 struct l_timeval*,LDAPMessage**);
586 #define ldap_search_st WINELIB_NAME_AW(ldap_search_st)
587 ULONG ldap_set_optionA(LDAP*,int,void*);
588 ULONG ldap_set_optionW(LDAP*,int,void*);
589 #define ldap_set_option WINELIB_NAME_AW(ldap_set_option)
590 LDAP *ldap_sslinitA(PCHAR,ULONG,int);
591 LDAP *ldap_sslinitW(PWCHAR,ULONG,int);
592 #define ldap_sslinit WINELIB_NAME_AW(ldap_sslinit)
593 ULONG ldap_start_tls_sA(LDAP*,PULONG,LDAPMessage**,PLDAPControlA*,PLDAPControlA*);
594 ULONG ldap_start_tls_sW(LDAP*,PULONG,LDAPMessage**,PLDAPControlW*,PLDAPControlW*);
595 #define ldap_start_tls_s WINELIB_NAME_AW(ldap_start_tls_s)
596 ULONG ldap_startup(LDAP_VERSION_INFO*,HANDLE*);
597 BOOLEAN ldap_stop_tls_s(LDAP*);
598 ULONG ldap_ufn2dnA(PCHAR,PCHAR*);
599 ULONG ldap_ufn2dnW(PWCHAR,PWCHAR*);
600 #define ldap_ufn2dn WINELIB_NAME_AW(ldap_ufn2dn)
601 ULONG ldap_unbind(LDAP*);
602 ULONG ldap_unbind_s(LDAP*);
603 ULONG ldap_value_freeA(PCHAR*);
604 ULONG ldap_value_freeW(PWCHAR*);
605 #define ldap_value_free WINELIB_NAME_AW(ldap_value_free)
606 ULONG ldap_value_free_len(struct berval**);
608 BerElement *ber_alloc_t(INT);
609 BERVAL *ber_bvdup(BERVAL*);
610 void ber_bvecfree(PBERVAL*);
611 void ber_bvfree(BERVAL*);
612 ULONG ber_first_element(BerElement*,ULONG*,CHAR**);
613 INT ber_flatten(BerElement*,PBERVAL*);
614 void ber_free(BerElement*,INT);
615 BerElement *ber_init(BERVAL*);
616 ULONG ber_next_element(BerElement*,ULONG*,CHAR*);
617 ULONG ber_peek_tag(BerElement*,ULONG*);
618 INT ber_printf(BerElement*,PCHAR,...);
619 ULONG ber_skip_tag(BerElement*,ULONG*);
620 INT ber_scanf(BerElement*,PCHAR,...);
622 ULONG LdapGetLastError(void);
623 ULONG LdapMapErrorToWin32(ULONG);
624 int LdapUnicodeToUTF8(LPCWSTR,int,LPSTR,int);
625 int LdapUTF8ToUnicode(LPCSTR,int,LPWSTR,int);
627 #endif /* __WINE_WINLDAP_H */