8596bf39526dc4286d128c7e718f77dd9c80e2c3
[ira/wip.git] / librpc / gen_ndr / drsuapi.h
1 /* header auto-generated by pidl */
2
3 #include <stdint.h>
4
5 #include "libcli/util/ntstatus.h"
6
7 #include "librpc/gen_ndr/security.h"
8 #include "librpc/gen_ndr/misc.h"
9 #include "librpc/gen_ndr/samr.h"
10 #ifndef _HEADER_drsuapi
11 #define _HEADER_drsuapi
12
13 #define DRSUAPI_DS_BIND_GUID    ( "e24d201a-4fd6-11d1-a3da-0000f875ae0d" )
14 #define DRSUAPI_DS_BIND_GUID_W2K        ( "6abec3d1-3054-41c8-a362-5a0c5b7d5d71" )
15 #define DRSUAPI_DS_BIND_GUID_W2K3       ( "6afab99c-6e26-464a-975f-f58f105218bc" )
16 #define DRSUAPI_DS_MEMBERSHIP_FLAG_GROUP_ATTR   ( 0x1 )
17 #define DRSUAPI_NTDSDSA_KRB5_SERVICE_GUID       ( "E3514235-4B06-11D1-AB04-00C04FC2DCD2" )
18 /* bitmap drsuapi_DrsOptions */
19 #define DRSUAPI_DRS_ASYNC_OP ( 0x00000001 )
20 #define DRSUAPI_DRS_GETCHG_CHECK ( 0x00000002 )
21 #define DRSUAPI_DRS_ADD_REF ( 0x00000004 )
22 #define DRSUAPI_DRS_SYNC_ALL ( 0x00000008 )
23 #define DRSUAPI_DRS_DEL_REF ( 0x00000008 )
24 #define DRSUAPI_DRS_WRIT_REP ( 0x00000010 )
25 #define DRSUAPI_DRS_INIT_SYNC ( 0x00000020 )
26 #define DRSUAPI_DRS_PER_SYNC ( 0x00000040 )
27 #define DRSUAPI_DRS_MAIL_REP ( 0x00000080 )
28 #define DRSUAPI_DRS_ASYNC_REP ( 0x00000100 )
29 #define DRSUAPI_DRS_IGNORE_ERROR ( 0x00000100 )
30 #define DRSUAPI_DRS_TWOWAY_SYNC ( 0x00000200 )
31 #define DRSUAPI_DRS_CRITICAL_ONLY ( 0x00000400 )
32 #define DRSUAPI_DRS_GET_ANC ( 0x00000800 )
33 #define DRSUAPI_DRS_GET_NC_SIZE ( 0x00001000 )
34 #define DRSUAPI_DRS_LOCAL_ONLY ( 0x00001000 )
35 #define DRSUAPI_DRS_SYNC_BYNAME ( 0x00004000 )
36 #define DRSUAPI_DRS_REF_OK ( 0x00004000 )
37 #define DRSUAPI_DRS_FULL_SYNC_NOW ( 0x00008000 )
38 #define DRSUAPI_DRS_NO_SOURCE ( 0x00008000 )
39 #define DRSUAPI_DRS_FULL_SYNC_PACKET ( 0x00020000 )
40 #define DRSUAPI_DRS_REF_GCSPN ( 0x00100000 )
41 #define DRSUAPI_DRS_SPECIAL_SECRET_PROCESSING ( 0x00800000 )
42 #define DRSUAPI_DRS_SYNC_FORCED ( 0x02000000 )
43 #define DRSUAPI_DRS_DISABLE_AUTO_SYNC ( 0x04000000 )
44 #define DRSUAPI_DRS_DISABLE_PERIODIC_SYNC ( 0x08000000 )
45 #define DRSUAPI_DRS_USE_COMPRESSION ( 0x10000000 )
46 #define DRSUAPI_DRS_NEVER_NOTIFY ( 0x20000000 )
47 #define DRSUAPI_DRS_SYNC_PAS ( 0x40000000 )
48 #define DRSUAPI_DRS_GET_ALL_GROUP_MEMBERSHIP ( 0x80000000 )
49
50 /* bitmap drsuapi_SupportedExtensions */
51 #define DRSUAPI_SUPPORTED_EXTENSION_BASE ( 0x00000001 )
52 #define DRSUAPI_SUPPORTED_EXTENSION_ASYNC_REPLICATION ( 0x00000002 )
53 #define DRSUAPI_SUPPORTED_EXTENSION_REMOVEAPI ( 0x00000004 )
54 #define DRSUAPI_SUPPORTED_EXTENSION_MOVEREQ_V2 ( 0x00000008 )
55 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHG_COMPRESS ( 0x00000010 )
56 #define DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V1 ( 0x00000020 )
57 #define DRSUAPI_SUPPORTED_EXTENSION_RESTORE_USN_OPTIMIZATION ( 0x00000040 )
58 #define DRSUAPI_SUPPORTED_EXTENSION_00000080 ( 0x00000080 )
59 #define DRSUAPI_SUPPORTED_EXTENSION_KCC_EXECUTE ( 0x00000100 )
60 #define DRSUAPI_SUPPORTED_EXTENSION_ADDENTRY_V2 ( 0x00000200 )
61 #define DRSUAPI_SUPPORTED_EXTENSION_LINKED_VALUE_REPLICATION ( 0x00000400 )
62 #define DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V2 ( 0x00000800 )
63 #define DRSUAPI_SUPPORTED_EXTENSION_INSTANCE_TYPE_NOT_REQ_ON_MOD ( 0x00001000 )
64 #define DRSUAPI_SUPPORTED_EXTENSION_CRYPTO_BIND ( 0x00002000 )
65 #define DRSUAPI_SUPPORTED_EXTENSION_GET_REPL_INFO ( 0x00004000 )
66 #define DRSUAPI_SUPPORTED_EXTENSION_STRONG_ENCRYPTION ( 0x00008000 )
67 #define DRSUAPI_SUPPORTED_EXTENSION_DCINFO_V01 ( 0x00010000 )
68 #define DRSUAPI_SUPPORTED_EXTENSION_TRANSITIVE_MEMBERSHIP ( 0x00020000 )
69 #define DRSUAPI_SUPPORTED_EXTENSION_ADD_SID_HISTORY ( 0x00040000 )
70 #define DRSUAPI_SUPPORTED_EXTENSION_POST_BETA3 ( 0x00080000 )
71 #define DRSUAPI_SUPPORTED_EXTENSION_00100000 ( 0x00100000 )
72 #define DRSUAPI_SUPPORTED_EXTENSION_GET_MEMBERSHIPS2 ( 0x00200000 )
73 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V6 ( 0x00400000 )
74 #define DRSUAPI_SUPPORTED_EXTENSION_NONDOMAIN_NCS ( 0x00800000 )
75 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHGREQ_V8 ( 0x01000000 )
76 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V5 ( 0x02000000 )
77 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V6 ( 0x04000000 )
78 #define DRSUAPI_SUPPORTED_EXTENSION_ADDENTRYREPLY_V3 ( 0x08000000 )
79 #define DRSUAPI_SUPPORTED_EXTENSION_GETCHGREPLY_V7 ( 0x08000000 )
80 #define DRSUAPI_SUPPORTED_EXTENSION_VERIFY_OBJECT ( 0x08000000 )
81 #define DRSUAPI_SUPPORTED_EXTENSION_XPRESS_COMPRESS ( 0x10000000 )
82 #define DRSUAPI_SUPPORTED_EXTENSION_20000000 ( 0x20000000 )
83 #define DRSUAPI_SUPPORTED_EXTENSION_40000000 ( 0x40000000 )
84 #define DRSUAPI_SUPPORTED_EXTENSION_80000000 ( 0x80000000 )
85
86 /* bitmap drsuapi_SupportedExtensionsExt */
87 #define DRSUAPI_SUPPORTED_EXTENSION_ADAM ( 0x00000001 )
88 #define DRSUAPI_SUPPORTED_EXTENSION_LH_BETA2 ( 0x00000002 )
89
90 struct drsuapi_DsBindInfo24 {
91         uint32_t supported_extensions;
92         struct GUID site_guid;
93         uint32_t pid;
94 };
95
96 struct drsuapi_DsBindInfo28 {
97         uint32_t supported_extensions;
98         struct GUID site_guid;
99         uint32_t pid;
100         uint32_t repl_epoch;
101 };
102
103 struct drsuapi_DsBindInfo48 {
104         uint32_t supported_extensions;
105         struct GUID site_guid;
106         uint32_t pid;
107         uint32_t repl_epoch;
108         uint32_t supported_extensions_ext;
109         struct GUID config_dn_guid;
110 };
111
112 struct drsuapi_DsBindInfoFallBack {
113         DATA_BLOB info;/* [flag(LIBNDR_FLAG_REMAINING)] */
114 };
115
116 union drsuapi_DsBindInfo {
117         struct drsuapi_DsBindInfo24 info24;/* [subcontext(4),case(24)] */
118         struct drsuapi_DsBindInfo28 info28;/* [subcontext(4),case(28)] */
119         struct drsuapi_DsBindInfo48 info48;/* [subcontext(4),case(48)] */
120         struct drsuapi_DsBindInfoFallBack FallBack;/* [subcontext(4),default] */
121 }/* [nodiscriminant] */;
122
123 struct drsuapi_DsBindInfoCtr {
124         uint32_t length;/* [range(1,10000)] */
125         union drsuapi_DsBindInfo info;/* [switch_is(length)] */
126 };
127
128 struct drsuapi_DsReplicaObjectIdentifier {
129         uint32_t __ndr_size;/* [value(ndr_size_drsuapi_DsReplicaObjectIdentifier(r,ndr->iconv_convenience,ndr->flags)-4)] */
130         uint32_t __ndr_size_sid;/* [value(ndr_size_dom_sid28(&sid,ndr->flags))] */
131         struct GUID guid;
132         struct dom_sid28 sid;
133         uint32_t __ndr_size_dn;/* [value(strlen_m(dn))] */
134         const char *dn;/* [charset(UTF16),size_is(__ndr_size_dn+1)] */
135 }/* [gensize,public] */;
136
137 /* bitmap drsuapi_DsReplicaSyncOptions */
138 #define DRSUAPI_DS_REPLICA_SYNC_ASYNCHRONOUS_OPERATION ( 0x00000001 )
139 #define DRSUAPI_DS_REPLICA_SYNC_WRITEABLE ( 0x00000002 )
140 #define DRSUAPI_DS_REPLICA_SYNC_PERIODIC ( 0x00000004 )
141 #define DRSUAPI_DS_REPLICA_SYNC_INTERSITE_MESSAGING ( 0x00000008 )
142 #define DRSUAPI_DS_REPLICA_SYNC_ALL_SOURCES ( 0x00000010 )
143 #define DRSUAPI_DS_REPLICA_SYNC_FULL ( 0x00000020 )
144 #define DRSUAPI_DS_REPLICA_SYNC_URGENT ( 0x00000040 )
145 #define DRSUAPI_DS_REPLICA_SYNC_NO_DISCARD ( 0x00000080 )
146 #define DRSUAPI_DS_REPLICA_SYNC_FORCE ( 0x00000100 )
147 #define DRSUAPI_DS_REPLICA_SYNC_ADD_REFERENCE ( 0x00000200 )
148 #define DRSUAPI_DS_REPLICA_SYNC_NEVER_COMPLETED ( 0x00000400 )
149 #define DRSUAPI_DS_REPLICA_SYNC_TWO_WAY ( 0x00000800 )
150 #define DRSUAPI_DS_REPLICA_SYNC_NEVER_NOTIFY ( 0x00001000 )
151 #define DRSUAPI_DS_REPLICA_SYNC_INITIAL ( 0x00002000 )
152 #define DRSUAPI_DS_REPLICA_SYNC_USE_COMPRESSION ( 0x00004000 )
153 #define DRSUAPI_DS_REPLICA_SYNC_ABANDONED ( 0x00008000 )
154 #define DRSUAPI_DS_REPLICA_SYNC_INITIAL_IN_PROGRESS ( 0x00010000 )
155 #define DRSUAPI_DS_REPLICA_SYNC_PARTIAL_ATTRIBUTE_SET ( 0x00020000 )
156 #define DRSUAPI_DS_REPLICA_SYNC_REQUEUE ( 0x00040000 )
157 #define DRSUAPI_DS_REPLICA_SYNC_NOTIFICATION ( 0x00080000 )
158 #define DRSUAPI_DS_REPLICA_SYNC_ASYNCHRONOUS_REPLICA ( 0x00100000 )
159 #define DRSUAPI_DS_REPLICA_SYNC_CRITICAL ( 0x00200000 )
160 #define DRSUAPI_DS_REPLICA_SYNC_FULL_IN_PROGRESS ( 0x00400000 )
161 #define DRSUAPI_DS_REPLICA_SYNC_PREEMPTED ( 0x00800000 )
162
163 struct drsuapi_DsReplicaSyncRequest1 {
164         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [unique] */
165         struct GUID source_dsa_guid;
166         const char * other_info;/* [unique,flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
167         uint32_t options;
168 };
169
170 union drsuapi_DsReplicaSyncRequest {
171         struct drsuapi_DsReplicaSyncRequest1 req1;/* [case] */
172 }/* [switch_type(int32)] */;
173
174 struct drsuapi_DsReplicaHighWaterMark {
175         uint64_t tmp_highest_usn;
176         uint64_t reserved_usn;
177         uint64_t highest_usn;
178 }/* [public] */;
179
180 struct drsuapi_DsReplicaCursor {
181         struct GUID source_dsa_invocation_id;
182         uint64_t highest_usn;
183 }/* [public] */;
184
185 struct drsuapi_DsReplicaCursorCtrEx {
186         uint32_t version;/* [value] */
187         uint32_t reserved1;/* [value(0)] */
188         uint32_t count;/* [range(0,0x100000)] */
189         uint32_t reserved2;/* [value(0)] */
190         struct drsuapi_DsReplicaCursor *cursors;/* [size_is(count)] */
191 };
192
193 /* bitmap drsuapi_DsReplicaNeighbourFlags */
194 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_WRITEABLE ( 0x00000010 )
195 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_SYNC_ON_STARTUP ( 0x00000020 )
196 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_DO_SCHEDULED_SYNCS ( 0x00000040 )
197 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_USE_ASYNC_INTERSIDE_TRANSPORT ( 0x00000080 )
198 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_ASYNC_REP ( 0x00000100 )
199 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_IGNORE_ERROR ( 0x00000100 )
200 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_TWO_WAY_SYNC ( 0x00000200 )
201 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_CRITICAL_ONLY ( 0x00000400 )
202 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_RETURN_OBJECT_PARENTS ( 0x00000800 )
203 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_FULL_IN_PROGRESS ( 0x00010000 )
204 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_FULL_SYNC_PACKET ( 0x00020000 )
205 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_NEVER_SYNCED ( 0x00200000 )
206 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_SPECIAL_SECRET_PROCESSING ( 0x00800000 )
207 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_PREEMPTED ( 0x01000000 )
208 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_IGNORE_CHANGE_NOTIFICATIONS ( 0x04000000 )
209 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_DISABLE_SCHEDULED_SYNC ( 0x08000000 )
210 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES ( 0x10000000 )
211 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_NO_CHANGE_NOTIFICATIONS ( 0x20000000 )
212 #define DRSUAPI_DS_REPLICA_NEIGHBOUR_PARTIAL_ATTRIBUTE_SET ( 0x40000000 )
213
214 enum drsuapi_DsExtendedOperation
215 #ifndef USE_UINT_ENUMS
216  {
217         DRSUAPI_EXOP_NONE=(int)(0x00000000),
218         DRSUAPI_EXOP_FSMO_REQ_ROLE=(int)(0x00000001),
219         DRSUAPI_EXOP_FSMO_RID_ALLOC=(int)(0x00000002),
220         DRSUAPI_EXOP_FSMO_RID_REQ_ROLE=(int)(0x00000003),
221         DRSUAPI_EXOP_FSMO_REQ_PDC=(int)(0x00000004),
222         DRSUAPI_EXOP_FSMO_ABANDON_ROLE=(int)(0x00000005),
223         DRSUAPI_EXOP_REPL_OBJ=(int)(0x00000006),
224         DRSUAPI_EXOP_REPL_SECRET=(int)(0x00000007)
225 }
226 #else
227  { __donnot_use_enum_drsuapi_DsExtendedOperation=0x7FFFFFFF}
228 #define DRSUAPI_EXOP_NONE ( 0x00000000 )
229 #define DRSUAPI_EXOP_FSMO_REQ_ROLE ( 0x00000001 )
230 #define DRSUAPI_EXOP_FSMO_RID_ALLOC ( 0x00000002 )
231 #define DRSUAPI_EXOP_FSMO_RID_REQ_ROLE ( 0x00000003 )
232 #define DRSUAPI_EXOP_FSMO_REQ_PDC ( 0x00000004 )
233 #define DRSUAPI_EXOP_FSMO_ABANDON_ROLE ( 0x00000005 )
234 #define DRSUAPI_EXOP_REPL_OBJ ( 0x00000006 )
235 #define DRSUAPI_EXOP_REPL_SECRET ( 0x00000007 )
236 #endif
237 ;
238
239 enum drsuapi_DsExtendedError
240 #ifndef USE_UINT_ENUMS
241  {
242         DRSUAPI_EXOP_ERR_NONE=(int)(0x00000000),
243         DRSUAPI_EXOP_ERR_SUCCESS=(int)(0x00000001),
244         DRSUAPI_EXOP_ERR_UNKNOWN_OP=(int)(0x00000002),
245         DRSUAPI_EXOP_ERR_FSMO_NOT_OWNER=(int)(0x00000003),
246         DRSUAPI_EXOP_ERR_UPDATE_ERR=(int)(0x00000004),
247         DRSUAPI_EXOP_ERR_EXCEPTION=(int)(0x00000005),
248         DRSUAPI_EXOP_ERR_UNKNOWN_CALLER=(int)(0x00000006),
249         DRSUAPI_EXOP_ERR_RID_ALLOC=(int)(0x00000007),
250         DRSUAPI_EXOP_ERR_FSMO_OWNER_DELETED=(int)(0x00000008),
251         DRSUAPI_EXOP_ERR_FMSO_PENDING_OP=(int)(0x00000009),
252         DRSUAPI_EXOP_ERR_MISMATCH=(int)(0x0000000A),
253         DRSUAPI_EXOP_ERR_COULDNT_CONTACT=(int)(0x0000000B),
254         DRSUAPI_EXOP_ERR_FSMO_REFUSING_ROLES=(int)(0x0000000C),
255         DRSUAPI_EXOP_ERR_DIR_ERROR=(int)(0x0000000D),
256         DRSUAPI_EXOP_ERR_FSMO_MISSING_SETTINGS=(int)(0x0000000E),
257         DRSUAPI_EXOP_ERR_ACCESS_DENIED=(int)(0x0000000F),
258         DRSUAPI_EXOP_ERR_PARAM_ERROR=(int)(0x00000010)
259 }
260 #else
261  { __donnot_use_enum_drsuapi_DsExtendedError=0x7FFFFFFF}
262 #define DRSUAPI_EXOP_ERR_NONE ( 0x00000000 )
263 #define DRSUAPI_EXOP_ERR_SUCCESS ( 0x00000001 )
264 #define DRSUAPI_EXOP_ERR_UNKNOWN_OP ( 0x00000002 )
265 #define DRSUAPI_EXOP_ERR_FSMO_NOT_OWNER ( 0x00000003 )
266 #define DRSUAPI_EXOP_ERR_UPDATE_ERR ( 0x00000004 )
267 #define DRSUAPI_EXOP_ERR_EXCEPTION ( 0x00000005 )
268 #define DRSUAPI_EXOP_ERR_UNKNOWN_CALLER ( 0x00000006 )
269 #define DRSUAPI_EXOP_ERR_RID_ALLOC ( 0x00000007 )
270 #define DRSUAPI_EXOP_ERR_FSMO_OWNER_DELETED ( 0x00000008 )
271 #define DRSUAPI_EXOP_ERR_FMSO_PENDING_OP ( 0x00000009 )
272 #define DRSUAPI_EXOP_ERR_MISMATCH ( 0x0000000A )
273 #define DRSUAPI_EXOP_ERR_COULDNT_CONTACT ( 0x0000000B )
274 #define DRSUAPI_EXOP_ERR_FSMO_REFUSING_ROLES ( 0x0000000C )
275 #define DRSUAPI_EXOP_ERR_DIR_ERROR ( 0x0000000D )
276 #define DRSUAPI_EXOP_ERR_FSMO_MISSING_SETTINGS ( 0x0000000E )
277 #define DRSUAPI_EXOP_ERR_ACCESS_DENIED ( 0x0000000F )
278 #define DRSUAPI_EXOP_ERR_PARAM_ERROR ( 0x00000010 )
279 #endif
280 ;
281
282 struct drsuapi_DsGetNCChangesRequest5 {
283         struct GUID destination_dsa_guid;
284         struct GUID source_dsa_invocation_id;
285         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
286         struct drsuapi_DsReplicaHighWaterMark highwatermark;
287         struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;/* [unique] */
288         uint32_t replica_flags;
289         uint32_t max_object_count;
290         uint32_t max_ndr_size;
291         enum drsuapi_DsExtendedOperation extended_op;
292         uint64_t fsmo_info;
293 };
294
295 struct drsuapi_DsReplicaOID {
296         uint32_t length;/* [range(0,10000)] */
297         uint8_t *binary_oid;/* [unique,size_is(length)] */
298 }/* [noprint] */;
299
300 struct drsuapi_DsReplicaOIDMapping {
301         uint32_t id_prefix;
302         struct drsuapi_DsReplicaOID oid;
303 };
304
305 struct drsuapi_DsReplicaOIDMapping_Ctr {
306         uint32_t num_mappings;/* [range(0,0x100000)] */
307         struct drsuapi_DsReplicaOIDMapping *mappings;/* [unique,size_is(num_mappings)] */
308 }/* [public] */;
309
310 enum drsuapi_DsObjectClassId
311 #ifndef USE_UINT_ENUMS
312  {
313         DRSUAPI_OBJECTCLASS_top=(int)(0x00010000),
314         DRSUAPI_OBJECTCLASS_classSchema=(int)(0x0003000d),
315         DRSUAPI_OBJECTCLASS_attributeSchema=(int)(0x0003000e)
316 }
317 #else
318  { __donnot_use_enum_drsuapi_DsObjectClassId=0x7FFFFFFF}
319 #define DRSUAPI_OBJECTCLASS_top ( 0x00010000 )
320 #define DRSUAPI_OBJECTCLASS_classSchema ( 0x0003000d )
321 #define DRSUAPI_OBJECTCLASS_attributeSchema ( 0x0003000e )
322 #endif
323 ;
324
325 enum drsuapi_DsAttributeId
326 #ifndef USE_UINT_ENUMS
327  {
328         DRSUAPI_ATTRIBUTE_objectClass=(int)(0x00000000),
329         DRSUAPI_ATTRIBUTE_description=(int)(0x0000000d),
330         DRSUAPI_ATTRIBUTE_member=(int)(0x0000001f),
331         DRSUAPI_ATTRIBUTE_instanceType=(int)(0x00020001),
332         DRSUAPI_ATTRIBUTE_whenCreated=(int)(0x00020002),
333         DRSUAPI_ATTRIBUTE_possSuperiors=(int)(0x00020008),
334         DRSUAPI_ATTRIBUTE_hasMasterNCs=(int)(0x0002000e),
335         DRSUAPI_ATTRIBUTE_subClassOf=(int)(0x00020015),
336         DRSUAPI_ATTRIBUTE_governsID=(int)(0x00020016),
337         DRSUAPI_ATTRIBUTE_mustContain=(int)(0x00020018),
338         DRSUAPI_ATTRIBUTE_mayContain=(int)(0x00020019),
339         DRSUAPI_ATTRIBUTE_rDNAttId=(int)(0x0002001A),
340         DRSUAPI_ATTRIBUTE_attributeID=(int)(0x0002001e),
341         DRSUAPI_ATTRIBUTE_attributeSyntax=(int)(0x00020020),
342         DRSUAPI_ATTRIBUTE_isSingleValued=(int)(0x00020021),
343         DRSUAPI_ATTRIBUTE_rangeLower=(int)(0x00020022),
344         DRSUAPI_ATTRIBUTE_rangeUpper=(int)(0x00020023),
345         DRSUAPI_ATTRIBUTE_dMDLocation=(int)(0x00020024),
346         DRSUAPI_ATTRIBUTE_objectVersion=(int)(0x0002004c),
347         DRSUAPI_ATTRIBUTE_invocationId=(int)(0x00020073),
348         DRSUAPI_ATTRIBUTE_showInAdvancedViewOnly=(int)(0x000200a9),
349         DRSUAPI_ATTRIBUTE_adminDisplayName=(int)(0x000200c2),
350         DRSUAPI_ATTRIBUTE_adminDescription=(int)(0x000200e2),
351         DRSUAPI_ATTRIBUTE_oMSyntax=(int)(0x000200e7),
352         DRSUAPI_ATTRIBUTE_ntSecurityDescriptor=(int)(0x00020119),
353         DRSUAPI_ATTRIBUTE_searchFlags=(int)(0x0002014e),
354         DRSUAPI_ATTRIBUTE_auxiliaryClass=(int)(0x0002015f),
355         DRSUAPI_ATTRIBUTE_lDAPDisplayName=(int)(0x000201cc),
356         DRSUAPI_ATTRIBUTE_name=(int)(0x00090001),
357         DRSUAPI_ATTRIBUTE_userAccountControl=(int)(0x00090008),
358         DRSUAPI_ATTRIBUTE_currentValue=(int)(0x0009001b),
359         DRSUAPI_ATTRIBUTE_homeDirectory=(int)(0x0009002c),
360         DRSUAPI_ATTRIBUTE_homeDrive=(int)(0x0009002d),
361         DRSUAPI_ATTRIBUTE_scriptPath=(int)(0x0009003e),
362         DRSUAPI_ATTRIBUTE_profilePath=(int)(0x0009008b),
363         DRSUAPI_ATTRIBUTE_objectSid=(int)(0x00090092),
364         DRSUAPI_ATTRIBUTE_schemaIDGUID=(int)(0x00090094),
365         DRSUAPI_ATTRIBUTE_dBCSPwd=(int)(0x00090037),
366         DRSUAPI_ATTRIBUTE_logonHours=(int)(0x00090040),
367         DRSUAPI_ATTRIBUTE_userWorkstations=(int)(0x00090056),
368         DRSUAPI_ATTRIBUTE_unicodePwd=(int)(0x0009005a),
369         DRSUAPI_ATTRIBUTE_ntPwdHistory=(int)(0x0009005e),
370         DRSUAPI_ATTRIBUTE_priorValue=(int)(0x00090064),
371         DRSUAPI_ATTRIBUTE_supplementalCredentials=(int)(0x0009007d),
372         DRSUAPI_ATTRIBUTE_trustAuthIncoming=(int)(0x00090081),
373         DRSUAPI_ATTRIBUTE_trustAuthOutgoing=(int)(0x00090087),
374         DRSUAPI_ATTRIBUTE_lmPwdHistory=(int)(0x000900a0),
375         DRSUAPI_ATTRIBUTE_systemPossSuperiors=(int)(0x000900c3),
376         DRSUAPI_ATTRIBUTE_systemMayContain=(int)(0x000900c4),
377         DRSUAPI_ATTRIBUTE_systemMustContain=(int)(0x000900c5),
378         DRSUAPI_ATTRIBUTE_systemAuxiliaryClass=(int)(0x000900c6),
379         DRSUAPI_ATTRIBUTE_sAMAccountName=(int)(0x000900dd),
380         DRSUAPI_ATTRIBUTE_sAMAccountType=(int)(0x0009012e),
381         DRSUAPI_ATTRIBUTE_fSMORoleOwner=(int)(0x00090171),
382         DRSUAPI_ATTRIBUTE_systemFlags=(int)(0x00090177),
383         DRSUAPI_ATTRIBUTE_serverReference=(int)(0x00090203),
384         DRSUAPI_ATTRIBUTE_serverReferenceBL=(int)(0x00090204),
385         DRSUAPI_ATTRIBUTE_initialAuthIncoming=(int)(0x0009021b),
386         DRSUAPI_ATTRIBUTE_initialAuthOutgoing=(int)(0x0009021c),
387         DRSUAPI_ATTRIBUTE_wellKnownObjects=(int)(0x0009026a),
388         DRSUAPI_ATTRIBUTE_dNSHostName=(int)(0x0009026b),
389         DRSUAPI_ATTRIBUTE_isMemberOfPartialAttributeSet=(int)(0x0009027f),
390         DRSUAPI_ATTRIBUTE_userPrincipalName=(int)(0x00090290),
391         DRSUAPI_ATTRIBUTE_groupType=(int)(0x000902ee),
392         DRSUAPI_ATTRIBUTE_servicePrincipalName=(int)(0x00090303),
393         DRSUAPI_ATTRIBUTE_objectCategory=(int)(0x0009030e),
394         DRSUAPI_ATTRIBUTE_gPLink=(int)(0x0009037b),
395         DRSUAPI_ATTRIBUTE_transportAddressAttribute=(int)(0x0009037f),
396         DRSUAPI_ATTRIBUTE_msDS_Behavior_Version=(int)(0x000905b3),
397         DRSUAPI_ATTRIBUTE_msDS_KeyVersionNumber=(int)(0x000906f6),
398         DRSUAPI_ATTRIBUTE_msDS_HasDomainNCs=(int)(0x0009071c),
399         DRSUAPI_ATTRIBUTE_msDS_hasMasterNCs=(int)(0x0009072c)
400 }
401 #else
402  { __donnot_use_enum_drsuapi_DsAttributeId=0x7FFFFFFF}
403 #define DRSUAPI_ATTRIBUTE_objectClass ( 0x00000000 )
404 #define DRSUAPI_ATTRIBUTE_description ( 0x0000000d )
405 #define DRSUAPI_ATTRIBUTE_member ( 0x0000001f )
406 #define DRSUAPI_ATTRIBUTE_instanceType ( 0x00020001 )
407 #define DRSUAPI_ATTRIBUTE_whenCreated ( 0x00020002 )
408 #define DRSUAPI_ATTRIBUTE_possSuperiors ( 0x00020008 )
409 #define DRSUAPI_ATTRIBUTE_hasMasterNCs ( 0x0002000e )
410 #define DRSUAPI_ATTRIBUTE_subClassOf ( 0x00020015 )
411 #define DRSUAPI_ATTRIBUTE_governsID ( 0x00020016 )
412 #define DRSUAPI_ATTRIBUTE_mustContain ( 0x00020018 )
413 #define DRSUAPI_ATTRIBUTE_mayContain ( 0x00020019 )
414 #define DRSUAPI_ATTRIBUTE_rDNAttId ( 0x0002001A )
415 #define DRSUAPI_ATTRIBUTE_attributeID ( 0x0002001e )
416 #define DRSUAPI_ATTRIBUTE_attributeSyntax ( 0x00020020 )
417 #define DRSUAPI_ATTRIBUTE_isSingleValued ( 0x00020021 )
418 #define DRSUAPI_ATTRIBUTE_rangeLower ( 0x00020022 )
419 #define DRSUAPI_ATTRIBUTE_rangeUpper ( 0x00020023 )
420 #define DRSUAPI_ATTRIBUTE_dMDLocation ( 0x00020024 )
421 #define DRSUAPI_ATTRIBUTE_objectVersion ( 0x0002004c )
422 #define DRSUAPI_ATTRIBUTE_invocationId ( 0x00020073 )
423 #define DRSUAPI_ATTRIBUTE_showInAdvancedViewOnly ( 0x000200a9 )
424 #define DRSUAPI_ATTRIBUTE_adminDisplayName ( 0x000200c2 )
425 #define DRSUAPI_ATTRIBUTE_adminDescription ( 0x000200e2 )
426 #define DRSUAPI_ATTRIBUTE_oMSyntax ( 0x000200e7 )
427 #define DRSUAPI_ATTRIBUTE_ntSecurityDescriptor ( 0x00020119 )
428 #define DRSUAPI_ATTRIBUTE_searchFlags ( 0x0002014e )
429 #define DRSUAPI_ATTRIBUTE_auxiliaryClass ( 0x0002015f )
430 #define DRSUAPI_ATTRIBUTE_lDAPDisplayName ( 0x000201cc )
431 #define DRSUAPI_ATTRIBUTE_name ( 0x00090001 )
432 #define DRSUAPI_ATTRIBUTE_userAccountControl ( 0x00090008 )
433 #define DRSUAPI_ATTRIBUTE_currentValue ( 0x0009001b )
434 #define DRSUAPI_ATTRIBUTE_homeDirectory ( 0x0009002c )
435 #define DRSUAPI_ATTRIBUTE_homeDrive ( 0x0009002d )
436 #define DRSUAPI_ATTRIBUTE_scriptPath ( 0x0009003e )
437 #define DRSUAPI_ATTRIBUTE_profilePath ( 0x0009008b )
438 #define DRSUAPI_ATTRIBUTE_objectSid ( 0x00090092 )
439 #define DRSUAPI_ATTRIBUTE_schemaIDGUID ( 0x00090094 )
440 #define DRSUAPI_ATTRIBUTE_dBCSPwd ( 0x00090037 )
441 #define DRSUAPI_ATTRIBUTE_logonHours ( 0x00090040 )
442 #define DRSUAPI_ATTRIBUTE_userWorkstations ( 0x00090056 )
443 #define DRSUAPI_ATTRIBUTE_unicodePwd ( 0x0009005a )
444 #define DRSUAPI_ATTRIBUTE_ntPwdHistory ( 0x0009005e )
445 #define DRSUAPI_ATTRIBUTE_priorValue ( 0x00090064 )
446 #define DRSUAPI_ATTRIBUTE_supplementalCredentials ( 0x0009007d )
447 #define DRSUAPI_ATTRIBUTE_trustAuthIncoming ( 0x00090081 )
448 #define DRSUAPI_ATTRIBUTE_trustAuthOutgoing ( 0x00090087 )
449 #define DRSUAPI_ATTRIBUTE_lmPwdHistory ( 0x000900a0 )
450 #define DRSUAPI_ATTRIBUTE_systemPossSuperiors ( 0x000900c3 )
451 #define DRSUAPI_ATTRIBUTE_systemMayContain ( 0x000900c4 )
452 #define DRSUAPI_ATTRIBUTE_systemMustContain ( 0x000900c5 )
453 #define DRSUAPI_ATTRIBUTE_systemAuxiliaryClass ( 0x000900c6 )
454 #define DRSUAPI_ATTRIBUTE_sAMAccountName ( 0x000900dd )
455 #define DRSUAPI_ATTRIBUTE_sAMAccountType ( 0x0009012e )
456 #define DRSUAPI_ATTRIBUTE_fSMORoleOwner ( 0x00090171 )
457 #define DRSUAPI_ATTRIBUTE_systemFlags ( 0x00090177 )
458 #define DRSUAPI_ATTRIBUTE_serverReference ( 0x00090203 )
459 #define DRSUAPI_ATTRIBUTE_serverReferenceBL ( 0x00090204 )
460 #define DRSUAPI_ATTRIBUTE_initialAuthIncoming ( 0x0009021b )
461 #define DRSUAPI_ATTRIBUTE_initialAuthOutgoing ( 0x0009021c )
462 #define DRSUAPI_ATTRIBUTE_wellKnownObjects ( 0x0009026a )
463 #define DRSUAPI_ATTRIBUTE_dNSHostName ( 0x0009026b )
464 #define DRSUAPI_ATTRIBUTE_isMemberOfPartialAttributeSet ( 0x0009027f )
465 #define DRSUAPI_ATTRIBUTE_userPrincipalName ( 0x00090290 )
466 #define DRSUAPI_ATTRIBUTE_groupType ( 0x000902ee )
467 #define DRSUAPI_ATTRIBUTE_servicePrincipalName ( 0x00090303 )
468 #define DRSUAPI_ATTRIBUTE_objectCategory ( 0x0009030e )
469 #define DRSUAPI_ATTRIBUTE_gPLink ( 0x0009037b )
470 #define DRSUAPI_ATTRIBUTE_transportAddressAttribute ( 0x0009037f )
471 #define DRSUAPI_ATTRIBUTE_msDS_Behavior_Version ( 0x000905b3 )
472 #define DRSUAPI_ATTRIBUTE_msDS_KeyVersionNumber ( 0x000906f6 )
473 #define DRSUAPI_ATTRIBUTE_msDS_HasDomainNCs ( 0x0009071c )
474 #define DRSUAPI_ATTRIBUTE_msDS_hasMasterNCs ( 0x0009072c )
475 #endif
476 ;
477
478 struct drsuapi_DsPartialAttributeSet {
479         uint32_t version;/* [value] */
480         uint32_t reserved1;/* [value(0)] */
481         uint32_t num_attids;/* [range(1,0x100000)] */
482         enum drsuapi_DsAttributeId *attids;/* [size_is(num_attids)] */
483 };
484
485 struct drsuapi_DsGetNCChangesRequest8 {
486         struct GUID destination_dsa_guid;
487         struct GUID source_dsa_invocation_id;
488         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
489         struct drsuapi_DsReplicaHighWaterMark highwatermark;
490         struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;/* [unique] */
491         uint32_t replica_flags;
492         uint32_t max_object_count;
493         uint32_t max_ndr_size;
494         enum drsuapi_DsExtendedOperation extended_op;
495         uint64_t fsmo_info;
496         struct drsuapi_DsPartialAttributeSet *partial_attribute_set;/* [unique] */
497         struct drsuapi_DsPartialAttributeSet *partial_attribute_set_ex;/* [unique] */
498         struct drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr;
499 };
500
501 struct drsuapi_DsGetNCChangesRequest10 {
502         struct GUID destination_dsa_guid;
503         struct GUID source_dsa_invocation_id;
504         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
505         struct drsuapi_DsReplicaHighWaterMark highwatermark;
506         struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;/* [unique] */
507         uint32_t replica_flags;
508         uint32_t max_object_count;
509         uint32_t max_ndr_size;
510         enum drsuapi_DsExtendedOperation extended_op;
511         uint64_t fsmo_info;
512         struct drsuapi_DsPartialAttributeSet *partial_attribute_set;/* [unique] */
513         struct drsuapi_DsPartialAttributeSet *partial_attribute_set_ex;/* [unique] */
514         struct drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr;
515         uint32_t more_flags;
516 };
517
518 union drsuapi_DsGetNCChangesRequest {
519         struct drsuapi_DsGetNCChangesRequest5 req5;/* [case(5)] */
520         struct drsuapi_DsGetNCChangesRequest8 req8;/* [case(8)] */
521         struct drsuapi_DsGetNCChangesRequest10 req10;/* [case(10)] */
522 }/* [switch_type(int32)] */;
523
524 struct drsuapi_DsReplicaCursor2 {
525         struct GUID source_dsa_invocation_id;
526         uint64_t highest_usn;
527         NTTIME last_sync_success;
528 }/* [public] */;
529
530 struct drsuapi_DsReplicaCursor2CtrEx {
531         uint32_t version;/* [value(2)] */
532         uint32_t reserved1;/* [value(0)] */
533         uint32_t count;/* [range(0,0x100000)] */
534         uint32_t reserved2;/* [value(0)] */
535         struct drsuapi_DsReplicaCursor2 *cursors;/* [size_is(count)] */
536 };
537
538 struct drsuapi_DsAttributeValue {
539         uint32_t __ndr_size;/* [value(ndr_size_DATA_BLOB(0,blob,0)),range(0,10485760)] */
540         DATA_BLOB *blob;/* [unique] */
541 };
542
543 struct drsuapi_DsAttributeValueCtr {
544         uint32_t num_values;/* [range(0,10485760)] */
545         struct drsuapi_DsAttributeValue *values;/* [unique,size_is(num_values)] */
546 };
547
548 struct drsuapi_DsReplicaObjectIdentifier3 {
549         uint32_t __ndr_size;/* [value(ndr_size_drsuapi_DsReplicaObjectIdentifier3(r,ndr->iconv_convenience,ndr->flags))] */
550         uint32_t __ndr_size_sid;/* [value(ndr_size_dom_sid28(&sid,ndr->flags))] */
551         struct GUID guid;
552         struct dom_sid28 sid;
553         uint32_t __ndr_size_dn;/* [value(strlen_m(dn))] */
554         const char *dn;/* [charset(UTF16)] */
555 }/* [gensize,public] */;
556
557 struct drsuapi_DsReplicaObjectIdentifier3Binary {
558         uint32_t __ndr_size;/* [value(ndr_size_drsuapi_DsReplicaObjectIdentifier3Binary_without_Binary(r,ndr->iconv_convenience,ndr->flags))] */
559         uint32_t __ndr_size_sid;/* [value(ndr_size_dom_sid28(&sid,ndr->flags))] */
560         struct GUID guid;
561         struct dom_sid28 sid;
562         uint32_t __ndr_size_dn;/* [value(strlen_m(dn))] */
563         const char *dn;/* [charset(UTF16)] */
564         uint32_t __ndr_size_binary;/* [value(binary.length+4)] */
565         DATA_BLOB binary;/* [flag(LIBNDR_FLAG_REMAINING)] */
566 }/* [public] */;
567
568 struct drsuapi_DsReplicaAttribute {
569         enum drsuapi_DsAttributeId attid;
570         struct drsuapi_DsAttributeValueCtr value_ctr;
571 }/* [public] */;
572
573 struct drsuapi_DsReplicaAttributeCtr {
574         uint32_t num_attributes;/* [range(0,1048576)] */
575         struct drsuapi_DsReplicaAttribute *attributes;/* [unique,size_is(num_attributes)] */
576 };
577
578 /* bitmap drsuapi_DsReplicaObjectFlags */
579 #define DRSUAPI_DS_REPLICA_OBJECT_FROM_MASTER ( 0x00000001 )
580 #define DRSUAPI_DS_REPLICA_OBJECT_DYNAMIC ( 0x00000002 )
581 #define DRSUAPI_DS_REPLICA_OBJECT_REMOTE_MODIFY ( 0x00010000 )
582
583 struct drsuapi_DsReplicaObject {
584         struct drsuapi_DsReplicaObjectIdentifier *identifier;/* [unique] */
585         uint32_t flags;
586         struct drsuapi_DsReplicaAttributeCtr attribute_ctr;
587 }/* [public] */;
588
589 struct drsuapi_DsReplicaMetaData {
590         uint32_t version;
591         NTTIME originating_change_time;
592         struct GUID originating_invocation_id;
593         uint64_t originating_usn;
594 };
595
596 struct drsuapi_DsReplicaMetaDataCtr {
597         uint32_t count;/* [range(0,1048576)] */
598         struct drsuapi_DsReplicaMetaData *meta_data;/* [size_is(count)] */
599 }/* [public] */;
600
601 struct drsuapi_DsReplicaObjectListItemEx {
602         struct drsuapi_DsReplicaObjectListItemEx *next_object;/* [unique] */
603         struct drsuapi_DsReplicaObject object;
604         uint32_t is_nc_prefix;
605         struct GUID *parent_object_guid;/* [unique] */
606         struct drsuapi_DsReplicaMetaDataCtr *meta_data_ctr;/* [unique] */
607 }/* [noprint,public] */;
608
609 struct drsuapi_DsGetNCChangesCtr1 {
610         struct GUID source_dsa_guid;
611         struct GUID source_dsa_invocation_id;
612         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [unique] */
613         struct drsuapi_DsReplicaHighWaterMark old_highwatermark;
614         struct drsuapi_DsReplicaHighWaterMark new_highwatermark;
615         struct drsuapi_DsReplicaCursorCtrEx *uptodateness_vector;/* [unique] */
616         struct drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr;
617         enum drsuapi_DsExtendedError extended_ret;
618         uint32_t object_count;
619         uint32_t __ndr_size;/* [value(ndr_size_drsuapi_DsGetNCChangesCtr1(r,ndr->iconv_convenience,ndr->flags)+55)] */
620         struct drsuapi_DsReplicaObjectListItemEx *first_object;/* [unique] */
621         uint32_t more_data;
622 }/* [gensize,public] */;
623
624 /* bitmap drsuapi_DsLinkedAttributeFlags */
625 #define DRSUAPI_DS_LINKED_ATTRIBUTE_FLAG_ACTIVE ( 0x00000001 )
626
627 struct drsuapi_DsReplicaLinkedAttribute {
628         struct drsuapi_DsReplicaObjectIdentifier *identifier;/* [unique] */
629         enum drsuapi_DsAttributeId attid;
630         struct drsuapi_DsAttributeValue value;
631         uint32_t flags;
632         NTTIME originating_add_time;
633         struct drsuapi_DsReplicaMetaData meta_data;
634 }/* [public] */;
635
636 struct drsuapi_DsGetNCChangesCtr6 {
637         struct GUID source_dsa_guid;
638         struct GUID source_dsa_invocation_id;
639         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [unique] */
640         struct drsuapi_DsReplicaHighWaterMark old_highwatermark;
641         struct drsuapi_DsReplicaHighWaterMark new_highwatermark;
642         struct drsuapi_DsReplicaCursor2CtrEx *uptodateness_vector;/* [unique] */
643         struct drsuapi_DsReplicaOIDMapping_Ctr mapping_ctr;
644         enum drsuapi_DsExtendedError extended_ret;
645         uint32_t object_count;
646         uint32_t __ndr_size;/* [value(ndr_size_drsuapi_DsGetNCChangesCtr6(r,ndr->iconv_convenience,ndr->flags)+55)] */
647         struct drsuapi_DsReplicaObjectListItemEx *first_object;/* [unique] */
648         uint32_t more_data;
649         uint32_t nc_object_count;
650         uint32_t nc_linked_attributes_count;
651         uint32_t linked_attributes_count;/* [range(0,1048576)] */
652         struct drsuapi_DsReplicaLinkedAttribute *linked_attributes;/* [unique,size_is(linked_attributes_count)] */
653         WERROR drs_error;
654 }/* [gensize,public] */;
655
656 struct drsuapi_DsGetNCChangesCtr1TS {
657         struct drsuapi_DsGetNCChangesCtr1 ctr1;/* [subcontext(0xFFFFFC01)] */
658 }/* [public] */;
659
660 struct drsuapi_DsGetNCChangesCtr6TS {
661         struct drsuapi_DsGetNCChangesCtr6 ctr6;/* [subcontext(0xFFFFFC01)] */
662 }/* [public] */;
663
664 struct drsuapi_DsGetNCChangesMSZIPCtr1 {
665         uint32_t decompressed_length;
666         uint32_t compressed_length;
667         struct drsuapi_DsGetNCChangesCtr1TS *ts;/* [unique,compression(NDR_COMPRESSION_MSZIP,compressed_length,decompressed_length),subcontext_size(compressed_length),subcontext(4)] */
668 }/* [nopush] */;
669
670 struct drsuapi_DsGetNCChangesMSZIPCtr6 {
671         uint32_t decompressed_length;
672         uint32_t compressed_length;
673         struct drsuapi_DsGetNCChangesCtr6TS *ts;/* [unique,compression(NDR_COMPRESSION_MSZIP,compressed_length,decompressed_length),subcontext_size(compressed_length),subcontext(4)] */
674 }/* [nopush] */;
675
676 struct drsuapi_DsGetNCChangesXPRESSCtr1 {
677         uint32_t decompressed_length;
678         uint32_t compressed_length;
679         struct drsuapi_DsGetNCChangesCtr1TS *ts;/* [unique,compression(NDR_COMPRESSION_XPRESS,compressed_length,decompressed_length),subcontext_size(compressed_length),subcontext(4)] */
680 }/* [nopush] */;
681
682 struct drsuapi_DsGetNCChangesXPRESSCtr6 {
683         uint32_t decompressed_length;
684         uint32_t compressed_length;
685         struct drsuapi_DsGetNCChangesCtr6TS *ts;/* [unique,compression(NDR_COMPRESSION_XPRESS,compressed_length,decompressed_length),subcontext_size(compressed_length),subcontext(4)] */
686 }/* [nopush] */;
687
688 enum drsuapi_DsGetNCChangesCompressionType
689 #ifndef USE_UINT_ENUMS
690  {
691         DRSUAPI_COMPRESSION_TYPE_MSZIP=(int)(2),
692         DRSUAPI_COMPRESSION_TYPE_XPRESS=(int)(3)
693 }
694 #else
695  { __donnot_use_enum_drsuapi_DsGetNCChangesCompressionType=0x7FFFFFFF}
696 #define DRSUAPI_COMPRESSION_TYPE_MSZIP ( 2 )
697 #define DRSUAPI_COMPRESSION_TYPE_XPRESS ( 3 )
698 #endif
699 ;
700
701 union drsuapi_DsGetNCChangesCompressedCtr {
702         struct drsuapi_DsGetNCChangesMSZIPCtr1 mszip1;/* [case(1|(DRSUAPI_COMPRESSION_TYPE_MSZIP<<16))] */
703         struct drsuapi_DsGetNCChangesMSZIPCtr6 mszip6;/* [case(6|(DRSUAPI_COMPRESSION_TYPE_MSZIP<<16))] */
704         struct drsuapi_DsGetNCChangesXPRESSCtr1 xpress1;/* [case(1|(DRSUAPI_COMPRESSION_TYPE_XPRESS<<16))] */
705         struct drsuapi_DsGetNCChangesXPRESSCtr6 xpress6;/* [case(6|(DRSUAPI_COMPRESSION_TYPE_XPRESS<<16))] */
706 }/* [nodiscriminant,flag(LIBNDR_PRINT_ARRAY_HEX)] */;
707
708 struct drsuapi_DsGetNCChangesCtr2 {
709         struct drsuapi_DsGetNCChangesMSZIPCtr1 mszip1;
710 };
711
712 struct drsuapi_DsGetNCChangesCtr7 {
713         int32_t level;/* [range(0,6)] */
714         enum drsuapi_DsGetNCChangesCompressionType type;/* [range(2,3)] */
715         union drsuapi_DsGetNCChangesCompressedCtr ctr;/* [switch_is(level|(type<<16))] */
716 };
717
718 union drsuapi_DsGetNCChangesCtr {
719         struct drsuapi_DsGetNCChangesCtr1 ctr1;/* [case] */
720         struct drsuapi_DsGetNCChangesCtr2 ctr2;/* [case(2)] */
721         struct drsuapi_DsGetNCChangesCtr6 ctr6;/* [case(6)] */
722         struct drsuapi_DsGetNCChangesCtr7 ctr7;/* [case(7)] */
723 }/* [switch_type(int32)] */;
724
725 /* bitmap drsuapi_DsReplicaUpdateRefsOptions */
726 #define DRSUAPI_DS_REPLICA_UPDATE_ASYNCHRONOUS_OPERATION ( 0x00000001 )
727 #define DRSUAPI_DS_REPLICA_UPDATE_GETCHG_CHECK ( 0x00000002 )
728 #define DRSUAPI_DS_REPLICA_UPDATE_ADD_REFERENCE ( 0x00000004 )
729 #define DRSUAPI_DS_REPLICA_UPDATE_DELETE_REFERENCE ( 0x00000008 )
730 #define DRSUAPI_DS_REPLICA_UPDATE_WRITEABLE ( 0x00000010 )
731
732 struct drsuapi_DsReplicaUpdateRefsRequest1 {
733         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
734         const char *dest_dsa_dns_name;/* [ref,charset(DOS)] */
735         struct GUID dest_dsa_guid;
736         uint32_t options;
737 };
738
739 union drsuapi_DsReplicaUpdateRefsRequest {
740         struct drsuapi_DsReplicaUpdateRefsRequest1 req1;/* [case] */
741 }/* [switch_type(int32)] */;
742
743 /* bitmap drsuapi_DsReplicaAddOptions */
744 #define DRSUAPI_DS_REPLICA_ADD_ASYNCHRONOUS_OPERATION ( 0x00000001 )
745 #define DRSUAPI_DS_REPLICA_ADD_WRITEABLE ( 0x00000002 )
746
747 struct drsuapi_DsReplicaAddRequest1 {
748         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
749         const char *source_dsa_address;/* [unique,charset(UTF16)] */
750         uint8_t schedule[84];
751         uint32_t options;
752 };
753
754 struct drsuapi_DsReplicaAddRequest2 {
755         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
756         struct drsuapi_DsReplicaObjectIdentifier *source_dsa_dn;/* [unique] */
757         struct drsuapi_DsReplicaObjectIdentifier *transport_dn;/* [unique] */
758         const char *source_dsa_address;/* [unique,charset(UTF16)] */
759         uint8_t schedule[84];
760         uint32_t options;
761 };
762
763 union drsuapi_DsReplicaAddRequest {
764         struct drsuapi_DsReplicaAddRequest1 req1;/* [case] */
765         struct drsuapi_DsReplicaAddRequest2 req2;/* [case(2)] */
766 }/* [switch_type(int32)] */;
767
768 /* bitmap drsuapi_DsReplicaDeleteOptions */
769 #define DRSUAPI_DS_REPLICA_ADD_ASYNCHRONOUS_OPERATION ( 0x00000001 )
770 #define DRSUAPI_DS_REPLICA_ADD_WRITEABLE ( 0x00000002 )
771
772 struct drsuapi_DsReplicaDelRequest1 {
773         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
774         const char *source_dsa_address;/* [unique,charset(UTF16)] */
775         uint32_t options;
776 };
777
778 union drsuapi_DsReplicaDelRequest {
779         struct drsuapi_DsReplicaDelRequest1 req1;/* [case] */
780 }/* [switch_type(int32)] */;
781
782 /* bitmap drsuapi_DsReplicaModifyOptions */
783 #define DRSUAPI_DS_REPLICA_ADD_ASYNCHRONOUS_OPERATION ( 0x00000001 )
784 #define DRSUAPI_DS_REPLICA_ADD_WRITEABLE ( 0x00000002 )
785
786 struct drsuapi_DsReplicaModRequest1 {
787         struct drsuapi_DsReplicaObjectIdentifier *naming_context;/* [ref] */
788         struct GUID source_dra;
789         const char *source_dra_address;/* [unique,charset(UTF16)] */
790         uint8_t schedule[84];
791         uint32_t replica_flags;
792         uint32_t modify_fields;
793         uint32_t options;
794 };
795
796 union drsuapi_DsReplicaModRequest {
797         struct drsuapi_DsReplicaModRequest1 req1;/* [case] */
798 }/* [switch_type(int32)] */;
799
800 enum drsuapi_DsMembershipType
801 #ifndef USE_UINT_ENUMS
802  {
803         DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_AND_DOMAIN_GROUPS=(int)(1),
804         DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS=(int)(2),
805         DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS=(int)(3),
806         DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS2=(int)(4),
807         DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_GROUPS=(int)(5),
808         DRSUAPI_DS_MEMBERSHIP_TYPE_GROUPMEMBERS=(int)(6),
809         DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS2=(int)(7)
810 }
811 #else
812  { __donnot_use_enum_drsuapi_DsMembershipType=0x7FFFFFFF}
813 #define DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_AND_DOMAIN_GROUPS ( 1 )
814 #define DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS ( 2 )
815 #define DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS ( 3 )
816 #define DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_LOCAL_GROUPS2 ( 4 )
817 #define DRSUAPI_DS_MEMBERSHIP_TYPE_UNIVERSAL_GROUPS ( 5 )
818 #define DRSUAPI_DS_MEMBERSHIP_TYPE_GROUPMEMBERS ( 6 )
819 #define DRSUAPI_DS_MEMBERSHIP_TYPE_DOMAIN_GROUPS2 ( 7 )
820 #endif
821 ;
822
823 struct drsuapi_DsGetMembershipsCtr1 {
824         NTSTATUS status;
825         uint32_t num_memberships;/* [range(0,10000)] */
826         uint32_t num_sids;/* [range(0,10000)] */
827         struct drsuapi_DsReplicaObjectIdentifier **info_array;/* [unique,size_is(num_memberships)] */
828         uint32_t *group_attrs;/* [unique,size_is(num_memberships)] */
829         struct dom_sid28 **sids;/* [unique,size_is(num_sids)] */
830 };
831
832 union drsuapi_DsGetMembershipsCtr {
833         struct drsuapi_DsGetMembershipsCtr1 ctr1;/* [case] */
834 }/* [switch_type(int32)] */;
835
836 struct drsuapi_DsGetMembershipsRequest1 {
837         uint32_t count;/* [range(1,10000)] */
838         struct drsuapi_DsReplicaObjectIdentifier **info_array;/* [unique,size_is(count)] */
839         uint32_t flags;
840         enum drsuapi_DsMembershipType type;
841         struct drsuapi_DsReplicaObjectIdentifier *domain;/* [unique] */
842 };
843
844 union drsuapi_DsGetMembershipsRequest {
845         struct drsuapi_DsGetMembershipsRequest1 req1;/* [case] */
846 }/* [switch_type(int32)] */;
847
848 struct drsuapi_DsGetNT4ChangeLogRequest1 {
849         uint32_t unknown1;
850         uint32_t unknown2;
851         uint32_t length;/* [range(0,0x00A00000)] */
852         uint8_t *data;/* [unique,size_is(length)] */
853 };
854
855 union drsuapi_DsGetNT4ChangeLogRequest {
856         struct drsuapi_DsGetNT4ChangeLogRequest1 req1;/* [case] */
857 }/* [switch_type(uint32)] */;
858
859 struct drsuapi_DsGetNT4ChangeLogInfo1 {
860         uint32_t length1;/* [range(0,0x00A00000)] */
861         uint32_t length2;/* [range(0,0x00A00000)] */
862         uint64_t unknown1;
863         NTTIME time2;
864         uint64_t unknown3;
865         NTTIME time4;
866         uint64_t unknown5;
867         NTTIME time6;
868         NTSTATUS status;
869         uint8_t *data1;/* [unique,size_is(length1)] */
870         uint8_t *data2;/* [unique,size_is(length2)] */
871 };
872
873 union drsuapi_DsGetNT4ChangeLogInfo {
874         struct drsuapi_DsGetNT4ChangeLogInfo1 info1;/* [case] */
875 }/* [switch_type(uint32)] */;
876
877 enum drsuapi_DsNameStatus
878 #ifndef USE_UINT_ENUMS
879  {
880         DRSUAPI_DS_NAME_STATUS_OK=(int)(0),
881         DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR=(int)(1),
882         DRSUAPI_DS_NAME_STATUS_NOT_FOUND=(int)(2),
883         DRSUAPI_DS_NAME_STATUS_NOT_UNIQUE=(int)(3),
884         DRSUAPI_DS_NAME_STATUS_NO_MAPPING=(int)(4),
885         DRSUAPI_DS_NAME_STATUS_DOMAIN_ONLY=(int)(5),
886         DRSUAPI_DS_NAME_STATUS_NO_SYNTACTICAL_MAPPING=(int)(6),
887         DRSUAPI_DS_NAME_STATUS_TRUST_REFERRAL=(int)(7)
888 }
889 #else
890  { __donnot_use_enum_drsuapi_DsNameStatus=0x7FFFFFFF}
891 #define DRSUAPI_DS_NAME_STATUS_OK ( 0 )
892 #define DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR ( 1 )
893 #define DRSUAPI_DS_NAME_STATUS_NOT_FOUND ( 2 )
894 #define DRSUAPI_DS_NAME_STATUS_NOT_UNIQUE ( 3 )
895 #define DRSUAPI_DS_NAME_STATUS_NO_MAPPING ( 4 )
896 #define DRSUAPI_DS_NAME_STATUS_DOMAIN_ONLY ( 5 )
897 #define DRSUAPI_DS_NAME_STATUS_NO_SYNTACTICAL_MAPPING ( 6 )
898 #define DRSUAPI_DS_NAME_STATUS_TRUST_REFERRAL ( 7 )
899 #endif
900 ;
901
902 enum drsuapi_DsNameFlags
903 #ifndef USE_UINT_ENUMS
904  {
905         DRSUAPI_DS_NAME_FLAG_NO_FLAGS=(int)(0x0),
906         DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY=(int)(0x1),
907         DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC=(int)(0x2),
908         DRSUAPI_DS_NAME_FLAG_GCVERIFY=(int)(0x4),
909         DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL=(int)(0x8)
910 }
911 #else
912  { __donnot_use_enum_drsuapi_DsNameFlags=0x7FFFFFFF}
913 #define DRSUAPI_DS_NAME_FLAG_NO_FLAGS ( 0x0 )
914 #define DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY ( 0x1 )
915 #define DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC ( 0x2 )
916 #define DRSUAPI_DS_NAME_FLAG_GCVERIFY ( 0x4 )
917 #define DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL ( 0x8 )
918 #endif
919 ;
920
921 enum drsuapi_DsNameFormat
922 #ifndef USE_UINT_ENUMS
923  {
924         DRSUAPI_DS_NAME_FORMAT_UNKNOWN=(int)(0),
925         DRSUAPI_DS_NAME_FORMAT_FQDN_1779=(int)(1),
926         DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT=(int)(2),
927         DRSUAPI_DS_NAME_FORMAT_DISPLAY=(int)(3),
928         DRSUAPI_DS_NAME_FORMAT_GUID=(int)(6),
929         DRSUAPI_DS_NAME_FORMAT_CANONICAL=(int)(7),
930         DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL=(int)(8),
931         DRSUAPI_DS_NAME_FORMAT_CANONICAL_EX=(int)(9),
932         DRSUAPI_DS_NAME_FORMAT_SERVICE_PRINCIPAL=(int)(10),
933         DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY=(int)(11),
934         DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN=(int)(12)
935 }
936 #else
937  { __donnot_use_enum_drsuapi_DsNameFormat=0x7FFFFFFF}
938 #define DRSUAPI_DS_NAME_FORMAT_UNKNOWN ( 0 )
939 #define DRSUAPI_DS_NAME_FORMAT_FQDN_1779 ( 1 )
940 #define DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT ( 2 )
941 #define DRSUAPI_DS_NAME_FORMAT_DISPLAY ( 3 )
942 #define DRSUAPI_DS_NAME_FORMAT_GUID ( 6 )
943 #define DRSUAPI_DS_NAME_FORMAT_CANONICAL ( 7 )
944 #define DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL ( 8 )
945 #define DRSUAPI_DS_NAME_FORMAT_CANONICAL_EX ( 9 )
946 #define DRSUAPI_DS_NAME_FORMAT_SERVICE_PRINCIPAL ( 10 )
947 #define DRSUAPI_DS_NAME_FORMAT_SID_OR_SID_HISTORY ( 11 )
948 #define DRSUAPI_DS_NAME_FORMAT_DNS_DOMAIN ( 12 )
949 #endif
950 ;
951
952 struct drsuapi_DsNameString {
953         const char *str;/* [unique,charset(UTF16)] */
954 };
955
956 struct drsuapi_DsNameRequest1 {
957         uint32_t codepage;
958         uint32_t language;
959         enum drsuapi_DsNameFlags format_flags;
960         enum drsuapi_DsNameFormat format_offered;
961         enum drsuapi_DsNameFormat format_desired;
962         uint32_t count;/* [range(1,10000)] */
963         struct drsuapi_DsNameString *names;/* [unique,size_is(count)] */
964 };
965
966 union drsuapi_DsNameRequest {
967         struct drsuapi_DsNameRequest1 req1;/* [case] */
968 }/* [switch_type(int32)] */;
969
970 struct drsuapi_DsNameInfo1 {
971         enum drsuapi_DsNameStatus status;
972         const char *dns_domain_name;/* [unique,charset(UTF16)] */
973         const char *result_name;/* [unique,charset(UTF16)] */
974 };
975
976 struct drsuapi_DsNameCtr1 {
977         uint32_t count;
978         struct drsuapi_DsNameInfo1 *array;/* [unique,size_is(count)] */
979 };
980
981 union drsuapi_DsNameCtr {
982         struct drsuapi_DsNameCtr1 *ctr1;/* [unique,case] */
983 }/* [switch_type(int32)] */;
984
985 enum drsuapi_DsSpnOperation
986 #ifndef USE_UINT_ENUMS
987  {
988         DRSUAPI_DS_SPN_OPERATION_ADD=(int)(0),
989         DRSUAPI_DS_SPN_OPERATION_REPLACE=(int)(1),
990         DRSUAPI_DS_SPN_OPERATION_DELETE=(int)(2)
991 }
992 #else
993  { __donnot_use_enum_drsuapi_DsSpnOperation=0x7FFFFFFF}
994 #define DRSUAPI_DS_SPN_OPERATION_ADD ( 0 )
995 #define DRSUAPI_DS_SPN_OPERATION_REPLACE ( 1 )
996 #define DRSUAPI_DS_SPN_OPERATION_DELETE ( 2 )
997 #endif
998 ;
999
1000 struct drsuapi_DsWriteAccountSpnRequest1 {
1001         enum drsuapi_DsSpnOperation operation;
1002         uint32_t unknown1;
1003         const char *object_dn;/* [unique,charset(UTF16)] */
1004         uint32_t count;/* [range(0,10000)] */
1005         struct drsuapi_DsNameString *spn_names;/* [unique,size_is(count)] */
1006 };
1007
1008 union drsuapi_DsWriteAccountSpnRequest {
1009         struct drsuapi_DsWriteAccountSpnRequest1 req1;/* [case] */
1010 }/* [switch_type(int32)] */;
1011
1012 struct drsuapi_DsWriteAccountSpnResult1 {
1013         WERROR status;
1014 };
1015
1016 union drsuapi_DsWriteAccountSpnResult {
1017         struct drsuapi_DsWriteAccountSpnResult1 res1;/* [case] */
1018 }/* [switch_type(int32)] */;
1019
1020 struct drsuapi_DsRemoveDSServerRequest1 {
1021         const char *server_dn;/* [unique,charset(UTF16)] */
1022         const char *domain_dn;/* [unique,charset(UTF16)] */
1023         uint32_t commit;
1024 };
1025
1026 union drsuapi_DsRemoveDSServerRequest {
1027         struct drsuapi_DsRemoveDSServerRequest1 req1;/* [case] */
1028 }/* [switch_type(int32)] */;
1029
1030 struct drsuapi_DsRemoveDSServerResult1 {
1031         uint32_t last_dc_in_domain;
1032 };
1033
1034 union drsuapi_DsRemoveDSServerResult {
1035         struct drsuapi_DsRemoveDSServerResult1 res1;/* [case] */
1036 }/* [switch_type(int32)] */;
1037
1038 struct drsuapi_DsGetDCInfoRequest1 {
1039         const char *domain_name;/* [unique,charset(UTF16)] */
1040         int32_t level;
1041 };
1042
1043 union drsuapi_DsGetDCInfoRequest {
1044         struct drsuapi_DsGetDCInfoRequest1 req1;/* [case] */
1045 }/* [switch_type(int32)] */;
1046
1047 struct drsuapi_DsGetDCInfo1 {
1048         const char *netbios_name;/* [unique,charset(UTF16)] */
1049         const char *dns_name;/* [unique,charset(UTF16)] */
1050         const char *site_name;/* [unique,charset(UTF16)] */
1051         const char *computer_dn;/* [unique,charset(UTF16)] */
1052         const char *server_dn;/* [unique,charset(UTF16)] */
1053         uint32_t is_pdc;
1054         uint32_t is_enabled;
1055 };
1056
1057 struct drsuapi_DsGetDCInfoCtr1 {
1058         uint32_t count;/* [range(0,10000)] */
1059         struct drsuapi_DsGetDCInfo1 *array;/* [unique,size_is(count)] */
1060 };
1061
1062 struct drsuapi_DsGetDCInfo2 {
1063         const char *netbios_name;/* [unique,charset(UTF16)] */
1064         const char *dns_name;/* [unique,charset(UTF16)] */
1065         const char *site_name;/* [unique,charset(UTF16)] */
1066         const char *site_dn;/* [unique,charset(UTF16)] */
1067         const char *computer_dn;/* [unique,charset(UTF16)] */
1068         const char *server_dn;/* [unique,charset(UTF16)] */
1069         const char *ntds_dn;/* [unique,charset(UTF16)] */
1070         uint32_t is_pdc;
1071         uint32_t is_enabled;
1072         uint32_t is_gc;
1073         struct GUID site_guid;
1074         struct GUID computer_guid;
1075         struct GUID server_guid;
1076         struct GUID ntds_guid;
1077 };
1078
1079 struct drsuapi_DsGetDCInfoCtr2 {
1080         uint32_t count;/* [range(0,10000)] */
1081         struct drsuapi_DsGetDCInfo2 *array;/* [unique,size_is(count)] */
1082 };
1083
1084 struct drsuapi_DsGetDCInfo3 {
1085         const char *netbios_name;/* [unique,charset(UTF16)] */
1086         const char *dns_name;/* [unique,charset(UTF16)] */
1087         const char *site_name;/* [unique,charset(UTF16)] */
1088         const char *site_dn;/* [unique,charset(UTF16)] */
1089         const char *computer_dn;/* [unique,charset(UTF16)] */
1090         const char *server_dn;/* [unique,charset(UTF16)] */
1091         const char *ntds_dn;/* [unique,charset(UTF16)] */
1092         uint32_t is_pdc;
1093         uint32_t is_enabled;
1094         uint32_t is_gc;
1095         uint32_t is_rodc;
1096         struct GUID site_guid;
1097         struct GUID computer_guid;
1098         struct GUID server_guid;
1099         struct GUID ntds_guid;
1100 };
1101
1102 struct drsuapi_DsGetDCInfoCtr3 {
1103         uint32_t count;/* [range(0,10000)] */
1104         struct drsuapi_DsGetDCInfo3 *array;/* [unique,size_is(count)] */
1105 };
1106
1107 struct drsuapi_DsGetDCConnection01 {
1108         const char * client_ip_address;/* [flag(LIBNDR_FLAG_BIGENDIAN)] */
1109         uint32_t unknown2;
1110         uint32_t connection_time;
1111         uint32_t unknown4;
1112         uint32_t unknown5;
1113         uint32_t unknown6;
1114         const char *client_account;/* [unique,charset(UTF16)] */
1115 };
1116
1117 struct drsuapi_DsGetDCConnectionCtr01 {
1118         uint32_t count;/* [range(0,10000)] */
1119         struct drsuapi_DsGetDCConnection01 *array;/* [unique,size_is(count)] */
1120 };
1121
1122 enum drsuapi_DsGetDCInfoCtrLevels
1123 #ifndef USE_UINT_ENUMS
1124  {
1125         DRSUAPI_DC_INFO_CTR_1=(int)(1),
1126         DRSUAPI_DC_INFO_CTR_2=(int)(2),
1127         DRSUAPI_DC_INFO_CTR_3=(int)(3),
1128         DRSUAPI_DC_CONNECTION_CTR_01=(int)(-1)
1129 }
1130 #else
1131  { __donnot_use_enum_drsuapi_DsGetDCInfoCtrLevels=0x7FFFFFFF}
1132 #define DRSUAPI_DC_INFO_CTR_1 ( 1 )
1133 #define DRSUAPI_DC_INFO_CTR_2 ( 2 )
1134 #define DRSUAPI_DC_INFO_CTR_3 ( 3 )
1135 #define DRSUAPI_DC_CONNECTION_CTR_01 ( -1 )
1136 #endif
1137 ;
1138
1139 union drsuapi_DsGetDCInfoCtr {
1140         struct drsuapi_DsGetDCInfoCtr1 ctr1;/* [case(DRSUAPI_DC_INFO_CTR_1)] */
1141         struct drsuapi_DsGetDCInfoCtr2 ctr2;/* [case(DRSUAPI_DC_INFO_CTR_2)] */
1142         struct drsuapi_DsGetDCInfoCtr3 ctr3;/* [case(DRSUAPI_DC_INFO_CTR_3)] */
1143         struct drsuapi_DsGetDCConnectionCtr01 ctr01;/* [case(DRSUAPI_DC_CONNECTION_CTR_01)] */
1144 }/* [switch_type(int32)] */;
1145
1146 struct drsuapi_DsReplicaObjectListItem {
1147         struct drsuapi_DsReplicaObjectListItem *next_object;/* [unique] */
1148         struct drsuapi_DsReplicaObject object;
1149 }/* [noprint,public] */;
1150
1151 struct drsuapi_DsAddEntryRequest2 {
1152         struct drsuapi_DsReplicaObjectListItem first_object;
1153 };
1154
1155 union drsuapi_DsAddEntryRequest {
1156         struct drsuapi_DsAddEntryRequest2 req2;/* [case(2)] */
1157 }/* [switch_type(int32)] */;
1158
1159 struct drsuapi_DsAddEntryErrorInfoX {
1160         uint32_t unknown1;
1161         WERROR status;
1162         uint32_t unknown2;
1163         uint16_t unknown3;
1164 };
1165
1166 struct drsuapi_DsAddEntryExtraErrorBuffer {
1167         uint32_t size;/* [range(0,10485760)] */
1168         uint8_t *data;/* [unique,size_is(size)] */
1169 };
1170
1171 struct drsuapi_DsAddEntryExtraError1 {
1172         struct drsuapi_DsAddEntryErrorInfoX error;
1173         enum drsuapi_DsAttributeId attid;
1174         uint32_t unknown2;
1175         struct drsuapi_DsAddEntryExtraErrorBuffer buffer;
1176 };
1177
1178 struct drsuapi_DsAddEntryErrorListItem1 {
1179         struct drsuapi_DsAddEntryErrorListItem1 *next;/* [unique] */
1180         struct drsuapi_DsAddEntryExtraError1 error;
1181 };
1182
1183 struct drsuapi_DsAddEntryErrorInfo1 {
1184         struct drsuapi_DsReplicaObjectIdentifier *id;/* [unique] */
1185         WERROR status;
1186         struct drsuapi_DsAddEntryErrorListItem1 first;
1187 };
1188
1189 union drsuapi_DsAddEntryErrorInfo {
1190         struct drsuapi_DsAddEntryErrorInfo1 error1;/* [case] */
1191         struct drsuapi_DsAddEntryErrorInfoX errorX;/* [case(4)] */
1192 }/* [switch_type(uint32)] */;
1193
1194 struct drsuapi_DsAddEntryError1 {
1195         WERROR status;
1196         uint32_t level;
1197         union drsuapi_DsAddEntryErrorInfo *info;/* [unique,switch_is(level)] */
1198 };
1199
1200 union drsuapi_DsAddEntryError {
1201         struct drsuapi_DsAddEntryError1 info1;/* [case] */
1202 }/* [switch_type(uint32)] */;
1203
1204 struct drsuapi_DsReplicaObjectIdentifier2 {
1205         struct GUID guid;
1206         struct dom_sid28 sid;
1207 };
1208
1209 struct drsuapi_DsAddEntryCtr2 {
1210         struct drsuapi_DsReplicaObjectIdentifier *id;/* [unique] */
1211         uint32_t unknown1;
1212         struct drsuapi_DsAddEntryErrorInfoX error;
1213         uint32_t count;/* [range(0,10000)] */
1214         struct drsuapi_DsReplicaObjectIdentifier2 *objects;/* [unique,size_is(count)] */
1215 };
1216
1217 struct drsuapi_DsAddEntryCtr3 {
1218         struct drsuapi_DsReplicaObjectIdentifier *id;/* [unique] */
1219         uint32_t level;
1220         union drsuapi_DsAddEntryError *error;/* [unique,switch_is(level)] */
1221         uint32_t count;/* [range(0,10000)] */
1222         struct drsuapi_DsReplicaObjectIdentifier2 *objects;/* [unique,size_is(count)] */
1223 };
1224
1225 union drsuapi_DsAddEntryCtr {
1226         struct drsuapi_DsAddEntryCtr2 ctr2;/* [case(2)] */
1227         struct drsuapi_DsAddEntryCtr3 ctr3;/* [case(3)] */
1228 }/* [switch_type(int32)] */;
1229
1230 /* bitmap drsuapi_DsExecuteKCCFlags */
1231 #define DRSUAPI_DS_EXECUTE_KCC_ASYNCHRONOUS_OPERATION ( 0x00000001 )
1232 #define DRSUAPI_DS_EXECUTE_KCC_DAMPED ( 0x00000002 )
1233
1234 struct drsuapi_DsExecuteKCC1 {
1235         uint32_t taskID;
1236         uint32_t flags;
1237 };
1238
1239 union drsuapi_DsExecuteKCCRequest {
1240         struct drsuapi_DsExecuteKCC1 ctr1;/* [case] */
1241 }/* [switch_type(uint32)] */;
1242
1243 enum drsuapi_DsReplicaGetInfoLevel
1244 #ifndef USE_UINT_ENUMS
1245  {
1246         DRSUAPI_DS_REPLICA_GET_INFO=(int)(1),
1247         DRSUAPI_DS_REPLICA_GET_INFO2=(int)(2)
1248 }
1249 #else
1250  { __donnot_use_enum_drsuapi_DsReplicaGetInfoLevel=0x7FFFFFFF}
1251 #define DRSUAPI_DS_REPLICA_GET_INFO ( 1 )
1252 #define DRSUAPI_DS_REPLICA_GET_INFO2 ( 2 )
1253 #endif
1254 ;
1255
1256 enum drsuapi_DsReplicaInfoType
1257 #ifndef USE_UINT_ENUMS
1258  {
1259         DRSUAPI_DS_REPLICA_INFO_NEIGHBORS=(int)(0),
1260         DRSUAPI_DS_REPLICA_INFO_CURSORS=(int)(1),
1261         DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA=(int)(2),
1262         DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES=(int)(3),
1263         DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES=(int)(4),
1264         DRSUAPI_DS_REPLICA_INFO_PENDING_OPS=(int)(5),
1265         DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA=(int)(6),
1266         DRSUAPI_DS_REPLICA_INFO_CURSORS2=(int)(7),
1267         DRSUAPI_DS_REPLICA_INFO_CURSORS3=(int)(8),
1268         DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2=(int)(9),
1269         DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2=(int)(10),
1270         DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02=(int)(-2),
1271         DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04=(int)(-4),
1272         DRSUAPI_DS_REPLICA_INFO_CURSORS05=(int)(-5),
1273         DRSUAPI_DS_REPLICA_INFO_06=(int)(-6)
1274 }
1275 #else
1276  { __donnot_use_enum_drsuapi_DsReplicaInfoType=0x7FFFFFFF}
1277 #define DRSUAPI_DS_REPLICA_INFO_NEIGHBORS ( 0 )
1278 #define DRSUAPI_DS_REPLICA_INFO_CURSORS ( 1 )
1279 #define DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA ( 2 )
1280 #define DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES ( 3 )
1281 #define DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES ( 4 )
1282 #define DRSUAPI_DS_REPLICA_INFO_PENDING_OPS ( 5 )
1283 #define DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA ( 6 )
1284 #define DRSUAPI_DS_REPLICA_INFO_CURSORS2 ( 7 )
1285 #define DRSUAPI_DS_REPLICA_INFO_CURSORS3 ( 8 )
1286 #define DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2 ( 9 )
1287 #define DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2 ( 10 )
1288 #define DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02 ( -2 )
1289 #define DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04 ( -4 )
1290 #define DRSUAPI_DS_REPLICA_INFO_CURSORS05 ( -5 )
1291 #define DRSUAPI_DS_REPLICA_INFO_06 ( -6 )
1292 #endif
1293 ;
1294
1295 struct drsuapi_DsReplicaGetInfoRequest1 {
1296         enum drsuapi_DsReplicaInfoType info_type;
1297         const char *object_dn;/* [unique,charset(UTF16)] */
1298         struct GUID guid1;
1299 };
1300
1301 struct drsuapi_DsReplicaGetInfoRequest2 {
1302         enum drsuapi_DsReplicaInfoType info_type;
1303         const char *object_dn;/* [unique,charset(UTF16)] */
1304         struct GUID guid1;
1305         uint32_t unknown1;
1306         const char *string1;/* [unique,charset(UTF16)] */
1307         const char *string2;/* [unique,charset(UTF16)] */
1308         uint32_t unknown2;
1309 };
1310
1311 union drsuapi_DsReplicaGetInfoRequest {
1312         struct drsuapi_DsReplicaGetInfoRequest1 req1;/* [case(DRSUAPI_DS_REPLICA_GET_INFO)] */
1313         struct drsuapi_DsReplicaGetInfoRequest2 req2;/* [case(DRSUAPI_DS_REPLICA_GET_INFO2)] */
1314 }/* [switch_type(drsuapi_DsReplicaGetInfoLevel)] */;
1315
1316 struct drsuapi_DsReplicaNeighbour {
1317         const char *naming_context_dn;/* [unique,charset(UTF16)] */
1318         const char *source_dsa_obj_dn;/* [unique,charset(UTF16)] */
1319         const char *source_dsa_address;/* [unique,charset(UTF16)] */
1320         const char *transport_obj_dn;/* [unique,charset(UTF16)] */
1321         uint32_t replica_flags;
1322         uint32_t reserved;
1323         struct GUID naming_context_obj_guid;
1324         struct GUID source_dsa_obj_guid;
1325         struct GUID source_dsa_invocation_id;
1326         struct GUID transport_obj_guid;
1327         uint64_t tmp_highest_usn;
1328         uint64_t highest_usn;
1329         NTTIME last_success;
1330         NTTIME last_attempt;
1331         WERROR result_last_attempt;
1332         uint32_t consecutive_sync_failures;
1333 };
1334
1335 struct drsuapi_DsReplicaNeighbourCtr {
1336         uint32_t count;
1337         uint32_t reserved;
1338         struct drsuapi_DsReplicaNeighbour *array;/* [size_is(count)] */
1339 };
1340
1341 struct drsuapi_DsReplicaCursorCtr {
1342         uint32_t count;
1343         uint32_t reserved;
1344         struct drsuapi_DsReplicaCursor *array;/* [size_is(count)] */
1345 };
1346
1347 struct drsuapi_DsReplicaObjMetaData {
1348         const char *attribute_name;/* [unique,charset(UTF16)] */
1349         uint32_t version;
1350         NTTIME originating_change_time;
1351         struct GUID originating_invocation_id;
1352         uint64_t originating_usn;
1353         uint64_t local_usn;
1354 };
1355
1356 struct drsuapi_DsReplicaObjMetaDataCtr {
1357         uint32_t count;
1358         uint32_t reserved;
1359         struct drsuapi_DsReplicaObjMetaData *array;/* [size_is(count)] */
1360 };
1361
1362 struct drsuapi_DsReplicaKccDsaFailure {
1363         const char *dsa_obj_dn;/* [unique,charset(UTF16)] */
1364         struct GUID dsa_obj_guid;
1365         NTTIME first_failure;
1366         uint32_t num_failures;
1367         WERROR last_result;
1368 };
1369
1370 struct drsuapi_DsReplicaKccDsaFailuresCtr {
1371         uint32_t count;
1372         uint32_t reserved;
1373         struct drsuapi_DsReplicaKccDsaFailure *array;/* [size_is(count)] */
1374 };
1375
1376 enum drsuapi_DsReplicaOpType
1377 #ifndef USE_UINT_ENUMS
1378  {
1379         DRSUAPI_DS_REPLICA_OP_TYPE_SYNC=(int)(0),
1380         DRSUAPI_DS_REPLICA_OP_TYPE_ADD=(int)(1),
1381         DRSUAPI_DS_REPLICA_OP_TYPE_DELETE=(int)(2),
1382         DRSUAPI_DS_REPLICA_OP_TYPE_MODIFY=(int)(3),
1383         DRSUAPI_DS_REPLICA_OP_TYPE_UPDATE_REFS=(int)(4)
1384 }
1385 #else
1386  { __donnot_use_enum_drsuapi_DsReplicaOpType=0x7FFFFFFF}
1387 #define DRSUAPI_DS_REPLICA_OP_TYPE_SYNC ( 0 )
1388 #define DRSUAPI_DS_REPLICA_OP_TYPE_ADD ( 1 )
1389 #define DRSUAPI_DS_REPLICA_OP_TYPE_DELETE ( 2 )
1390 #define DRSUAPI_DS_REPLICA_OP_TYPE_MODIFY ( 3 )
1391 #define DRSUAPI_DS_REPLICA_OP_TYPE_UPDATE_REFS ( 4 )
1392 #endif
1393 ;
1394
1395 union drsuapi_DsRplicaOpOptions {
1396         uint32_t sync;/* [case(DRSUAPI_DS_REPLICA_OP_TYPE_SYNC)] */
1397         uint32_t add;/* [case(DRSUAPI_DS_REPLICA_OP_TYPE_ADD)] */
1398         uint32_t op_delete;/* [case(DRSUAPI_DS_REPLICA_OP_TYPE_DELETE)] */
1399         uint32_t modify;/* [case(DRSUAPI_DS_REPLICA_OP_TYPE_MODIFY)] */
1400         uint32_t update_refs;/* [case(DRSUAPI_DS_REPLICA_OP_TYPE_UPDATE_REFS)] */
1401         uint32_t unknown;/* [default] */
1402 }/* [switch_type(drsuapi_DsReplicaOpType)] */;
1403
1404 struct drsuapi_DsReplicaOp {
1405         NTTIME operation_start;
1406         uint32_t serial_num;
1407         uint32_t priority;
1408         enum drsuapi_DsReplicaOpType operation_type;
1409         union drsuapi_DsRplicaOpOptions options;/* [switch_is(operation_type)] */
1410         const char *nc_dn;/* [unique,charset(UTF16)] */
1411         const char *remote_dsa_obj_dn;/* [unique,charset(UTF16)] */
1412         const char *remote_dsa_address;/* [unique,charset(UTF16)] */
1413         struct GUID nc_obj_guid;
1414         struct GUID remote_dsa_obj_guid;
1415 };
1416
1417 struct drsuapi_DsReplicaOpCtr {
1418         NTTIME time;
1419         uint32_t count;
1420         struct drsuapi_DsReplicaOp *array;/* [size_is(count)] */
1421 };
1422
1423 struct drsuapi_DsReplicaAttrValMetaData {
1424         const char *attribute_name;/* [unique,charset(UTF16)] */
1425         const char *object_dn;/* [unique,charset(UTF16)] */
1426         uint32_t __ndr_size_binary;/* [value(ndr_size_DATA_BLOB(0,binary,0))] */
1427         DATA_BLOB *binary;/* [unique] */
1428         NTTIME deleted;
1429         NTTIME created;
1430         uint32_t version;
1431         NTTIME originating_change_time;
1432         struct GUID originating_invocation_id;
1433         uint64_t originating_usn;
1434         uint64_t local_usn;
1435 };
1436
1437 struct drsuapi_DsReplicaAttrValMetaDataCtr {
1438         uint32_t count;
1439         int32_t enumeration_context;
1440         struct drsuapi_DsReplicaAttrValMetaData *array;/* [size_is(count)] */
1441 };
1442
1443 struct drsuapi_DsReplicaCursor2Ctr {
1444         uint32_t count;
1445         int32_t enumeration_context;
1446         struct drsuapi_DsReplicaCursor2 *array;/* [size_is(count)] */
1447 };
1448
1449 struct drsuapi_DsReplicaCursor3 {
1450         struct GUID source_dsa_invocation_id;
1451         uint64_t highest_usn;
1452         NTTIME last_sync_success;
1453         const char *source_dsa_obj_dn;/* [unique,charset(UTF16)] */
1454 };
1455
1456 struct drsuapi_DsReplicaCursor3Ctr {
1457         uint32_t count;
1458         int32_t enumeration_context;
1459         struct drsuapi_DsReplicaCursor3 *array;/* [size_is(count)] */
1460 };
1461
1462 struct drsuapi_DsReplicaObjMetaData2 {
1463         const char *attribute_name;/* [unique,charset(UTF16)] */
1464         uint32_t version;
1465         NTTIME originating_change_time;
1466         struct GUID originating_invocation_id;
1467         uint64_t originating_usn;
1468         uint64_t local_usn;
1469         const char *originating_dsa_dn;/* [unique,charset(UTF16)] */
1470 };
1471
1472 struct drsuapi_DsReplicaObjMetaData2Ctr {
1473         uint32_t count;
1474         int32_t enumeration_context;
1475         struct drsuapi_DsReplicaObjMetaData2 *array;/* [size_is(count)] */
1476 };
1477
1478 struct drsuapi_DsReplicaAttrValMetaData2 {
1479         const char *attribute_name;/* [unique,charset(UTF16)] */
1480         const char *object_dn;/* [unique,charset(UTF16)] */
1481         uint32_t __ndr_size_binary;/* [value(ndr_size_DATA_BLOB(0,binary,0))] */
1482         DATA_BLOB *binary;/* [unique] */
1483         NTTIME deleted;
1484         NTTIME created;
1485         uint32_t version;
1486         NTTIME originating_change_time;
1487         struct GUID originating_invocation_id;
1488         uint64_t originating_usn;
1489         uint64_t local_usn;
1490         const char *originating_dsa_dn;/* [unique,charset(UTF16)] */
1491 };
1492
1493 struct drsuapi_DsReplicaAttrValMetaData2Ctr {
1494         uint32_t count;
1495         int32_t enumeration_context;
1496         struct drsuapi_DsReplicaAttrValMetaData2 *array;/* [size_is(count)] */
1497 };
1498
1499 struct drsuapi_DsReplicaConnection04 {
1500         uint64_t u1;
1501         uint32_t u2;
1502         uint32_t u3;
1503         struct GUID bind_guid;
1504         NTTIME bind_time;
1505         const char * client_ip_address;/* [flag(LIBNDR_FLAG_BIGENDIAN)] */
1506         uint32_t u5;
1507 };
1508
1509 struct drsuapi_DsReplicaConnection04Ctr {
1510         uint32_t count;/* [range(0,10000)] */
1511         uint32_t reserved;
1512         struct drsuapi_DsReplicaConnection04 *array;/* [size_is(count)] */
1513 };
1514
1515 struct drsuapi_DsReplica06 {
1516         const char *str1;/* [unique,charset(UTF16)] */
1517         uint32_t u1;
1518         uint32_t u2;
1519         uint32_t u3;
1520         uint32_t u4;
1521         uint32_t u5;
1522         uint64_t u6;
1523         uint32_t u7;
1524 };
1525
1526 struct drsuapi_DsReplica06Ctr {
1527         uint32_t count;/* [range(0,256)] */
1528         uint32_t reserved;
1529         struct drsuapi_DsReplica06 *array;/* [size_is(count)] */
1530 };
1531
1532 union drsuapi_DsReplicaInfo {
1533         struct drsuapi_DsReplicaNeighbourCtr *neighbours;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_NEIGHBORS)] */
1534         struct drsuapi_DsReplicaCursorCtr *cursors;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_CURSORS)] */
1535         struct drsuapi_DsReplicaObjMetaDataCtr *objmetadata;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA)] */
1536         struct drsuapi_DsReplicaKccDsaFailuresCtr *connectfailures;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_KCC_DSA_CONNECT_FAILURES)] */
1537         struct drsuapi_DsReplicaKccDsaFailuresCtr *linkfailures;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_KCC_DSA_LINK_FAILURES)] */
1538         struct drsuapi_DsReplicaOpCtr *pendingops;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_PENDING_OPS)] */
1539         struct drsuapi_DsReplicaAttrValMetaDataCtr *attrvalmetadata;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA)] */
1540         struct drsuapi_DsReplicaCursor2Ctr *cursors2;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_CURSORS2)] */
1541         struct drsuapi_DsReplicaCursor3Ctr *cursors3;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_CURSORS3)] */
1542         struct drsuapi_DsReplicaObjMetaData2Ctr *objmetadata2;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_OBJ_METADATA2)] */
1543         struct drsuapi_DsReplicaAttrValMetaData2Ctr *attrvalmetadata2;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_ATTRIBUTE_VALUE_METADATA2)] */
1544         struct drsuapi_DsReplicaNeighbourCtr *neighbours02;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_NEIGHBORS02)] */
1545         struct drsuapi_DsReplicaConnection04Ctr *connections04;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_CONNECTIONS04)] */
1546         struct drsuapi_DsReplicaCursorCtrEx *cursors05;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_CURSORS05)] */
1547         struct drsuapi_DsReplica06Ctr *i06;/* [unique,case(DRSUAPI_DS_REPLICA_INFO_06)] */
1548 }/* [switch_type(drsuapi_DsReplicaInfoType)] */;
1549
1550 struct drsuapi_DsGetMemberships2Ctr1 {
1551         uint32_t num_entries;/* [range(0,10000)] */
1552         struct drsuapi_DsGetMembershipsCtr1 **ctrl_array;/* [unique,size_is(num_entries)] */
1553 };
1554
1555 union drsuapi_DsGetMemberships2Ctr {
1556         struct drsuapi_DsGetMembershipsCtr1 ctr1;/* [case] */
1557 }/* [switch_type(int32)] */;
1558
1559 struct drsuapi_DsGetMemberships2Request1 {
1560         uint32_t num_req;/* [range(1,10000)] */
1561         struct drsuapi_DsGetMembershipsRequest1 **req_array;/* [unique,size_is(num_req)] */
1562 };
1563
1564 union drsuapi_DsGetMemberships2Request {
1565         struct drsuapi_DsGetMemberships2Request1 req1;/* [case] */
1566 }/* [switch_type(int32)] */;
1567
1568 struct drsuapi_DsSiteCostInfo {
1569         WERROR error_code;
1570         uint32_t site_cost;
1571 };
1572
1573 struct drsuapi_QuerySitesByCostCtr1 {
1574         uint32_t num_info;/* [range(0,10000)] */
1575         struct drsuapi_DsSiteCostInfo *info;/* [unique,size_is(num_info)] */
1576         uint32_t unknown;
1577 };
1578
1579 union drsuapi_QuerySitesByCostCtr {
1580         struct drsuapi_QuerySitesByCostCtr1 ctr1;/* [case] */
1581 }/* [switch_type(int32)] */;
1582
1583 struct drsuapi_QuerySitesByCostRequest1 {
1584         const char *site_from;/* [unique,charset(UTF16)] */
1585         uint32_t num_req;/* [range(1,10000)] */
1586         const char **site_to;/* [unique,charset(UTF16),size_is(num_req)] */
1587         uint32_t flags;
1588 };
1589
1590 union drsuapi_QuerySitesByCostRequest {
1591         struct drsuapi_QuerySitesByCostRequest1 req1;/* [case] */
1592 }/* [switch_type(int32)] */;
1593
1594
1595 struct drsuapi_DsBind {
1596         struct {
1597                 struct GUID *bind_guid;/* [unique] */
1598                 struct drsuapi_DsBindInfoCtr *bind_info;/* [unique] */
1599         } in;
1600
1601         struct {
1602                 struct policy_handle *bind_handle;/* [ref] */
1603                 struct drsuapi_DsBindInfoCtr *bind_info;/* [unique] */
1604                 WERROR result;
1605         } out;
1606
1607 };
1608
1609
1610 struct drsuapi_DsUnbind {
1611         struct {
1612                 struct policy_handle *bind_handle;/* [ref] */
1613         } in;
1614
1615         struct {
1616                 struct policy_handle *bind_handle;/* [ref] */
1617                 WERROR result;
1618         } out;
1619
1620 };
1621
1622
1623 struct drsuapi_DsReplicaSync {
1624         struct {
1625                 struct policy_handle *bind_handle;/* [ref] */
1626                 int32_t level;
1627                 union drsuapi_DsReplicaSyncRequest req;/* [switch_is(level)] */
1628         } in;
1629
1630         struct {
1631                 WERROR result;
1632         } out;
1633
1634 };
1635
1636
1637 struct drsuapi_DsGetNCChanges {
1638         struct {
1639                 struct policy_handle *bind_handle;/* [ref] */
1640                 int32_t level;
1641                 union drsuapi_DsGetNCChangesRequest *req;/* [ref,switch_is(level)] */
1642         } in;
1643
1644         struct {
1645                 int32_t *level_out;/* [ref] */
1646                 union drsuapi_DsGetNCChangesCtr *ctr;/* [ref,switch_is(*level_out)] */
1647                 WERROR result;
1648         } out;
1649
1650 };
1651
1652
1653 struct drsuapi_DsReplicaUpdateRefs {
1654         struct {
1655                 struct policy_handle *bind_handle;/* [ref] */
1656                 int32_t level;
1657                 union drsuapi_DsReplicaUpdateRefsRequest req;/* [switch_is(level)] */
1658         } in;
1659
1660         struct {
1661                 WERROR result;
1662         } out;
1663
1664 };
1665
1666
1667 struct drsuapi_DsReplicaAdd {
1668         struct {
1669                 struct policy_handle *bind_handle;/* [ref] */
1670                 int32_t level;
1671                 union drsuapi_DsReplicaAddRequest req;/* [switch_is(level)] */
1672         } in;
1673
1674         struct {
1675                 WERROR result;
1676         } out;
1677
1678 };
1679
1680
1681 struct drsuapi_DsReplicaDel {
1682         struct {
1683                 struct policy_handle *bind_handle;/* [ref] */
1684                 int32_t level;
1685                 union drsuapi_DsReplicaDelRequest req;/* [switch_is(level)] */
1686         } in;
1687
1688         struct {
1689                 WERROR result;
1690         } out;
1691
1692 };
1693
1694
1695 struct drsuapi_DsReplicaMod {
1696         struct {
1697                 struct policy_handle *bind_handle;/* [ref] */
1698                 int32_t level;
1699                 union drsuapi_DsReplicaModRequest req;/* [switch_is(level)] */
1700         } in;
1701
1702         struct {
1703                 WERROR result;
1704         } out;
1705
1706 };
1707
1708
1709 struct DRSUAPI_VERIFY_NAMES {
1710         struct {
1711                 WERROR result;
1712         } out;
1713
1714 };
1715
1716
1717 struct drsuapi_DsGetMemberships {
1718         struct {
1719                 struct policy_handle *bind_handle;/* [ref] */
1720                 int32_t level;
1721                 union drsuapi_DsGetMembershipsRequest *req;/* [ref,switch_is(level)] */
1722         } in;
1723
1724         struct {
1725                 int32_t *level_out;/* [ref] */
1726                 union drsuapi_DsGetMembershipsCtr *ctr;/* [ref,switch_is(*level_out)] */
1727                 WERROR result;
1728         } out;
1729
1730 };
1731
1732
1733 struct DRSUAPI_INTER_DOMAIN_MOVE {
1734         struct {
1735                 WERROR result;
1736         } out;
1737
1738 };
1739
1740
1741 struct drsuapi_DsGetNT4ChangeLog {
1742         struct {
1743                 struct policy_handle *bind_handle;/* [ref] */
1744                 uint32_t level;
1745                 union drsuapi_DsGetNT4ChangeLogRequest *req;/* [ref,switch_is(level)] */
1746         } in;
1747
1748         struct {
1749                 uint32_t *level_out;/* [ref] */
1750                 union drsuapi_DsGetNT4ChangeLogInfo *info;/* [ref,switch_is(*level_out)] */
1751                 WERROR result;
1752         } out;
1753
1754 };
1755
1756
1757 struct drsuapi_DsCrackNames {
1758         struct {
1759                 struct policy_handle *bind_handle;/* [ref] */
1760                 int32_t level;
1761                 union drsuapi_DsNameRequest *req;/* [ref,switch_is(level)] */
1762         } in;
1763
1764         struct {
1765                 int32_t *level_out;/* [ref] */
1766                 union drsuapi_DsNameCtr *ctr;/* [ref,switch_is(*level_out)] */
1767                 WERROR result;
1768         } out;
1769
1770 };
1771
1772
1773 struct drsuapi_DsWriteAccountSpn {
1774         struct {
1775                 struct policy_handle *bind_handle;/* [ref] */
1776                 int32_t level;
1777                 union drsuapi_DsWriteAccountSpnRequest *req;/* [ref,switch_is(level)] */
1778         } in;
1779
1780         struct {
1781                 int32_t *level_out;/* [ref] */
1782                 union drsuapi_DsWriteAccountSpnResult *res;/* [ref,switch_is(*level_out)] */
1783                 WERROR result;
1784         } out;
1785
1786 };
1787
1788
1789 struct drsuapi_DsRemoveDSServer {
1790         struct {
1791                 struct policy_handle *bind_handle;/* [ref] */
1792                 int32_t level;
1793                 union drsuapi_DsRemoveDSServerRequest *req;/* [ref,switch_is(level)] */
1794         } in;
1795
1796         struct {
1797                 int32_t *level_out;/* [ref] */
1798                 union drsuapi_DsRemoveDSServerResult *res;/* [ref,switch_is(*level_out)] */
1799                 WERROR result;
1800         } out;
1801
1802 };
1803
1804
1805 struct DRSUAPI_REMOVE_DS_DOMAIN {
1806         struct {
1807                 WERROR result;
1808         } out;
1809
1810 };
1811
1812
1813 struct drsuapi_DsGetDomainControllerInfo {
1814         struct {
1815                 struct policy_handle *bind_handle;/* [ref] */
1816                 int32_t level;
1817                 union drsuapi_DsGetDCInfoRequest *req;/* [ref,switch_is(level)] */
1818         } in;
1819
1820         struct {
1821                 int32_t *level_out;/* [ref] */
1822                 union drsuapi_DsGetDCInfoCtr *ctr;/* [ref,switch_is(*level_out)] */
1823                 WERROR result;
1824         } out;
1825
1826 };
1827
1828
1829 struct drsuapi_DsAddEntry {
1830         struct {
1831                 struct policy_handle *bind_handle;/* [ref] */
1832                 int32_t level;
1833                 union drsuapi_DsAddEntryRequest *req;/* [ref,switch_is(level)] */
1834         } in;
1835
1836         struct {
1837                 int32_t *level_out;/* [ref] */
1838                 union drsuapi_DsAddEntryCtr *ctr;/* [ref,switch_is(*level_out)] */
1839                 WERROR result;
1840         } out;
1841
1842 };
1843
1844
1845 struct drsuapi_DsExecuteKCC {
1846         struct {
1847                 struct policy_handle *bind_handle;/* [ref] */
1848                 uint32_t level;
1849                 union drsuapi_DsExecuteKCCRequest *req;/* [ref,switch_is(level)] */
1850         } in;
1851
1852         struct {
1853                 WERROR result;
1854         } out;
1855
1856 };
1857
1858
1859 struct drsuapi_DsReplicaGetInfo {
1860         struct {
1861                 struct policy_handle *bind_handle;/* [ref] */
1862                 enum drsuapi_DsReplicaGetInfoLevel level;
1863                 union drsuapi_DsReplicaGetInfoRequest *req;/* [ref,switch_is(level)] */
1864         } in;
1865
1866         struct {
1867                 enum drsuapi_DsReplicaInfoType *info_type;/* [ref] */
1868                 union drsuapi_DsReplicaInfo *info;/* [ref,switch_is(*info_type)] */
1869                 WERROR result;
1870         } out;
1871
1872 };
1873
1874
1875 struct DRSUAPI_ADD_SID_HISTORY {
1876         struct {
1877                 WERROR result;
1878         } out;
1879
1880 };
1881
1882
1883 struct drsuapi_DsGetMemberships2 {
1884         struct {
1885                 struct policy_handle *bind_handle;/* [ref] */
1886                 int32_t level;
1887                 union drsuapi_DsGetMemberships2Request *req;/* [ref,switch_is(level)] */
1888         } in;
1889
1890         struct {
1891                 int32_t *level_out;/* [ref] */
1892                 union drsuapi_DsGetMemberships2Ctr *ctr;/* [ref,switch_is(*level_out)] */
1893                 WERROR result;
1894         } out;
1895
1896 };
1897
1898
1899 struct DRSUAPI_REPLICA_VERIFY_OBJECTS {
1900         struct {
1901                 WERROR result;
1902         } out;
1903
1904 };
1905
1906
1907 struct DRSUAPI_GET_OBJECT_EXISTENCE {
1908         struct {
1909                 WERROR result;
1910         } out;
1911
1912 };
1913
1914
1915 struct drsuapi_QuerySitesByCost {
1916         struct {
1917                 struct policy_handle *bind_handle;/* [ref] */
1918                 int32_t level;
1919                 union drsuapi_QuerySitesByCostRequest *req;/* [ref,switch_is(level)] */
1920         } in;
1921
1922         struct {
1923                 int32_t *level_out;/* [ref] */
1924                 union drsuapi_QuerySitesByCostCtr *ctr;/* [ref,switch_is(*level_out)] */
1925                 WERROR result;
1926         } out;
1927
1928 };
1929
1930 #endif /* _HEADER_drsuapi */