OSDN Git Service

330be7a0bee8fdf452bca9f026c0b470b7560fcf
[mingw/mingw-org-wsl.git] / include / objsel.h
1 /**
2  * @file objsel.h
3  * Copyright 2012, 2013 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _OBJSEL_H
25 #define _OBJSEL_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 /*--- Active Directory Reference - Active Directory Structures - Object Picker Dialog Box Structures */
34 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K)
35 typedef struct _DS_SELECTION {
36         PWSTR pwzName;
37         PWSTR pwzADsPath;
38         PWSTR pwzClass;
39         PWSTR pwzUPN;
40         VARIANT *pvarFetchedAttributes;
41         ULONG flScopeType;
42 } DS_SELECTION,*PDS_SELECTION;
43 typedef struct _DS_SELECTION_LIST {
44         ULONG cItems;
45         ULONG cFetchedAttributes;
46         DS_SELECTION aDsSelection[ANYSIZE_ARRAY];
47 } DS_SELECTION_LIST,*PDS_SELECTION_LIST;
48
49 typedef struct _DSOP_UPLEVEL_FILTER_FLAGS {
50         ULONG flBothModes;
51         ULONG flMixedModeOnly;
52         ULONG flNativeModeOnly;
53 } DSOP_UPLEVEL_FILTER_FLAGS;
54 #define DSOP_FILTER_INCLUDE_ADVANCED_VIEW 0x00000001
55 #define DSOP_FILTER_USERS 0x00000002
56 #define DSOP_FILTER_BUILTIN_GROUPS 0x00000004
57 #define DSOP_FILTER_WELL_KNOWN_PRINCIPALS 0x00000008
58 #define DSOP_FILTER_UNIVERSAL_GROUPS_DL 0x00000010
59 #define DSOP_FILTER_UNIVERSAL_GROUPS_SE 0x00000020
60 #define DSOP_FILTER_GLOBAL_GROUPS_DL 0x00000040
61 #define DSOP_FILTER_GLOBAL_GROUPS_SE 0x00000080
62 #define DSOP_FILTER_DOMAIN_LOCAL_GROUPS_DL 0x00000100
63 #define DSOP_FILTER_DOMAIN_LOCAL_GROUPS_SE 0x00000200
64 #define DSOP_FILTER_CONTACTS 0x00000400
65 #define DSOP_FILTER_COMPUTERS 0x00000800
66 typedef struct _DSOP_FILTER_FLAGS {
67         DSOP_UPLEVEL_FILTER_FLAGS Uplevel;
68         ULONG flDownlevel;
69 } DSOP_FILTER_FLAGS;
70 #define DSOP_DOWNLEVEL_FILTER_USERS 0x80000001
71 #define DSOP_DOWNLEVEL_FILTER_LOCAL_GROUPS 0x80000002
72 #define DSOP_DOWNLEVEL_FILTER_GLOBAL_GROUPS 0x80000004
73 #define DSOP_DOWNLEVEL_FILTER_COMPUTERS 0x80000008
74 #define DSOP_DOWNLEVEL_FILTER_WORLD 0x80000010
75 #define DSOP_DOWNLEVEL_FILTER_AUTHENTICATED_USER 0x80000020
76 #define DSOP_DOWNLEVEL_FILTER_ANONYMOUS 0x80000040
77 #define DSOP_DOWNLEVEL_FILTER_BATCH 0x80000080
78 #define DSOP_DOWNLEVEL_FILTER_CREATOR_OWNER 0x80000100
79 #define DSOP_DOWNLEVEL_FILTER_CREATOR_GROUP 0x80000200
80 #define DSOP_DOWNLEVEL_FILTER_DIALUP 0x80000400
81 #define DSOP_DOWNLEVEL_FILTER_INTERACTIVE 0x80000800
82 #define DSOP_DOWNLEVEL_FILTER_NETWORK 0x80001000
83 #define DSOP_DOWNLEVEL_FILTER_SERVICE 0x80002000
84 #define DSOP_DOWNLEVEL_FILTER_SYSTEM 0x80004000
85 #define DSOP_DOWNLEVEL_FILTER_EXCLUDE_BUILTIN_GROUPS 0x80008000
86 #define DSOP_DOWNLEVEL_FILTER_TERMINAL_SERVER 0x80010000
87 #define DSOP_DOWNLEVEL_FILTER_ALL_WELLKNOWN_SIDS 0x80020000
88 #define DSOP_DOWNLEVEL_FILTER_LOCAL_SERVICE 0x80040000
89 #define DSOP_DOWNLEVEL_FILTER_NETWORK_SERVICE 0x80080000
90 #define DSOP_DOWNLEVEL_FILTER_REMOTE_LOGON 0x80100000
91 typedef struct _DSOP_SCOPE_INIT_INFO {
92         ULONG cbSize;
93         ULONG flType;
94         ULONG flScope;
95         DSOP_FILTER_FLAGS FilterFlags;
96         PCWSTR pwzDcName;
97         PCWSTR pwzADsPath;
98         HRESULT hr;
99 } DSOP_SCOPE_INIT_INFO,*PDSOP_SCOPE_INIT_INFO,*PCDSOP_SCOPE_INIT_INFO;
100 #define DSOP_SCOPE_TYPE_TARGET_COMPUTER 0x00000001
101 #define DSOP_SCOPE_TYPE_UPLEVEL_JOINED_DOMAIN 0x00000002
102 #define DSOP_SCOPE_TYPE_DOWNLEVEL_JOINED_DOMAIN 0x00000004
103 #define DSOP_SCOPE_TYPE_ENTERPRISE_DOMAIN 0x00000008
104 #define DSOP_SCOPE_TYPE_GLOBAL_CATALOG 0x00000010
105 #define DSOP_SCOPE_TYPE_EXTERNAL_UPLEVEL_DOMAIN 0x00000020
106 #define DSOP_SCOPE_TYPE_EXTERNAL_DOWNLEVEL_DOMAIN 0x00000040
107 #define DSOP_SCOPE_TYPE_WORKGROUP 0x00000080
108 #define DSOP_SCOPE_TYPE_USER_ENTERED_UPLEVEL_SCOPE 0x00000100
109 #define DSOP_SCOPE_TYPE_USER_ENTERED_DOWNLEVEL_SCOPE 0x00000200
110 typedef struct _DSOP_INIT_INFO {
111         ULONG cbSize;
112         PCWSTR pwzTargetComputer;
113         ULONG cDsScopeInfos;
114         PDSOP_SCOPE_INIT_INFO aDsScopeInfos;
115         ULONG flOptions;
116         ULONG cAttributesToFetch;
117         PCWSTR* apwzAttributeNames;
118 } DSOP_INIT_INFO,*PDSOP_INIT_INFO;
119 #define DSOP_FLAG_MULTISELECT 0x00000001
120 #define DSOP_FLAG_SKIP_TARGET_COMPUTER_DC_CHECK 0x00000002
121 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) */
122
123 #ifdef __cplusplus
124 }
125 #endif
126
127 #endif