1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/misc.h"
8 #ifndef _HEADER_dssetup
9 #define _HEADER_dssetup
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,
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 )
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
;
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,
54 { __donnot_use_enum_dssetup_DsUpgrade
=0x7FFFFFFF}
55 #define DS_ROLE_NOT_UPGRADING ( 0 )
56 #define DS_ROLE_UPGRADING ( 1 )
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
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 )
75 struct dssetup_DsRoleUpgradeStatus
{
76 enum dssetup_DsUpgrade upgrading
;
77 enum dssetup_DsPrevious previous_role
;
81 #ifndef USE_UINT_ENUMS
85 DS_ROLE_OP_NEEDS_REBOOT
=2
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 )
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,
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 )
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
{
123 enum dssetup_DsRoleInfoLevel level
;
127 union dssetup_DsRoleInfo
*info
;/* [unique,switch_is(level)] */
134 struct dssetup_DsRoleDnsNameToFlatName
{
142 struct dssetup_DsRoleDcAsDc
{
150 struct dssetup_DsRoleDcAsReplica
{
158 struct dssetup_DsRoleDemoteDc
{
166 struct dssetup_DsRoleGetDcOperationProgress
{
174 struct dssetup_DsRoleGetDcOperationResults
{
182 struct dssetup_DsRoleCancel
{
190 struct dssetup_DsRoleServerSaveStateForUpgrade
{
198 struct dssetup_DsRoleUpgradeDownlevelServer
{
206 struct dssetup_DsRoleAbortDownlevelServerUpgrade
{
213 #endif /* _HEADER_dssetup */