summaryrefslogtreecommitdiff
path: root/source4/librpc/idl/wkssvc.idl
blob: 1e82d3c7676306dd7c34b522670078dcadd82a05 (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/*
  wkssvc interface definitions
*/

[ uuid(6bffd098-a112-3610-9833-46c3f87e345a),
  version(1.0),
  pointer_default(unique)
] interface wkssvc
{
	/******************/
	/* Function: 0x00 */
	typedef struct {
		uint32 platform_id;
		unistr *server;
		unistr *domain;
		uint32 ver_major;
		uint32 ver_minor;
	} wks_Info100;

	typedef struct {
		uint32 platform_id;
		unistr *server;
		unistr *domain;
		uint32 ver_major;
		uint32 ver_minor;
		unistr *lan_root;
	} wks_Info101;

	typedef struct {
		uint32 platform_id;
		unistr *server;
		unistr *domain;
		uint32 ver_major;
		uint32 ver_minor;
		unistr *lan_root;
		uint32 logged_on_users;
	} wks_Info102;

	typedef union {
		case (100) wks_Info100 *info100;
		case (101) wks_Info101 *info101;
		case (102) wks_Info102 *info102;
	} wks_Info;

	WERROR wks_QueryInfo(
		[in]   unistr *server_name,
		[in]   uint32 level,
		[out,switch_is(level)]  wks_Info info
		);


	/******************/
	/* Function: 0x01 */
	WERROR wks_SetInfo();

	/*****************************/
	/* Function        0x02      */
	WERROR WKS_NETRWKSTAUSERENUM ();

	/*****************************/
	/* Function        0x03      */
	WERROR WKS_NETRWKSTAUSERGETINFO ();

	/*****************************/
	/* Function        0x04      */
	WERROR WKS_NETRWKSTAUSERSETINFO ();


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

	typedef struct {
		uint32 quality_of_service;
		uint32 vc_count;
		unistr *name;
		unistr *address;
		uint32 wan_link;
	} wks_TransportInfo0;

	typedef struct {
		uint32 count;
		[size_is(count)] wks_TransportInfo0 *transports;
	} wks_TransportInfoArray;

	typedef union {
		case(0) wks_TransportInfoArray *array;
	} wks_TransportUnion;

	typedef struct {
		uint32 level;
		[switch_is(level)] wks_TransportUnion u;
	} wks_TransportInfo;

	WERROR wks_TransportEnum (
		[in]         unistr *server_name,
		[in,out,ref] wks_TransportInfo *info,
		[in]         uint32 max_buffer,
		[out]        uint32 unknown,
		[in,out]     uint32 *resume_handle
		);


	/*****************************/
	/* Function        0x06      */
	WERROR WKS_NETRWKSTATRANSPORTADD ();

	/*****************************/
	/* Function        0x07      */
	WERROR WKS_NETRWKSTATRANSPORTDEL ();

	/*****************************/
	/* Function        0x08      */
	WERROR WKS_NETRUSEADD ();

	/*****************************/
	/* Function        0x09      */
	WERROR WKS_NETRUSEGETINFO ();

	/*****************************/
	/* Function        0x0a      */
	WERROR WKS_NETRUSEDEL ();

	/*****************************/
	/* Function        0x0b      */
	WERROR WKS_NETRUSEENUM ();

	/*****************************/
	/* Function        0x0c      */
	WERROR WKS_NETRMESSAGEBUFFERSEND ();

	/*****************************/
	/* Function        0x0d      */
	WERROR WKS_NETRWORKSTATIONSTATISTICSGET ();

	/*****************************/
	/* Function        0x0e      */
	WERROR WKS_NETRLOGONDOMAINNAMEADD ();

	/*****************************/
	/* Function        0x0f      */
	WERROR WKS_NETRLOGONDOMAINNAMEDEL ();

	/*****************************/
	/* Function        0x10      */
	WERROR WKS_NETRJOINDOMAIN ();

	/*****************************/
	/* Function        0x11      */
	WERROR WKS_NETRUNJOINDOMAIN ();

	/*****************************/
	/* Function        0x12      */
	WERROR WKS_NETRRENAMEMACHINEINDOMAIN ();

	/*****************************/
	/* Function        0x13      */
	WERROR WKS_NETRVALIDATENAME ();

	/*****************************/
	/* Function        0x14      */
	WERROR WKS_NETRGETJOININFORMATION ();

	/*****************************/
	/* Function        0x15      */
	WERROR WKS_NETRGETJOINABLEOUS ();

	/*****************************/
	/* Function        0x16      */
	WERROR WKS_NETRJOINDOMAIN2 ();

	/*****************************/
	/* Function        0x17      */
	WERROR WKS_NETRUNJOINDOMAIN2 ();

	/*****************************/
	/* Function        0x18      */
	WERROR WKS_NETRRENAMEMACHINEINDOMAIN2 ();

	/*****************************/
	/* Function        0x19      */
	WERROR WKS_NETRVALIDATENAME2 ();

	/*****************************/
	/* Function        0x1a      */
	WERROR WKS_NETRGETJOINABLEOUS2 ();

	/*****************************/
	/* Function        0x1b      */
	WERROR WKS_NETRADDALTERNATECOMPUTERNAME ();

	/*****************************/
	/* Function        0x1c      */
	WERROR WKS_NETRREMOVEALTERNATECOMPUTERNAME ();

	/*****************************/
	/* Function        0x1d      */
	WERROR WKS_NETRSETPRIMARYCOMPUTERNAME ();

	/*****************************/
	/* Function        0x1e      */
	WERROR WKS_NETRENUMERATECOMPUTERNAMES ();
}