Update tcl to version 8.5.13
[msysgit.git] / mingw / include / dsquery.h
blob0f3f870fbc95afa6a38da9c22ecb454a3dd0b72f
1 /*
2 * dsquery.h - Active Directory
4 * THIS SOFTWARE IS NOT COPYRIGHTED
6 * This source code is offered for use in the public domain. You may use,
7 * modify or distribute it freely.
9 * This code is distributed in the hope that it will be useful but
10 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
11 * DISCLAIMED. This includes but is not limited to warranties of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 #ifndef _DSQUERY_H
16 #define _DSQUERY_H
17 #if __GNUC__ >= 3
18 #pragma GCC system_header
19 #endif
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 /*--- Active Directory Reference - Active Directory Structures - Active Directory Display Structures */
26 #if (_WIN32_WINNT >= 0x0500)
27 typedef struct {
28 DWORD dwFlags;
29 INT fmt;
30 INT cx;
31 INT idsName;
32 LONG offsetProperty;
33 DWORD dwReserved;
34 } DSCOLUMN,*LPDSCOLUMN;
35 #define DSCOLUMNPROP_ADSPATH -1
36 #define DSCOLUMNPROP_OBJECTCLASS -2
37 typedef struct {
38 DWORD cbStruct;
39 LONG cClasses;
40 DWORD offsetClass[1];
41 } DSQUERYCLASSLIST,*LPDSQUERYCLASSLIST;
42 typedef struct {
43 DWORD cbStruct;
44 DWORD dwFlags;
45 LPWSTR pDefaultScope;
46 LPWSTR pDefaultSaveLocation;
47 LPWSTR pUserName;
48 LPWSTR pPassword;
49 LPWSTR pServer;
50 } DSQUERYINITPARAMS,*LPDSQUERYINITPARAMS;
51 #define DSQPF_NOSAVE 0x00000001
52 #define DSQPF_SAVELOCATION 0x00000002
53 #define DSQPF_SHOWHIDDENOBJECTS 0x00000004
54 #define DSQPF_ENABLEADMINFEATURES 0x00000008
55 #define DSQPF_ENABLEADVANCEDFEATURES 0x00000010
56 #define DSQPF_HASCREDENTIALS 0x00000020
57 #define DSQPF_NOCHOOSECOLUMNS 0x00000040
58 typedef struct {
59 DWORD cbStruct;
60 DWORD dwFlags;
61 HINSTANCE hInstance;
62 LONG offsetQuery;
63 LONG iColumns;
64 DWORD dwReserved;
65 DSCOLUMN aColumns[1];
66 } DSQUERYPARAMS,*LPDSQUERYPARAMS;
67 #endif /* (_WIN32_WINNT >= 0x0500) */
69 #ifdef __cplusplus
71 #endif
72 #endif