summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/dfs.idl
blob: 95349b90001ded139e21c46ed7330a43ecdce5fd (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
  dfs interface definition
*/

[ uuid(4fc742e0-4a10-11cf-8273-00aa004ae673),
  version(3.0),
  pointer_default(unique)
] interface netdfs
{
	/******************/
	/* Function: 0x00 */
	void dfs_Exist(
		[out,ref] uint32 *exist_flag
		);


	/******************/
	/* Function: 0x01 */
	NTSTATUS dfs_Add (
		[in]     unistr *path,
		[in]     unistr *server,
		[in]     unistr *share,
		[in]     unistr *comment,
		[in]     uint32  flags
		);

	/******************/
	/* Function: 0x02 */
	NTSTATUS dfs_Remove (
		[in,ref] unistr *path,
		[in]     unistr *server,
		[in]     unistr *share
		);

	/******************/
	/* Function: 0x03 */
	NTSTATUS dfs_UNKNOWN3 ();

	/******************/
	/* Function: 0x04 */
	NTSTATUS dfs_Info (
		[in,ref] unistr_noterm *path,
		[in]     unistr *server,
		[in]     unistr *share,
		[in]     uint16 level
		);

	/******************/
	/* Function: 0x05 */

	typedef struct {
		unistr *path;
	} dfs_Info1;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info1 *s;
	} dfs_EnumArray1;

	typedef struct {
		unistr *path;
		unistr *comment;
		uint32 state;
		uint32 num_stores;
	} dfs_Info2;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info2 *s;
	} dfs_EnumArray2;

	typedef struct {
		uint32 state;
		unistr *server;
		unistr *share;
	} dfs_StorageInfo;

	typedef struct {
		unistr *path;
		unistr *comment;
		uint32 state;
		uint32 num_stores;
		[size_is(num_stores)] dfs_StorageInfo *stores;
	} dfs_Info3;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info3 *s;
	} dfs_EnumArray3;

	typedef struct {
		unistr *path;
		unistr *comment;
		uint32 state;
		uint32 timeout;
		GUID   guid;
		uint32 num_stores;
		[size_is(num_stores)] dfs_StorageInfo *stores;
	} dfs_Info4;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info4 *s;
	} dfs_EnumArray4;

	typedef struct {
		unistr *dom_root;
	} dfs_Info200;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info200 *s;
	} dfs_EnumArray200;

	typedef struct {
		uint32 flags;
		unistr *dom_root;
	} dfs_Info300;

	typedef struct {
		uint32 count;
		[size_is(count)] dfs_Info300 *s;
	} dfs_EnumArray300;


	typedef union {
		case(1) dfs_EnumArray1 *info1;
		case(2) dfs_EnumArray2 *info2;
		case(3) dfs_EnumArray3 *info3;
		case(4) dfs_EnumArray4 *info4;
		case(200) dfs_EnumArray200 *info200;
		case(300) dfs_EnumArray300 *info300;
	} dfs_EnumInfo;

	typedef struct {
		uint32 level;
		[switch_is(level)] dfs_EnumInfo e;
	} dfs_EnumStruct;

	NTSTATUS dfs_Enum (
		[in] uint32 level,
		[in] uint32 bufsize,
		[in,out] dfs_EnumStruct *info,
		[in]     uint32 *unknown,
		[in,out] uint32 *total
		);
}