VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/winldap.h@ 78046

Last change on this file since 78046 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette