2004-12-31 13:47:04 +03:00
/*
dssetup interface definition
*/
2004-08-13 05:31:11 +04:00
[
2004-10-27 08:48:41 +04:00
uuid("3919286a-b10c-11d0-9ba8-00c04fd92ef5"),
2004-08-16 23:03:22 +04:00
version(0.0),
2005-01-10 15:56:34 +03:00
endpoint("ncacn_np:[\\pipe\\lsarpc]", "ncacn_np:[\\pipe\\lsass]", "ncacn_ip_tcp:", "ncalrpc:"),
2004-12-31 13:47:04 +03:00
pointer_default(unique),
2004-08-16 23:03:22 +04:00
helpstring("Active Directory Setup")
2004-08-13 05:31:11 +04:00
] interface dssetup
{
2004-12-31 13:47:04 +03:00
/**********************************************/
/* Function 0x00 */
2005-01-01 04:32:01 +03:00
typedef enum {
DS_ROLE_STANDALONE_WORKSTATION = 0,
DS_ROLE_MEMBER_WORKSTATION = 1,
DS_ROLE_STANDALONE_SERVER = 2,
DS_ROLE_MEMBER_SERVER = 3,
DS_ROLE_BACKUP_DC = 4,
DS_ROLE_PRIMARY_DC = 5
2005-01-02 19:11:59 +03:00
} dssetup_DsRole;
2005-01-26 07:34:16 +03:00
typedef [bitmap32bit] bitmap {
2005-01-05 18:37:43 +03:00
DS_ROLE_PRIMARY_DS_RUNNING = 0x00000001,
DS_ROLE_PRIMARY_DS_MIXED_MODE = 0x00000002,
DS_ROLE_UPGRADE_IN_PROGRESS = 0x00000004,
DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT = 0x01000000
} dssetup_DsRoleFlags;
2005-01-01 04:32:01 +03:00
2004-12-31 13:47:04 +03:00
typedef struct {
2005-01-05 18:37:43 +03:00
dssetup_DsRole role;
dssetup_DsRoleFlags flags;
2005-10-16 22:33:56 +04:00
[charset(UTF16),string] uint16 *domain;
[charset(UTF16),string] uint16 *dns_domain;
[charset(UTF16),string] uint16 *forest;
2005-01-05 18:37:43 +03:00
GUID domain_guid;
2005-01-02 19:11:59 +03:00
} dssetup_DsRolePrimaryDomInfoBasic;
2005-01-01 04:32:01 +03:00
2005-01-05 18:37:43 +03:00
typedef [v1_enum] enum {
2005-01-02 19:11:59 +03:00
DS_ROLE_NOT_UPGRADING = 0,
DS_ROLE_UPGRADING = 1
} dssetup_DsUpgrade;
2005-01-01 04:32:01 +03:00
typedef enum {
2005-01-02 19:11:59 +03:00
DS_ROLE_PREVIOUS_UNKNOWN = 0,
DS_ROLE_PREVIOUS_PRIMARY = 1,
DS_ROLE_PREVIOUS_BACKUP = 2
} dssetup_DsPrevious;
2005-01-01 04:32:01 +03:00
typedef struct {
2005-01-05 18:37:43 +03:00
dssetup_DsUpgrade upgrading;
dssetup_DsPrevious previous_role;
2005-01-02 19:11:59 +03:00
} dssetup_DsRoleUpgradeStatus;
2005-01-01 04:32:01 +03:00
typedef enum {
2005-01-02 19:11:59 +03:00
DS_ROLE_OP_IDLE = 0,
DS_ROLE_OP_ACTIVE = 1,
DS_ROLE_OP_NEEDS_REBOOT = 2
} dssetup_DsRoleOp;
2005-01-01 04:32:01 +03:00
typedef struct {
2005-01-05 18:37:43 +03:00
dssetup_DsRoleOp status;
2005-01-02 19:11:59 +03:00
} dssetup_DsRoleOpStatus;
2005-01-01 04:32:01 +03:00
typedef enum {
2005-01-02 19:11:59 +03:00
DS_ROLE_BASIC_INFORMATION = 1,
DS_ROLE_UPGRADE_STATUS = 2,
DS_ROLE_OP_STATUS = 3
} dssetup_DsRoleInfoLevel;
2005-01-01 04:32:01 +03:00
2005-03-06 20:02:14 +03:00
typedef [switch_type(dssetup_DsRoleInfoLevel)] union {
2005-01-02 19:11:59 +03:00
[case(DS_ROLE_BASIC_INFORMATION)] dssetup_DsRolePrimaryDomInfoBasic basic;
[case(DS_ROLE_UPGRADE_STATUS)] dssetup_DsRoleUpgradeStatus upgrade;
[case(DS_ROLE_OP_STATUS)] dssetup_DsRoleOpStatus opstatus;
} dssetup_DsRoleInfo;
2004-12-31 13:47:04 +03:00
2005-01-02 19:11:59 +03:00
WERROR dssetup_DsRoleGetPrimaryDomainInformation(
2005-01-05 18:37:43 +03:00
[in] dssetup_DsRoleInfoLevel level,
2005-10-16 19:47:28 +04:00
[out,switch_is(level),unique] dssetup_DsRoleInfo *info
2004-12-31 13:47:04 +03:00
);
2005-01-01 04:32:01 +03:00
/*
w2k3 has removed all the calls below from their implementation.
These stubs are left here only as a way of documenting the names
of the calls in case they ever turn up on the wire.
*/
2005-01-02 19:11:59 +03:00
WERROR dssetup_DsRoleDnsNameToFlatName();
WERROR dssetup_DsRoleDcAsDc();
WERROR dssetup_DsRoleDcAsReplica();
WERROR dssetup_DsRoleDemoteDc();
WERROR dssetup_DsRoleGetDcOperationProgress();
WERROR dssetup_DsRoleGetDcOperationResults();
WERROR dssetup_DsRoleCancel();
WERROR dssetup_DsRoleServerSaveStateForUpgrade();
WERROR dssetup_DsRoleUpgradeDownlevelServer();
WERROR dssetup_DsRoleAbortDownlevelServerUpgrade();
2004-08-13 05:31:11 +04:00
}