summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/wkssvc.h
blob: 6663f05f49ceaa264e58a5de585a031e0258bfaf (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;/* [keepref] */
	const char *server_name;/* [unique,keepref,charset(UTF16)] */
	const char *domain_name;/* [unique,keepref,charset(UTF16)] */
	uint32_t version_major;/* [keepref] */
	uint32_t version_minor;/* [keepref] */
};

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

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

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

struct wkssvc_NetWkstaInfo1010 {
	uint32_t char_wait;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1011 {
	uint32_t collection_time;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1012 {
	uint32_t maximum_collection_count;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1013 {
	uint32_t keep_connection;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1018 {
	uint32_t session_timeout;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1023 {
	uint32_t size_char_buf;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1027 {
	uint32_t errorlog_sz;/* [keepref] */
};

struct wkssvc_NetWkstaInfo1033 {
	uint32_t max_threads;/* [keepref] */
};

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

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

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

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

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

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

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

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

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

struct wkssvc_PasswordBuffer {
	uint8_t data[524];/* [keepref] */
};

/* 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,keepref,charset(UTF16)] */
		uint32_t level;/* [keepref] */
	} in;

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

};


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

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

};


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

	struct {
		union WKS_USER_ENUM_UNION *users;/* [keepref,ref] */
		uint32_t *entriesread;/* [unique,keepref] */
		uint32_t *totalentries;/* [unique,keepref] */
		uint32_t *resumehandle;/* [keepref,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,keepref,charset(UTF16)] */
		uint32_t *level;/* [unique,keepref] */
		union wkssvc_NetWkstaTransportCtr *ctr;/* [keepref,ref,switch_is(level)] */
		uint32_t max_buffer;/* [keepref] */
		uint32_t *resume_handle;/* [unique,keepref] */
	} in;

	struct {
		uint32_t *level;/* [unique,keepref] */
		union wkssvc_NetWkstaTransportCtr *ctr;/* [keepref,ref,switch_is(level)] */
		uint32_t *totalentries;/* [unique,keepref] */
		uint32_t *resume_handle;/* [unique,keepref] */
		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,keepref,charset(UTF16)] */
		const char *domain_name;/* [keepref,ref,charset(UTF16)] */
		const char *account_name;/* [unique,keepref,charset(UTF16)] */
		const char *admin_account;/* [unique,keepref,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *encrypted_password;/* [unique,keepref] */
		uint32_t join_flags;/* [keepref] */
	} in;

	struct {
		WERROR result;
	} out;

};


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

	struct {
		WERROR result;
	} out;

};


struct wkssvc_NetrRenameMachineInDomain2 {
	struct {
		const char *server_name;/* [unique,keepref,charset(UTF16)] */
		const char *NewMachineName;/* [unique,keepref,charset(UTF16)] */
		const char *Account;/* [unique,keepref,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique,keepref] */
		uint32_t RenameOptions;/* [keepref] */
	} 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,keepref,charset(UTF16)] */
		const char *NewAlternateMachineName;/* [unique,keepref,charset(UTF16)] */
		const char *Account;/* [unique,keepref,charset(UTF16)] */
		struct wkssvc_PasswordBuffer *EncryptedPassword;/* [unique,keepref] */
		uint32_t Reserved;/* [keepref] */
	} in;

	struct {
		WERROR result;
	} out;

};


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

	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRSETPRIMARYCOMPUTERNAME {
	struct {
		WERROR result;
	} out;

};


struct WKSSVC_NETRENUMERATECOMPUTERNAMES {
	struct {
		WERROR result;
	} out;

};

#endif /* _HEADER_wkssvc */