summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/wkssvc.h
blob: f6b7d1fafb60ee24a708cafd517fbfa1d7865379 (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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
/* header auto-generated by pidl */

#ifndef _HEADER_wkssvc
#define _HEADER_wkssvc

#include "librpc/gen_ndr/srvsvc.h"
struct wkssvc_NetWkstaInfo100 {
	uint16_t platform_id;
	const char *server_name;/* [unique,charset(UTF16)] */
	const char *domain_name;/* [unique,charset(UTF16)] */
	uint32_t version_major;
	uint32_t version_minor;
};

struct wkssvc_NetWkstaInfo101 {
	uint16_t platform_id;
	const char *server_name;/* [unique,charset(UTF16)] */
	const char *domain_name;/* [unique,charset(UTF16)] */
	uint32_t version_major;
	uint32_t version_minor;
	const char *lan_root;/* [unique,charset(UTF16)] */
};

struct wkssvc_NetWkstaInfo102 {
	uint16_t platform_id;
	const char *server_name;/* [unique,charset(UTF16)] */
	const char *domain_name;/* [unique,charset(UTF16)] */
	uint32_t version_major;
	uint32_t version_minor;
	const char *lan_root;/* [unique,charset(UTF16)] */
	uint32_t logged_on_users;
};

struct wkssvc_NetWkstaInfo502 {
	uint32_t char_wait;
	uint32_t collection_time;
	uint32_t maximum_collection_count;
	uint32_t keep_connection;
	uint32_t max_commands;
	uint32_t session_timeout;
	uint32_t size_char_buf;
	uint32_t max_threads;
	uint32_t lock_quota;
	uint32_t lock_increment;
	uint32_t lock_maximum;
	uint32_t pipe_increment;
	uint32_t pipe_maximum;
	uint32_t cache_file_timeout;
	uint32_t dormant_file_limit;
	uint32_t read_ahead_throughput;
	uint32_t num_mailslot_buffers;
	uint32_t num_srv_announce_buffers;
	uint32_t max_illegal_dgram_events;
	uint32_t dgram_event_reset_freq;
	uint32_t log_election_packets;
	uint32_t use_opportunistic_locking;
	uint32_t use_unlock_behind;
	uint32_t use_close_behind;
	uint32_t buf_named_pipes;
	uint32_t use_lock_read_unlock;
	uint32_t utilize_nt_caching;
	uint32_t use_raw_read;
	uint32_t use_raw_write;
	uint32_t use_write_raw_data;
	uint32_t use_encryption;
	uint32_t buf_files_deny_write;
	uint32_t buf_read_only_files;
	uint32_t force_core_create_mode;
	uint32_t use_512_byte_max_transfer;
};

struct wkssvc_NetWkstaInfo1010 {
	uint32_t char_wait;
};

struct wkssvc_NetWkstaInfo1011 {
	uint32_t collection_time;
};

struct wkssvc_NetWkstaInfo1012 {
	uint32_t maximum_collection_count;
};

struct wkssvc_NetWkstaInfo1013 {
	uint32_t keep_connection;
};

struct wkssvc_NetWkstaInfo1018 {
	uint32_t session_timeout;
};

struct wkssvc_NetWkstaInfo1023 {
	uint32_t size_char_buf;
};

struct wkssvc_NetWkstaInfo1027 {
	uint32_t errorlog_sz;
};

struct wkssvc_NetWkstaInfo1033 {
	uint32_t max_threads;
};

union wkssvc_NetWkstaInfo {
	struct wkssvc_NetWkstaInfo100 *info100;/* [unique,case(100)] */
	struct wkssvc_NetWkstaInfo101 *info101;/* [unique,case(101)] */
	struct wkssvc_NetWkstaInfo102 *info102;/* [unique,case(102)] */
	struct wkssvc_NetWkstaInfo502 *info502;/* [unique,case(502)] */
	struct wkssvc_NetWkstaInfo1010 *info1010;/* [unique,case(1010)] */
	struct wkssvc_NetWkstaInfo1011 *info1011;/* [unique,case(1011)] */
	struct wkssvc_NetWkstaInfo1012 *info1012;/* [unique,case(1012)] */
	struct wkssvc_NetWkstaInfo1013 *info1013;/* [unique,case(1013)] */
	struct wkssvc_NetWkstaInfo1018 *info1018;/* [unique,case(1018)] */
	struct wkssvc_NetWkstaInfo1023 *info1023;/* [unique,case(1023)] */
	struct wkssvc_NetWkstaInfo1027 *info1027;/* [unique,case(1027)] */
	struct wkssvc_NetWkstaInfo1033 *info1033;/* [unique,case(1033)] */
};

struct USER_INFO_0 {
	const char *user;/* [unique,charset(UTF16)] */
};

struct USER_INFO_0_CONTAINER {
	uint32_t entries_read;
	struct USER_INFO_0 *user0;/* [unique,size_is(entries_read)] */
};

struct USER_INFO_1 {
	const char *user_name;/* [unique,charset(UTF16)] */
	const char *logon_domain;/* [unique,charset(UTF16)] */
	const char *other_domains;/* [unique,charset(UTF16)] */
	const char *logon_server;/* [unique,charset(UTF16)] */
};

struct USER_INFO_1_CONTAINER {
	uint32_t entries_read;
	struct USER_INFO_1 *user1;/* [unique,size_is(entries_read)] */
};

union WKS_USER_ENUM_UNION {
	struct USER_INFO_0_CONTAINER *user0;/* [unique,case(0)] */
	struct USER_INFO_1_CONTAINER *user1;/* [unique,case] */
}/* [switch_type(uint32)] */;

struct wkssvc_NetWkstaTransportInfo0 {
	uint32_t quality_of_service;
	uint32_t vc_count;
	const char *name;/* [unique,charset(UTF16)] */
	const char *address;/* [unique,charset(UTF16)] */
	uint32_t wan_link;
};

struct wkssvc_NetWkstaTransportCtr0 {
	uint32_t count;
	struct wkssvc_NetWkstaTransportInfo0 *array;/* [unique,size_is(count)] */
};

union wkssvc_NetWkstaTransportCtr {
	struct wkssvc_NetWkstaTransportCtr0 *ctr0;/* [unique,case(0)] */
};

struct wkssvc_PasswordBuffer {
	uint8_t data[524];
};

/* bitmap wkssvc_joinflags */
#define WKSSVC_JOIN_FLAGS_DEFER_SPN ( 0x00000100 )
#define WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED ( 0x00000080 )
#define WKSSVC_JOIN_FLAGS_JOIN_UNSECURE ( 0x00000040 )
#define WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED ( 0x00000020 )
#define WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE ( 0x00000010 )
#define WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE ( 0x00000004 )
#define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )
#define WKSSVC_JOIN_FLAGS_JOIN_TYPE ( 0x00000001 )

/* bitmap wkssvc_renameflags */
#define WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE ( 0x00000002 )


struct wkssvc_NetWkstaGetInfo {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		uint32_t level;
	} in;

	struct {
		union wkssvc_NetWkstaInfo *info;/* [ref,switch_is(level)] */
		WERROR result;
	} out;

};


struct wkssvc_NetWkstaSetInfo {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		uint32_t level;
		union wkssvc_NetWkstaInfo *info;/* [ref,switch_is(level)] */
		uint32_t *parm_error;/* [ref] */
	} in;

	struct {
		uint32_t *parm_error;/* [ref] */
		WERROR result;
	} out;

};


struct wkssvc_NetWkstaEnumUsers {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		uint32_t level;
		union WKS_USER_ENUM_UNION *users;/* [ref] */
		uint32_t prefmaxlen;
		uint32_t *resumehandle;/* [ref] */
	} in;

	struct {
		union WKS_USER_ENUM_UNION *users;/* [ref] */
		uint32_t *entriesread;/* [unique] */
		uint32_t *totalentries;/* [unique] */
		uint32_t *resumehandle;/* [ref] */
		WERROR result;
	} out;

};


struct WKSSVC_NETRWKSTAUSERGETINFO {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRWKSTAUSERSETINFO {
	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetWkstaTransportEnum {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		uint32_t *level;/* [ref] */
		union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(level)] */
		uint32_t max_buffer;
		uint32_t *resume_handle;/* [ref] */
	} in;

	struct {
		uint32_t *level;/* [ref] */
		union wkssvc_NetWkstaTransportCtr *ctr;/* [ref,switch_is(level)] */
		uint32_t *totalentries;/* [unique] */
		uint32_t *resume_handle;/* [ref] */
		WERROR result;
	} out;

};


struct WKSSVC_NETRWKSTATRANSPORTADD {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRWKSTATRANSPORTDEL {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRUSEADD {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRUSEGETINFO {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRUSEDEL {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRUSEENUM {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRMESSAGEBUFFERSEND {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRWORKSTATIONSTATISTICSGET {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRLOGONDOMAINNAMEADD {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRLOGONDOMAINNAMEDEL {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRJOINDOMAIN {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRUNJOINDOMAIN {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRRENAMEMACHINEINDOMAIN {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRVALIDATENAME {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRGETJOININFORMATION {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRGETJOINABLEOUS {
	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrJoinDomain2 {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		const char *domain_name;/* [ref,charset(UTF16)] */
		const char *account_name;/* [unique,charset(UTF16)] */
		const char *admin_account;/* [unique,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *encrypted_password;/* [unique] */
		uint32_t join_flags;
	} in;

	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrUnjoinDomain2 {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		const char *account;/* [unique,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *encrypted_password;/* [unique] */
		uint32_t unjoin_flags;
	} in;

	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrRenameMachineInDomain2 {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		const char *NewMachineName;/* [unique,charset(UTF16)] */
		const char *Account;/* [unique,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */
		uint32_t RenameOptions;
	} in;

	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRVALIDATENAME2 {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRGETJOINABLEOUS2 {
	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrAddAlternateComputerName {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		const char *NewAlternateMachineName;/* [unique,charset(UTF16)] */
		const char *Account;/* [unique,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */
		uint32_t Reserved;
	} in;

	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrRemoveAlternateComputerName {
	struct {
		const char *server_name;/* [unique,charset(UTF16)] */
		const char *AlternateMachineNameToRemove;/* [unique,charset(UTF16)] */
		const char *Account;/* [unique,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique] */
		uint32_t Reserved;
	} in;

	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRENUMERATECOMPUTERNAMES {
	struct {
		WERROR result;
	} out;

};

#endif /* _HEADER_wkssvc */