summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/dssetup.idl
blob: dc57e86a112e0a40076c01e20cfa2878c58db8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "idl_types.h"

/*
  dssetup interface definition
*/

[
	uuid("3919286a-b10c-11d0-9ba8-00c04fd92ef5"),
	version(0.0),
	endpoint("ncacn_np:[\\pipe\\lsarpc]","ncacn_np:[\\pipe\\lsass]"),
	pointer_default(unique),
	helpstring("Active Directory Setup")
] interface dssetup
{
	/**********************************************/
	/* Function 0x00                              */

	typedef struct {
		uint16    role;
		uint32    flags;
		unistr    *domain;
		unistr    *dns_domain;
		unistr    *forest;
		GUID domain_guid;
	} ds_DomainBasicInformation;
	
	typedef union {
		[case(1)] ds_DomainBasicInformation basic;
	} ds_DomainInformation;

	WERROR ds_RolerGetPrimaryDomainInformation(
		[in] uint16 level,
		[out,switch_is(level)] ds_DomainInformation *info
		);


	WERROR ds_RolerDnsNameToFlatName();
	WERROR ds_RolerDcAsDc();
	WERROR ds_RolerDcAsReplica();
	WERROR ds_RolerDemoteDc();
	WERROR ds_RolerGetDcOperationProgress();
	WERROR ds_RolerGetDcOperationResults();
	WERROR ds_RolerCancel();
	WERROR ds_RolerServerSaveStateForUpgrade();
	WERROR ds_RolerUpgradeDownlevelServer();
	WERROR ds_RolerAbortDownlevelServerUpgrade();
}