-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathwkst.idl
More file actions
623 lines (544 loc) · 21 KB
/
Copy pathwkst.idl
File metadata and controls
623 lines (544 loc) · 21 KB
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
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
import "ms-dtyp.idl";
[
uuid(6BFFD098-A112-3610-9833-46C3F87E345A),version(1.0),
pointer_default(unique)
]
interface wkssvc
{
typedef enum _NETSETUP_JOIN_STATUS {
NetSetupUnknownStatus = 0,
NetSetupUnjoined,
NetSetupWorkgroupName,
NetSetupDomainName
} NETSETUP_JOIN_STATUS, *PNETSETUP_JOIN_STATUS;
typedef enum _NETSETUP_NAME_TYPE {
NetSetupUnknown = 0,
NetSetupMachine,
NetSetupWorkgroup,
NetSetupDomain,
NetSetupNonExistentDomain,
NetSetupDnsMachine
} NETSETUP_NAME_TYPE, *PNETSETUP_NAME_TYPE;
typedef enum _NET_COMPUTER_NAME_TYPE {
NetPrimaryComputerName = 0,
NetAlternateComputerNames,
NetAllComputerNames,
NetComputerNameTypeMax
} NET_COMPUTER_NAME_TYPE, *PNET_COMPUTER_NAME_TYPE;
typedef struct _STAT_WORKSTATION_0 {
LARGE_INTEGER StatisticsStartTime;
LARGE_INTEGER BytesReceived;
LARGE_INTEGER SmbsReceived;
LARGE_INTEGER PagingReadBytesRequested;
LARGE_INTEGER NonPagingReadBytesRequested;
LARGE_INTEGER CacheReadBytesRequested;
LARGE_INTEGER NetworkReadBytesRequested;
LARGE_INTEGER BytesTransmitted;
LARGE_INTEGER SmbsTransmitted;
LARGE_INTEGER PagingWriteBytesRequested;
LARGE_INTEGER NonPagingWriteBytesRequested;
LARGE_INTEGER CacheWriteBytesRequested;
LARGE_INTEGER NetworkWriteBytesRequested;
unsigned long InitiallyFailedOperations;
unsigned long FailedCompletionOperations;
unsigned long ReadOperations;
unsigned long RandomReadOperations;
unsigned long ReadSmbs;
unsigned long LargeReadSmbs;
unsigned long SmallReadSmbs;
unsigned long WriteOperations;
unsigned long RandomWriteOperations;
unsigned long WriteSmbs;
unsigned long LargeWriteSmbs;
unsigned long SmallWriteSmbs;
unsigned long RawReadsDenied;
unsigned long RawWritesDenied;
unsigned long NetworkErrors;
unsigned long Sessions;
unsigned long FailedSessions;
unsigned long Reconnects;
unsigned long CoreConnects;
unsigned long Lanman20Connects;
unsigned long Lanman21Connects;
unsigned long LanmanNtConnects;
unsigned long ServerDisconnects;
unsigned long HungSessions;
unsigned long UseCount;
unsigned long FailedUseCount;
unsigned long CurrentCommands;
} STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
typedef struct _WKSTA_INFO_100 {
unsigned long wki100_platform_id;
[string] wchar_t* wki100_computername;
[string] wchar_t* wki100_langroup;
unsigned long wki100_ver_major;
unsigned long wki100_ver_minor;
} WKSTA_INFO_100, *PWKSTA_INFO_100, *LPWKSTA_INFO_100;
typedef struct _WKSTA_INFO_101 {
unsigned long wki101_platform_id;
[string] wchar_t* wki101_computername;
[string] wchar_t* wki101_langroup;
unsigned long wki101_ver_major;
unsigned long wki101_ver_minor;
[string] wchar_t* wki101_lanroot;
} WKSTA_INFO_101, *PWKSTA_INFO_101, *LPWKSTA_INFO_101;
typedef struct _WKSTA_INFO_102 {
unsigned long wki102_platform_id;
[string] wchar_t* wki102_computername;
[string] wchar_t* wki102_langroup;
unsigned long wki102_ver_major;
unsigned long wki102_ver_minor;
[string] wchar_t* wki102_lanroot;
unsigned long wki102_logged_on_users;
} WKSTA_INFO_102, *PWKSTA_INFO_102, *LPWKSTA_INFO_102;
typedef struct _WKSTA_INFO_502{
unsigned long wki502_char_wait;
unsigned long wki502_collection_time;
unsigned long wki502_maximum_collection_count;
unsigned long wki502_keep_conn;
unsigned long wki502_max_cmds;
unsigned long wki502_sess_timeout;
unsigned long wki502_siz_char_buf;
unsigned long wki502_max_threads;
unsigned long wki502_lock_quota;
unsigned long wki502_lock_increment;
unsigned long wki502_lock_maximum;
unsigned long wki502_pipe_increment;
unsigned long wki502_pipe_maximum;
unsigned long wki502_cache_file_timeout;
unsigned long wki502_dormant_file_limit;
unsigned long wki502_read_ahead_throughput;
unsigned long wki502_num_mailslot_buffers;
unsigned long wki502_num_srv_announce_buffers;
unsigned long wki502_max_illegal_datagram_events;
unsigned long wki502_illegal_datagram_event_reset_frequency;
int wki502_log_election_packets;
int wki502_use_opportunistic_locking;
int wki502_use_unlock_behind;
int wki502_use_close_behind;
int wki502_buf_named_pipes;
int wki502_use_lock_read_unlock;
int wki502_utilize_nt_caching;
int wki502_use_raw_read;
int wki502_use_raw_write;
int wki502_use_write_raw_data;
int wki502_use_encryption;
int wki502_buf_files_deny_write;
int wki502_buf_read_only_files;
int wki502_force_core_create_mode;
int wki502_use_512_byte_max_transfer;
} WKSTA_INFO_502, *PWKSTA_INFO_502, *LPWKSTA_INFO_502;
typedef struct _WKSTA_INFO_1013 {
unsigned long wki1013_keep_conn;
} WKSTA_INFO_1013, *PWKSTA_INFO_1013, *LPWKSTA_INFO_1013;
typedef struct _WKSTA_INFO_1018 {
unsigned long wki1018_sess_timeout;
} WKSTA_INFO_1018, *PWKSTA_INFO_1018, *LPWKSTA_INFO_1018;
typedef struct _WKSTA_INFO_1046 {
unsigned long wki1046_dormant_file_limit;
} WKSTA_INFO_1046, *PWKSTA_INFO_1046, *LPWKSTA_INFO_1046;
typedef struct _WKSTA_USER_INFO_0 {
[string] wchar_t* wkui0_username;
} WKSTA_USER_INFO_0, *PWKSTA_USER_INFO_0, *LPWKSTA_USER_INFO_0;
typedef struct _WKSTA_USER_INFO_1 {
[string] wchar_t* wkui1_username;
[string] wchar_t* wkui1_logon_domain;
[string] wchar_t* wkui1_oth_domains;
[string] wchar_t* wkui1_logon_server;
} WKSTA_USER_INFO_1, *PWKSTA_USER_INFO_1, *LPWKSTA_USER_INFO_1;
typedef struct _WKSTA_TRANSPORT_INFO_0 {
unsigned long wkti0_quality_of_service;
unsigned long wkti0_number_of_vcs;
[string] wchar_t* wkti0_transport_name;
[string] wchar_t* wkti0_transport_address;
unsigned long wkti0_wan_ish;
} WKSTA_TRANSPORT_INFO_0, *PWKSTA_TRANSPORT_INFO_0,
*LPWKSTA_TRANSPORT_INFO_0;
typedef [handle] wchar_t* WKSSVC_IDENTIFY_HANDLE;
typedef [handle] wchar_t* WKSSVC_IMPERSONATE_HANDLE;
typedef [switch_type(unsigned long)] union _WKSTA_INFO {
[case(100)]
LPWKSTA_INFO_100 WkstaInfo100;
[case(101)]
LPWKSTA_INFO_101 WkstaInfo101;
[case(102)]
LPWKSTA_INFO_102 WkstaInfo102;
[case(502)]
LPWKSTA_INFO_502 WkstaInfo502;
[case(1013)]
LPWKSTA_INFO_1013 WkstaInfo1013;
[case(1018)]
LPWKSTA_INFO_1018 WkstaInfo1018;
[case(1046)]
LPWKSTA_INFO_1046 WkstaInfo1046;
[default]
;
} WKSTA_INFO, *PWKSTA_INFO, *LPWKSTA_INFO;
typedef struct _USE_INFO_0 {
[string] wchar_t* ui0_local;
[string] wchar_t* ui0_remote;
} USE_INFO_0, *PUSE_INFO_0, *LPUSE_INFO_0;
typedef struct _USE_INFO_1 {
[string] wchar_t* ui1_local;
[string] wchar_t* ui1_remote;
[string] wchar_t* ui1_password;
unsigned long ui1_status;
unsigned long ui1_asg_type;
unsigned long ui1_refcount;
unsigned long ui1_usecount;
} USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1;
typedef struct _USE_INFO_2 {
USE_INFO_1 ui2_useinfo;
[string] wchar_t* ui2_username;
[string] wchar_t* ui2_domainname;
} USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2;
typedef struct _USE_INFO_3 {
USE_INFO_2 ui3_ui2;
ULONG ui3_flags;
} USE_INFO_3, *PUSE_INFO_3, *LPUSE_INFO_3;
typedef [switch_type(unsigned long)] union _USE_INFO {
[case(0)]
LPUSE_INFO_0 UseInfo0;
[case(1)]
LPUSE_INFO_1 UseInfo1;
[case(2)]
LPUSE_INFO_2 UseInfo2;
[case(3)]
LPUSE_INFO_3 UseInfo3;
[default]
;
} USE_INFO, *PUSE_INFO, *LPUSE_INFO;
typedef struct _USE_INFO_0_CONTAINER {
unsigned long EntriesRead;
LPUSE_INFO_0 Buffer;
} USE_INFO_0_CONTAINER, *PUSE_INFO_0_CONTAINER, *LPUSE_INFO_0_CONTAINER;
typedef struct _USE_INFO_1_CONTAINER {
unsigned long EntriesRead;
LPUSE_INFO_1 Buffer;
} USE_INFO_1_CONTAINER, *PUSE_INFO_1_CONTAINER, *LPUSE_INFO_1_CONTAINER;
typedef struct _USE_INFO_2_CONTAINER {
unsigned long EntriesRead;
LPUSE_INFO_2 Buffer;
} USE_INFO_2_CONTAINER, *PUSE_INFO_2_CONTAINER, *LPUSE_INFO_2_CONTAINER;
typedef struct _USE_ENUM_STRUCT {
DWORD Level;
[switch_is(Level)] union _USE_ENUM_UNION {
[case(0)]
LPUSE_INFO_0_CONTAINER Level0;
[case(1)]
LPUSE_INFO_1_CONTAINER Level1;
[case(2)]
LPUSE_INFO_2_CONTAINER Level2;
[default]
;
} UseInfo;
} USE_ENUM_STRUCT, *PUSE_ENUM_STRUCT, *LPUSE_ENUM_STRUCT;
#define JOIN_OBFUSCATOR_LENGTH 8
#define JOIN_MAX_PASSWORD_LENGTH 256
#define MAX_PASSWORDBLOB_SIZE (JOIN_OBFUSCATOR_LENGTH + (JOIN_MAX_PASSWORD_LENGTH * sizeof(WCHAR)) + sizeof(ULONG))
typedef struct _JOINPR_ENCRYPTED_USER_PASSWORD_AES {
UCHAR AuthData[64];
UCHAR Salt[16];
[range(0, MAX_PASSWORDBLOB_SIZE)] ULONG cbCipher;
[size_is(cbCipher)] PUCHAR Cipher;
} JOINPR_ENCRYPTED_USER_PASSWORD_AES,
*PJOINPR_ENCRYPTED_USER_PASSWORD_AES;
unsigned long
NetrWkstaGetInfo (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in] unsigned long Level,
[out, switch_is(Level)] LPWKSTA_INFO WkstaInfo
);
unsigned long
NetrWkstaSetInfo (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in] unsigned long Level,
[in, switch_is(Level)] LPWKSTA_INFO WkstaInfo,
[in,out,unique] unsigned long* ErrorParameter
);
typedef struct _WKSTA_USER_INFO_0_CONTAINER {
unsigned long EntriesRead;
[size_is(EntriesRead)] LPWKSTA_USER_INFO_0 Buffer;
} WKSTA_USER_INFO_0_CONTAINER, *PWKSTA_USER_INFO_0_CONTAINER,
*LPWKSTA_USER_INFO_0_CONTAINER;
typedef struct _WKSTA_USER_INFO_1_CONTAINER {
unsigned long EntriesRead;
[size_is(EntriesRead)] LPWKSTA_USER_INFO_1 Buffer;
} WKSTA_USER_INFO_1_CONTAINER, *PWKSTA_USER_INFO_1_CONTAINER,
*LPWKSTA_USER_INFO_1_CONTAINER;
typedef struct _WKSTA_USER_ENUM_STRUCT {
unsigned long Level;
[switch_is(Level)] union _WKSTA_USER_ENUM_UNION {
[case(0)]
LPWKSTA_USER_INFO_0_CONTAINER Level0;
[case(1)]
LPWKSTA_USER_INFO_1_CONTAINER Level1;
[default]
;
} WkstaUserInfo;
} WKSTA_USER_ENUM_STRUCT,
*PWKSTA_USER_ENUM_STRUCT,
*LPWKSTA_USER_ENUM_STRUCT;
unsigned long
NetrWkstaUserEnum (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in,out] LPWKSTA_USER_ENUM_STRUCT UserInfo,
[in] unsigned long PreferredMaximumLength,
[out] unsigned long* TotalEntries,
[in,out,unique] unsigned long* ResumeHandle
);
void Opnum3NotUsedOnWire(void);
void Opnum4NotUsedOnWire(void);
typedef struct _WKSTA_TRANSPORT_INFO_0_CONTAINER {
unsigned long EntriesRead;
[size_is(EntriesRead)] LPWKSTA_TRANSPORT_INFO_0 Buffer;
} WKSTA_TRANSPORT_INFO_0_CONTAINER,
*PWKSTA_TRANSPORT_INFO_0_CONTAINER,
*LPWKSTA_TRANSPORT_INFO_0_CONTAINER;
typedef struct _WKSTA_TRANSPORT_ENUM_STRUCT {
unsigned long Level;
[switch_is(Level)] union _WKSTA_TRANSPORT_ENUM_UNION {
[case(0)]
LPWKSTA_TRANSPORT_INFO_0_CONTAINER Level0;
[default]
;
} WkstaTransportInfo;
} WKSTA_TRANSPORT_ENUM_STRUCT, *PWKSTA_TRANSPORT_ENUM_STRUCT,
*LPWKSTA_TRANSPORT_ENUM_STRUCT;
unsigned long
NetrWkstaTransportEnum (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in,out] LPWKSTA_TRANSPORT_ENUM_STRUCT TransportInfo,
[in] unsigned long PreferredMaximumLength,
[out] unsigned long* TotalEntries,
[in,out,unique] unsigned long* ResumeHandle
);
unsigned long
NetrWkstaTransportAdd (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in] unsigned long Level,
[in] LPWKSTA_TRANSPORT_INFO_0 TransportInfo,
[in,out,unique] unsigned long* ErrorParameter
);
unsigned long
NetrWkstaTransportDel (
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in,string,unique] wchar_t* TransportName,
[in] unsigned long ForceLevel
);
unsigned long
NetrUseAdd (
[in, string, unique] WKSSVC_IMPERSONATE_HANDLE ServerName,
[in] unsigned long Level,
[in, switch_is(Level)] LPUSE_INFO InfoStruct,
[in, out, unique] unsigned long* ErrorParameter
);
unsigned long NetrUseGetInfo(
[in, string, unique] WKSSVC_IMPERSONATE_HANDLE ServerName,
[in, string] wchar_t* UseName,
[in] unsigned long Level,
[out, switch_is(Level)] LPUSE_INFO InfoStruct
);
unsigned long
NetrUseDel (
[in, string, unique] WKSSVC_IMPERSONATE_HANDLE ServerName,
[in, string] wchar_t* UseName,
[in] unsigned long ForceLevel
);
unsigned long
NetrUseEnum (
[in, string, unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in, out] LPUSE_ENUM_STRUCT InfoStruct,
[in] unsigned long PreferredMaximumLength,
[out] unsigned long* TotalEntries,
[in, out, unique] unsigned long* ResumeHandle
);
void Opnum12NotUsedOnWire(void);
unsigned long
NetrWorkstationStatisticsGet(
[in,string,unique] WKSSVC_IDENTIFY_HANDLE ServerName,
[in,string,unique] wchar_t* ServiceName,
[in] unsigned long Level,
[in] unsigned long Options,
[out] LPSTAT_WORKSTATION_0* Buffer
);
void Opnum14NotUsedOnWire(void);
void Opnum15NotUsedOnWire(void);
void Opnum16NotUsedOnWire(void);
void Opnum17NotUsedOnWire(void);
void Opnum18NotUsedOnWire(void);
void Opnum19NotUsedOnWire(void);
unsigned long
NetrGetJoinInformation(
[in,string,unique] WKSSVC_IMPERSONATE_HANDLE ServerName,
[in,out,string] wchar_t** NameBuffer,
[out] PNETSETUP_JOIN_STATUS BufferType
);
void Opnum21NotUsedOnWire(void);
typedef struct _JOINPR_USER_PASSWORD {
unsigned char Obfuscator[JOIN_OBFUSCATOR_LENGTH];
wchar_t Buffer[JOIN_MAX_PASSWORD_LENGTH];
unsigned long Length;
} JOINPR_USER_PASSWORD,
*PJOINPR_USER_PASSWORD;
typedef struct _JOINPR_ENCRYPTED_USER_PASSWORD {
unsigned char Buffer[JOIN_OBFUSCATOR_LENGTH +
(JOIN_MAX_PASSWORD_LENGTH * sizeof(wchar_t)) +
sizeof(unsigned long)];
} JOINPR_ENCRYPTED_USER_PASSWORD,
*PJOINPR_ENCRYPTED_USER_PASSWORD;
typedef struct _UNICODE_STRING {
unsigned short Length;
unsigned short MaximumLength;
[size_is(MaximumLength / 2), length_is((Length) / 2)]
unsigned short* Buffer;
} UNICODE_STRING,
*PUNICODE_STRING;
unsigned long
NetrJoinDomain2(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string] wchar_t* DomainNameParam,
[in,string,unique] wchar_t* MachineAccountOU,
[in,string,unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD Password,
[in] unsigned long Options
);
unsigned long
NetrUnjoinDomain2(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string,unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD Password,
[in] unsigned long Options
);
unsigned long
NetrRenameMachineInDomain2(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string,unique] wchar_t* MachineName,
[in,string,unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD Password,
[in] unsigned long Options
);
unsigned long
NetrValidateName2(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string] wchar_t* NameToValidate,
[in,string,unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD Password,
[in] NETSETUP_NAME_TYPE NameType
);
unsigned long
NetrGetJoinableOUs2(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string] wchar_t* DomainNameParam,
[in,string,unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD Password,
[in,out] unsigned long* OUCount,
[out,string,size_is(,*OUCount)] wchar_t*** OUs
);
unsigned long
NetrAddAlternateComputerName(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string,unique] wchar_t* AlternateName,
[in,string,unique] wchar_t* DomainAccount,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword,
[in] unsigned long Reserved
);
unsigned long
NetrRemoveAlternateComputerName(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string,unique] wchar_t* AlternateName,
[in,string,unique] wchar_t* DomainAccount,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword,
[in] unsigned long Reserved
);
unsigned long
NetrSetPrimaryComputerName(
[in] handle_t RpcBindingHandle,
[in,string,unique] wchar_t* ServerName,
[in,string,unique] wchar_t* PrimaryName,
[in,string,unique] wchar_t* DomainAccount,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword,
[in] unsigned long Reserved
);
typedef struct _NET_COMPUTER_NAME_ARRAY {
unsigned long EntryCount;
[size_is(EntryCount)] PUNICODE_STRING ComputerNames;
} NET_COMPUTER_NAME_ARRAY, *PNET_COMPUTER_NAME_ARRAY;
unsigned long
NetrEnumerateComputerNames(
[in,string,unique] WKSSVC_IMPERSONATE_HANDLE ServerName,
[in] NET_COMPUTER_NAME_TYPE NameType,
[in] unsigned long Reserved,
[out] PNET_COMPUTER_NAME_ARRAY *ComputerNames
);
unsigned long
NetrJoinDomain3(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string] wchar_t* DomainNameParam,
[in, string, unique] wchar_t* MachineAccountOU,
[in, string, unique] wchar_t* AccountName,
[in,unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES Password,
[in] unsigned long Options
);
unsigned long
NetrUnjoinDomain3(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string, unique] wchar_t* AccountName,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES Password,
[in] unsigned long Options
);
unsigned long
NetrRenameMachineInDomain3(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string, unique] wchar_t* MachineName,
[in, string, unique] wchar_t* AccountName,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES Password,
[in] unsigned long Options
);
unsigned long
NetrValidateName3(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string] wchar_t* NameToValidate,
[in, string, unique] wchar_t* AccountName,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES Password,
[in] NETSETUP_NAME_TYPE NameType
);
unsigned long
NetrAddAlternateComputerName2(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string, unique] wchar_t* AlternateName,
[in, string, unique] wchar_t* DomainAccount,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES EncryptedPassword,
[in] unsigned long Reserved
);
unsigned long
NetrRemoveAlternateComputerName2(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string, unique] wchar_t* AlternateName,
[in, string, unique] wchar_t* DomainAccount,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES EncryptedPassword,
[in] unsigned long Reserved
);
unsigned long
NetrSetPrimaryComputerName2(
[in] handle_t RpcBindingHandle,
[in, string, unique] wchar_t* ServerName,
[in, string, unique] wchar_t* PrimaryName,
[in, string, unique] wchar_t* DomainAccount,
[in, unique] PJOINPR_ENCRYPTED_USER_PASSWORD_AES EncryptedPassword,
[in] unsigned long Reserved
);
}