s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
[Samba/gbeck.git] / librpc / gen_ndr / dssetup.h
blob5d254fe92e6bbb275cf9b11c525d83442a6220dc
1 /* header auto-generated by pidl */
3 #include <stdint.h>
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/misc.h"
8 #ifndef _HEADER_dssetup
9 #define _HEADER_dssetup
11 enum dssetup_DsRole
12 #ifndef USE_UINT_ENUMS
14 DS_ROLE_STANDALONE_WORKSTATION=0,
15 DS_ROLE_MEMBER_WORKSTATION=1,
16 DS_ROLE_STANDALONE_SERVER=2,
17 DS_ROLE_MEMBER_SERVER=3,
18 DS_ROLE_BACKUP_DC=4,
19 DS_ROLE_PRIMARY_DC=5
21 #else
22 { __donnot_use_enum_dssetup_DsRole=0x7FFFFFFF}
23 #define DS_ROLE_STANDALONE_WORKSTATION ( 0 )
24 #define DS_ROLE_MEMBER_WORKSTATION ( 1 )
25 #define DS_ROLE_STANDALONE_SERVER ( 2 )
26 #define DS_ROLE_MEMBER_SERVER ( 3 )
27 #define DS_ROLE_BACKUP_DC ( 4 )
28 #define DS_ROLE_PRIMARY_DC ( 5 )
29 #endif
32 /* bitmap dssetup_DsRoleFlags */
33 #define DS_ROLE_PRIMARY_DS_RUNNING ( 0x00000001 )
34 #define DS_ROLE_PRIMARY_DS_MIXED_MODE ( 0x00000002 )
35 #define DS_ROLE_UPGRADE_IN_PROGRESS ( 0x00000004 )
36 #define DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT ( 0x01000000 )
38 struct dssetup_DsRolePrimaryDomInfoBasic {
39 enum dssetup_DsRole role;
40 uint32_t flags;
41 const char *domain;/* [unique,charset(UTF16)] */
42 const char *dns_domain;/* [unique,charset(UTF16)] */
43 const char *forest;/* [unique,charset(UTF16)] */
44 struct GUID domain_guid;
47 enum dssetup_DsUpgrade
48 #ifndef USE_UINT_ENUMS
50 DS_ROLE_NOT_UPGRADING=0,
51 DS_ROLE_UPGRADING=1
53 #else
54 { __donnot_use_enum_dssetup_DsUpgrade=0x7FFFFFFF}
55 #define DS_ROLE_NOT_UPGRADING ( 0 )
56 #define DS_ROLE_UPGRADING ( 1 )
57 #endif
60 enum dssetup_DsPrevious
61 #ifndef USE_UINT_ENUMS
63 DS_ROLE_PREVIOUS_UNKNOWN=0,
64 DS_ROLE_PREVIOUS_PRIMARY=1,
65 DS_ROLE_PREVIOUS_BACKUP=2
67 #else
68 { __donnot_use_enum_dssetup_DsPrevious=0x7FFFFFFF}
69 #define DS_ROLE_PREVIOUS_UNKNOWN ( 0 )
70 #define DS_ROLE_PREVIOUS_PRIMARY ( 1 )
71 #define DS_ROLE_PREVIOUS_BACKUP ( 2 )
72 #endif
75 struct dssetup_DsRoleUpgradeStatus {
76 enum dssetup_DsUpgrade upgrading;
77 enum dssetup_DsPrevious previous_role;
80 enum dssetup_DsRoleOp
81 #ifndef USE_UINT_ENUMS
83 DS_ROLE_OP_IDLE=0,
84 DS_ROLE_OP_ACTIVE=1,
85 DS_ROLE_OP_NEEDS_REBOOT=2
87 #else
88 { __donnot_use_enum_dssetup_DsRoleOp=0x7FFFFFFF}
89 #define DS_ROLE_OP_IDLE ( 0 )
90 #define DS_ROLE_OP_ACTIVE ( 1 )
91 #define DS_ROLE_OP_NEEDS_REBOOT ( 2 )
92 #endif
95 struct dssetup_DsRoleOpStatus {
96 enum dssetup_DsRoleOp status;
99 enum dssetup_DsRoleInfoLevel
100 #ifndef USE_UINT_ENUMS
102 DS_ROLE_BASIC_INFORMATION=1,
103 DS_ROLE_UPGRADE_STATUS=2,
104 DS_ROLE_OP_STATUS=3
106 #else
107 { __donnot_use_enum_dssetup_DsRoleInfoLevel=0x7FFFFFFF}
108 #define DS_ROLE_BASIC_INFORMATION ( 1 )
109 #define DS_ROLE_UPGRADE_STATUS ( 2 )
110 #define DS_ROLE_OP_STATUS ( 3 )
111 #endif
114 union dssetup_DsRoleInfo {
115 struct dssetup_DsRolePrimaryDomInfoBasic basic;/* [case(DS_ROLE_BASIC_INFORMATION)] */
116 struct dssetup_DsRoleUpgradeStatus upgrade;/* [case(DS_ROLE_UPGRADE_STATUS)] */
117 struct dssetup_DsRoleOpStatus opstatus;/* [case(DS_ROLE_OP_STATUS)] */
118 }/* [switch_type(dssetup_DsRoleInfoLevel)] */;
121 struct dssetup_DsRoleGetPrimaryDomainInformation {
122 struct {
123 enum dssetup_DsRoleInfoLevel level;
124 } in;
126 struct {
127 union dssetup_DsRoleInfo *info;/* [unique,switch_is(level)] */
128 WERROR result;
129 } out;
134 struct dssetup_DsRoleDnsNameToFlatName {
135 struct {
136 WERROR result;
137 } out;
142 struct dssetup_DsRoleDcAsDc {
143 struct {
144 WERROR result;
145 } out;
150 struct dssetup_DsRoleDcAsReplica {
151 struct {
152 WERROR result;
153 } out;
158 struct dssetup_DsRoleDemoteDc {
159 struct {
160 WERROR result;
161 } out;
166 struct dssetup_DsRoleGetDcOperationProgress {
167 struct {
168 WERROR result;
169 } out;
174 struct dssetup_DsRoleGetDcOperationResults {
175 struct {
176 WERROR result;
177 } out;
182 struct dssetup_DsRoleCancel {
183 struct {
184 WERROR result;
185 } out;
190 struct dssetup_DsRoleServerSaveStateForUpgrade {
191 struct {
192 WERROR result;
193 } out;
198 struct dssetup_DsRoleUpgradeDownlevelServer {
199 struct {
200 WERROR result;
201 } out;
206 struct dssetup_DsRoleAbortDownlevelServerUpgrade {
207 struct {
208 WERROR result;
209 } out;
213 #endif /* _HEADER_dssetup */