1 /* header auto-generated by pidl */
5 #include "librpc/gen_ndr/misc.h"
6 #ifndef _HEADER_dssetup
7 #define _HEADER_dssetup
10 #ifndef USE_UINT_ENUMS
12 DS_ROLE_STANDALONE_WORKSTATION
=0,
13 DS_ROLE_MEMBER_WORKSTATION
=1,
14 DS_ROLE_STANDALONE_SERVER
=2,
15 DS_ROLE_MEMBER_SERVER
=3,
20 { __donnot_use_enum_dssetup_DsRole
=0x7FFFFFFF}
21 #define DS_ROLE_STANDALONE_WORKSTATION ( 0 )
22 #define DS_ROLE_MEMBER_WORKSTATION ( 1 )
23 #define DS_ROLE_STANDALONE_SERVER ( 2 )
24 #define DS_ROLE_MEMBER_SERVER ( 3 )
25 #define DS_ROLE_BACKUP_DC ( 4 )
26 #define DS_ROLE_PRIMARY_DC ( 5 )
30 /* bitmap dssetup_DsRoleFlags */
31 #define DS_ROLE_PRIMARY_DS_RUNNING ( 0x00000001 )
32 #define DS_ROLE_PRIMARY_DS_MIXED_MODE ( 0x00000002 )
33 #define DS_ROLE_UPGRADE_IN_PROGRESS ( 0x00000004 )
34 #define DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT ( 0x01000000 )
36 struct dssetup_DsRolePrimaryDomInfoBasic
{
37 enum dssetup_DsRole role
;
39 const char *domain
;/* [unique,charset(UTF16)] */
40 const char *dns_domain
;/* [unique,charset(UTF16)] */
41 const char *forest
;/* [unique,charset(UTF16)] */
42 struct GUID domain_guid
;
45 enum dssetup_DsUpgrade
46 #ifndef USE_UINT_ENUMS
48 DS_ROLE_NOT_UPGRADING
=0,
52 { __donnot_use_enum_dssetup_DsUpgrade
=0x7FFFFFFF}
53 #define DS_ROLE_NOT_UPGRADING ( 0 )
54 #define DS_ROLE_UPGRADING ( 1 )
58 enum dssetup_DsPrevious
59 #ifndef USE_UINT_ENUMS
61 DS_ROLE_PREVIOUS_UNKNOWN
=0,
62 DS_ROLE_PREVIOUS_PRIMARY
=1,
63 DS_ROLE_PREVIOUS_BACKUP
=2
66 { __donnot_use_enum_dssetup_DsPrevious
=0x7FFFFFFF}
67 #define DS_ROLE_PREVIOUS_UNKNOWN ( 0 )
68 #define DS_ROLE_PREVIOUS_PRIMARY ( 1 )
69 #define DS_ROLE_PREVIOUS_BACKUP ( 2 )
73 struct dssetup_DsRoleUpgradeStatus
{
74 enum dssetup_DsUpgrade upgrading
;
75 enum dssetup_DsPrevious previous_role
;
79 #ifndef USE_UINT_ENUMS
83 DS_ROLE_OP_NEEDS_REBOOT
=2
86 { __donnot_use_enum_dssetup_DsRoleOp
=0x7FFFFFFF}
87 #define DS_ROLE_OP_IDLE ( 0 )
88 #define DS_ROLE_OP_ACTIVE ( 1 )
89 #define DS_ROLE_OP_NEEDS_REBOOT ( 2 )
93 struct dssetup_DsRoleOpStatus
{
94 enum dssetup_DsRoleOp status
;
97 enum dssetup_DsRoleInfoLevel
98 #ifndef USE_UINT_ENUMS
100 DS_ROLE_BASIC_INFORMATION
=1,
101 DS_ROLE_UPGRADE_STATUS
=2,
105 { __donnot_use_enum_dssetup_DsRoleInfoLevel
=0x7FFFFFFF}
106 #define DS_ROLE_BASIC_INFORMATION ( 1 )
107 #define DS_ROLE_UPGRADE_STATUS ( 2 )
108 #define DS_ROLE_OP_STATUS ( 3 )
112 union dssetup_DsRoleInfo
{
113 struct dssetup_DsRolePrimaryDomInfoBasic basic
;/* [case(DS_ROLE_BASIC_INFORMATION)] */
114 struct dssetup_DsRoleUpgradeStatus upgrade
;/* [case(DS_ROLE_UPGRADE_STATUS)] */
115 struct dssetup_DsRoleOpStatus opstatus
;/* [case(DS_ROLE_OP_STATUS)] */
116 }/* [switch_type(dssetup_DsRoleInfoLevel)] */;
119 struct dssetup_DsRoleGetPrimaryDomainInformation
{
121 enum dssetup_DsRoleInfoLevel level
;
125 union dssetup_DsRoleInfo
*info
;/* [unique,switch_is(level)] */
132 struct dssetup_DsRoleDnsNameToFlatName
{
140 struct dssetup_DsRoleDcAsDc
{
148 struct dssetup_DsRoleDcAsReplica
{
156 struct dssetup_DsRoleDemoteDc
{
164 struct dssetup_DsRoleGetDcOperationProgress
{
172 struct dssetup_DsRoleGetDcOperationResults
{
180 struct dssetup_DsRoleCancel
{
188 struct dssetup_DsRoleServerSaveStateForUpgrade
{
196 struct dssetup_DsRoleUpgradeDownlevelServer
{
204 struct dssetup_DsRoleAbortDownlevelServerUpgrade
{
211 #endif /* _HEADER_dssetup */