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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
|
#include "idl_types.h"
/*
rap interface definition
*/
[
pointer_default(unique),
helper("../librpc/ndr/ndr_rap.h")
]
interface rap
{
const int RAP_WshareEnum = 0;
const int RAP_WshareGetInfo = 1;
const int RAP_WshareSetInfo = 2;
const int RAP_WshareAdd = 3;
const int RAP_WshareDel = 4;
const int RAP_NetShareCheck = 5;
const int RAP_WsessionEnum = 6;
const int RAP_WsessionGetInfo = 7;
const int RAP_WsessionDel = 8;
const int RAP_WconnectionEnum = 9;
const int RAP_WfileEnum = 10;
const int RAP_WfileGetInfo = 11;
const int RAP_WfileClose = 12;
const int RAP_WserverGetInfo = 13;
const int RAP_WserverSetInfo = 14;
const int RAP_WserverDiskEnum = 15;
const int RAP_WserverAdminCommand = 16;
const int RAP_NetAuditOpen = 17;
const int RAP_WauditClear = 18;
const int RAP_NetErrorLogOpen = 19;
const int RAP_WerrorLogClear = 20;
const int RAP_NetCharDevEnum = 21;
const int RAP_NetCharDevGetInfo = 22;
const int RAP_WCharDevControl = 23;
const int RAP_NetCharDevQEnum = 24;
const int RAP_NetCharDevQGetInfo = 25;
const int RAP_WCharDevQSetInfo = 26;
const int RAP_WCharDevQPurge = 27;
const int RAP_WCharDevQPurgeSelf = 28;
const int RAP_WMessageNameEnum = 29;
const int RAP_WMessageNameGetInfo = 30;
const int RAP_WMessageNameAdd = 31;
const int RAP_WMessageNameDel = 32;
const int RAP_WMessageNameFwd = 33;
const int RAP_WMessageNameUnFwd = 34;
const int RAP_WMessageBufferSend = 35;
const int RAP_WMessageFileSend = 36;
const int RAP_WMessageLogFileSet = 37;
const int RAP_WMessageLogFileGet = 38;
const int RAP_WServiceEnum = 39;
const int RAP_WServiceInstall = 40;
const int RAP_WServiceControl = 41;
const int RAP_WAccessEnum = 42;
const int RAP_WAccessGetInfo = 43;
const int RAP_WAccessSetInfo = 44;
const int RAP_WAccessAdd = 45;
const int RAP_WAccessDel = 46;
const int RAP_WGroupEnum = 47;
const int RAP_WGroupAdd = 48;
const int RAP_WGroupDel = 49;
const int RAP_WGroupAddUser = 50;
const int RAP_WGroupDelUser = 51;
const int RAP_WGroupGetUsers = 52;
const int RAP_WUserEnum = 53;
const int RAP_WUserAdd = 54;
const int RAP_WUserDel = 55;
const int RAP_WUserGetInfo = 56;
const int RAP_WUserSetInfo = 57;
const int RAP_WUserPasswordSet = 58;
const int RAP_WUserGetGroups = 59;
const int RAP_WWkstaSetUID = 62;
const int RAP_WWkstaGetInfo = 63;
const int RAP_WWkstaSetInfo = 64;
const int RAP_WUseEnum = 65;
const int RAP_WUseAdd = 66;
const int RAP_WUseDel = 67;
const int RAP_WUseGetInfo = 68;
const int RAP_WPrintQEnum = 69;
const int RAP_WPrintQGetInfo = 70;
const int RAP_WPrintQSetInfo = 71;
const int RAP_WPrintQAdd = 72;
const int RAP_WPrintQDel = 73;
const int RAP_WPrintQPause = 74;
const int RAP_WPrintQContinue = 75;
const int RAP_WPrintJobEnum = 76;
const int RAP_WPrintJobGetInfo = 77;
const int RAP_WPrintJobSetInfo_OLD = 78;
const int RAP_WPrintJobDel = 81;
const int RAP_WPrintJobPause = 82;
const int RAP_WPrintJobContinue = 83;
const int RAP_WPrintDestEnum = 84;
const int RAP_WPrintDestGetInfo = 85;
const int RAP_WPrintDestControl = 86;
const int RAP_WProfileSave = 87;
const int RAP_WProfileLoad = 88;
const int RAP_WStatisticsGet = 89;
const int RAP_WStatisticsClear = 90;
const int RAP_NetRemoteTOD = 91;
const int RAP_WNetBiosEnum = 92;
const int RAP_WNetBiosGetInfo = 93;
const int RAP_NetServerEnum = 94;
const int RAP_I_NetServerEnum = 95;
const int RAP_WServiceGetInfo = 96;
const int RAP_WPrintQPurge = 103;
const int RAP_NetServerEnum2 = 104;
const int RAP_WAccessGetUserPerms = 105;
const int RAP_WGroupGetInfo = 106;
const int RAP_WGroupSetInfo = 107;
const int RAP_WGroupSetUsers = 108;
const int RAP_WUserSetGroups = 109;
const int RAP_WUserModalsGet = 110;
const int RAP_WUserModalsSet = 111;
const int RAP_WFileEnum2 = 112;
const int RAP_WUserAdd2 = 113;
const int RAP_WUserSetInfo2 = 114;
const int RAP_WUserPasswordSet2 = 115;
const int RAP_I_NetServerEnum2 = 116;
const int RAP_WConfigGet2 = 117;
const int RAP_WConfigGetAll2 = 118;
const int RAP_WGetDCName = 119;
const int RAP_NetHandleGetInfo = 120;
const int RAP_NetHandleSetInfo = 121;
const int RAP_WStatisticsGet2 = 122;
const int RAP_WBuildGetInfo = 123;
const int RAP_WFileGetInfo2 = 124;
const int RAP_WFileClose2 = 125;
const int RAP_WNetServerReqChallenge = 126;
const int RAP_WNetServerAuthenticate = 127;
const int RAP_WNetServerPasswordSet = 128;
const int RAP_WNetAccountDeltas = 129;
const int RAP_WNetAccountSync = 130;
const int RAP_WUserEnum2 = 131;
const int RAP_WWkstaUserLogon = 132;
const int RAP_WWkstaUserLogoff = 133;
const int RAP_WLogonEnum = 134;
const int RAP_WErrorLogRead = 135;
const int RAP_NetPathType = 136;
const int RAP_NetPathCanonicalize = 137;
const int RAP_NetPathCompare = 138;
const int RAP_NetNameValidate = 139;
const int RAP_NetNameCanonicalize = 140;
const int RAP_NetNameCompare = 141;
const int RAP_WAuditRead = 142;
const int RAP_WPrintDestAdd = 143;
const int RAP_WPrintDestSetInfo = 144;
const int RAP_WPrintDestDel = 145;
const int RAP_WUserValidate2 = 146;
const int RAP_WPrintJobSetInfo = 147;
const int RAP_TI_NetServerDiskEnum = 148;
const int RAP_TI_NetServerDiskGetInfo = 149;
const int RAP_TI_FTVerifyMirror = 150;
const int RAP_TI_FTAbortVerify = 151;
const int RAP_TI_FTGetInfo = 152;
const int RAP_TI_FTSetInfo = 153;
const int RAP_TI_FTLockDisk = 154;
const int RAP_TI_FTFixError = 155;
const int RAP_TI_FTAbortFix = 156;
const int RAP_TI_FTDiagnoseError = 157;
const int RAP_TI_FTGetDriveStats = 158;
const int RAP_TI_FTErrorGetInfo = 160;
const int RAP_NetAccessCheck = 163;
const int RAP_NetAlertRaise = 164;
const int RAP_NetAlertStart = 165;
const int RAP_NetAlertStop = 166;
const int RAP_NetAuditWrite = 167;
const int RAP_NetIRemoteAPI = 168;
const int RAP_NetServiceStatus = 169;
const int RAP_NetServerRegister = 170;
const int RAP_NetServerDeregister = 171;
const int RAP_NetSessionEntryMake = 172;
const int RAP_NetSessionEntryClear = 173;
const int RAP_NetSessionEntryGetInfo = 174;
const int RAP_NetSessionEntrySetInfo = 175;
const int RAP_NetConnectionEntryMake = 176;
const int RAP_NetConnectionEntryClear = 177;
const int RAP_NetConnectionEntrySetInfo = 178;
const int RAP_NetConnectionEntryGetInfo = 179;
const int RAP_NetFileEntryMake = 180;
const int RAP_NetFileEntryClear = 181;
const int RAP_NetFileEntrySetInfo = 182;
const int RAP_NetFileEntryGetInfo = 183;
const int RAP_AltSrvMessageBufferSend = 184;
const int RAP_AltSrvMessageFileSend = 185;
const int RAP_wI_NetRplWkstaEnum = 186;
const int RAP_wI_NetRplWkstaGetInfo = 187;
const int RAP_wI_NetRplWkstaSetInfo = 188;
const int RAP_wI_NetRplWkstaAdd = 189;
const int RAP_wI_NetRplWkstaDel = 190;
const int RAP_wI_NetRplProfileEnum = 191;
const int RAP_wI_NetRplProfileGetInfo = 192;
const int RAP_wI_NetRplProfileSetInfo = 193;
const int RAP_wI_NetRplProfileAdd = 194;
const int RAP_wI_NetRplProfileDel = 195;
const int RAP_wI_NetRplProfileClone = 196;
const int RAP_wI_NetRplBaseProfileEnum = 197;
const int RAP_WIServerSetInfo = 201;
const int RAP_WPrintDriverEnum = 205;
const int RAP_WPrintQProcessorEnum = 206;
const int RAP_WPrintPortEnum = 207;
const int RAP_WNetWriteUpdateLog = 208;
const int RAP_WNetAccountUpdate = 209;
const int RAP_WNetAccountConfirmUpdate = 210;
const int RAP_WConfigSet = 211;
const int RAP_WAccountsReplicate = 212;
const int RAP_SamOEMChgPasswordUser2_P = 214;
const int RAP_NetServerEnum3 = 215;
const int RAP_WprintDriverGetInfo = 250;
const int RAP_WprintDriverSetInfo = 251;
const int RAP_WaliasAdd = 252;
const int RAP_WaliasDel = 253;
const int RAP_WaliasGetInfo = 254;
const int RAP_WaliasSetInfo = 255;
const int RAP_WaliasEnum = 256;
const int RAP_WuserGetLogonAsn = 257;
const int RAP_WuserSetLogonAsn = 258;
const int RAP_WuserGetAppSel = 259;
const int RAP_WuserSetAppSel = 260;
const int RAP_WappAdd = 261;
const int RAP_WappDel = 262;
const int RAP_WappGetInfo = 263;
const int RAP_WappSetInfo = 264;
const int RAP_WappEnum = 265;
const int RAP_WUserDCDBInit = 266;
const int RAP_WDASDAdd = 267;
const int RAP_WDASDDel = 268;
const int RAP_WDASDGetInfo = 269;
const int RAP_WDASDSetInfo = 270;
const int RAP_WDASDEnum = 271;
const int RAP_WDASDCheck = 272;
const int RAP_WDASDCtl = 273;
const int RAP_WuserRemoteLogonCheck = 274;
const int RAP_WUserPasswordSet3 = 275;
const int RAP_WCreateRIPLMachine = 276;
const int RAP_WDeleteRIPLMachine = 277;
const int RAP_WGetRIPLMachineInfo = 278;
const int RAP_WSetRIPLMachineInfo = 279;
const int RAP_WEnumRIPLMachine = 280;
const int RAP_I_ShareAdd = 281;
const int RAP_AliasEnum = 282;
const int RAP_WaccessApply = 283;
const int RAP_WPrt16Query = 284;
const int RAP_WPrt16Set = 285;
const int RAP_WUserDel100 = 286;
const int RAP_WUserRemoteLogonCheck2 = 287;
const int RAP_WRemoteTODSet = 294;
const int RAP_WprintJobMoveAll = 295;
const int RAP_W16AppParmAdd = 296;
const int RAP_W16AppParmDel = 297;
const int RAP_W16AppParmGet = 298;
const int RAP_W16AppParmSet = 299;
const int RAP_W16RIPLMachineCreate = 300;
const int RAP_W16RIPLMachineGetInfo = 301;
const int RAP_W16RIPLMachineSetInfo = 302;
const int RAP_W16RIPLMachineEnum = 303;
const int RAP_W16RIPLMachineListParmEnum = 304;
const int RAP_W16RIPLMachClassGetInfo = 305;
const int RAP_W16RIPLMachClassEnum = 306;
const int RAP_W16RIPLMachClassCreate = 307;
const int RAP_W16RIPLMachClassSetInfo = 308;
const int RAP_W16RIPLMachClassDelete = 309;
const int RAP_W16RIPLMachClassLPEnum = 310;
const int RAP_W16RIPLMachineDelete = 311;
const int RAP_W16WSLevelGetInfo = 312;
const int RAP_WserverNameAdd = 313;
const int RAP_WserverNameDel = 314;
const int RAP_WserverNameEnum = 315;
const int RAP_I_WDASDEnum = 316;
const int RAP_WDASDEnumTerminate = 317;
const int RAP_WDASDSetInfo2 = 318;
const int MAX_API = 318;
/* sizes of fixed-length fields, including null terminator */
const int RAP_GROUPNAME_LEN = 21;
const int RAP_USERNAME_LEN = 21;
const int RAP_SHARENAME_LEN = 13;
const int RAP_UPASSWD_LEN = 16; /* user password */
const int RAP_SPASSWD_LEN = 9; /* share password */
const int RAP_MACHNAME_LEN = 16;
const int RAP_SRVCNAME_LEN = 16;
const int RAP_SRVCCMNT_LEN = 64;
const int RAP_DATATYPE_LEN = 10;
typedef struct {
uint8 group_name[21];
char reserved1;
[string,charset(DOS)] uint8 *comment;
} rap_group_info_1;
typedef struct {
uint8 user_name[21];
char reserved1;
uint8 passwrd[16];
uint32 pwage;
uint16 priv;
[string,charset(DOS)] uint8 *home_dir;
[string,charset(DOS)] uint8 *comment;
uint16 userflags;
[string,charset(DOS)] uint8 *logon_script;
} rap_user_info_1;
typedef struct {
uint8 service_name[16];
uint16 status;
uint32 installcode;
uint16 process_num;
[string,charset(DOS)] uint8 *comment;
} rap_service_info_2;
typedef struct {
uint8 share_name[13];
} rap_share_info_0;
typedef struct {
uint8 share_name[13];
char reserved1;
uint16 share_type;
[string,charset(DOS)] uint8 *comment;
} rap_share_info_1;
typedef struct {
uint8 share_name[13];
char reserved1;
uint16 share_type;
[string,charset(DOS)] uint8 *comment;
uint16 perms;
uint16 maximum_users;
uint16 active_users;
[string,charset(DOS)] uint8 *path;
uint8 password[9];
char reserved2;
} rap_share_info_2;
typedef [nodiscriminant] union {
[case(0)] rap_share_info_0 info0;
[case(1)] rap_share_info_1 info1;
[case(2)] rap_share_info_2 info2;
} rap_share_info;
[public] void rap_NetShareEnum(
[in] uint16 level,
[in] uint16 bufsize,
[out] uint16 status,
[out] uint16 convert,
[out] uint16 count,
[out] uint16 available,
[out,switch_is(level)] rap_share_info *info
);
typedef struct {
uint8 name[16];
} rap_server_info_0;
typedef struct {
uint8 name[16];
uint8 version_major;
uint8 version_minor;
uint32 servertype;
[string,charset(DOS)] uint8 *comment;
} rap_server_info_1;
typedef [nodiscriminant] union {
[case(0)] rap_server_info_0 info0;
[case(1)] rap_server_info_1 info1;
} rap_server_info;
[public] void rap_NetServerEnum2(
[in] uint16 level,
[in] uint16 bufsize,
[in] uint32 servertype,
[in] [string,charset(DOS)] uint8 *domain,
[out] uint16 status,
[out] uint16 convert,
[out] uint16 count,
[out] uint16 available,
[out,switch_is(level)] rap_server_info *info
);
[public] void rap_WserverGetInfo(
[in] uint16 level,
[in] uint16 bufsize,
[out] uint16 status,
[out] uint16 convert,
[out] uint16 available,
[out,switch_is(level)] rap_server_info info
);
typedef [public] enum {
PRJ_QS_QUEUED = 0x0000,
PRJ_QS_PAUSED = 0x0001,
PRJ_QS_SPOOLING = 0x0002,
PRJ_QS_PRINTING = 0x0003,
PRJ_QS_ERROR = 0x0010
} rap_PrintJStatusCode;
typedef struct {
uint16 JobID;
} rap_PrintJobInfo0;
typedef struct {
uint16 JobID;
uint8 UserName[21];
uint8 Pad;
uint8 NotifyName[16];
uint8 DataType[10];
[relative_short] [string,charset(DOS)] uint8 *PrintParameterString;
uint16 PrintParameterStringHigh;
uint16 JobPosition;
rap_PrintJStatusCode JobStatus;
[relative_short] [string,charset(DOS)] uint8 *JobStatusString;
uint16 JobStatusStringHigh;
uint32 TimeSubmitted;
uint32 JobSize;
[relative_short] [string,charset(DOS)] uint8 *JobCommentString;
uint16 JobCommentStringHigh;
} rap_PrintJobInfo1;
typedef struct {
uint16 JobID;
uint16 Priority;
[relative_short] [string,charset(DOS)] uint8 *UserName;
uint16 UserNameHigh;
uint16 JobPosition;
rap_PrintJStatusCode JobStatus;
uint32 TimeSubmitted;
uint32 JobSize;
[relative_short] [string,charset(DOS)] uint8 *JobCommentString;
uint16 JobCommentStringHigh;
[relative_short] [string,charset(DOS)] uint8 *DocumentName;
uint16 DocumentNameHigh;
} rap_PrintJobInfo2;
typedef struct {
uint16 JobID;
uint16 Priority;
[relative_short] [string,charset(DOS)] uint8 *UserName;
uint16 UserNameHigh;
uint16 JobPosition;
rap_PrintJStatusCode JobStatus;
uint32 TimeSubmitted;
uint32 JobSize;
[relative_short] [string,charset(DOS)] uint8 *JobCommentString;
uint16 JobCommentStringHigh;
[relative_short] [string,charset(DOS)] uint8 *DocumentName;
uint16 DocumentNameHigh;
[relative_short] [string,charset(DOS)] uint8 *NotifyName;
uint16 NotifyNameHigh;
[relative_short] [string,charset(DOS)] uint8 *DataType;
uint16 DataTypeHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintParameterString;
uint16 PrintParameterStringHigh;
[relative_short] [string,charset(DOS)] uint8 *StatusString;
uint16 StatusStringHigh;
[relative_short] [string,charset(DOS)] uint8 *QueueName;
uint16 QueueNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintProcessorName;
uint16 PrintProcessorNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintProcessorParams;
uint16 PrintProcessorParamsHigh;
[relative_short] [string,charset(DOS)] uint8 *DriverName;
uint16 DriverNameHigh;
[relative_short] [string,charset(DOS)] uint8 *DriverDataOffset;
uint16 DriverDataOffsetHigh;
[relative_short] [string,charset(DOS)] uint8 *PrinterNameOffset;
uint16 PrinterNameOffsetHigh;
} rap_PrintJobInfo3;
typedef [public] enum {
PRQ_ACTIVE = 0x0000,
PRQ_PAUSE = 0x0001,
PRQ_ERROR = 0x0002,
PRQ_PENDING = 0x0003
} rap_PrintQStatusCode;
typedef struct {
[charset(DOS)] uint8 PrintQName[13];
} rap_PrintQueue0;
typedef struct {
[charset(DOS)] uint8 PrintQName[13];
uint8 Pad1;
uint16 Priority;
uint16 StartTime;
uint16 UntilTime;
[relative_short] [string,charset(DOS)] uint8 *SeparatorPageFilename;
uint16 SeparatorPageFilenameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintProcessorDllName;
uint16 PrintProcessorDllNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintDestinationsName;
uint16 PrintDestinationsNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintParameterString;
uint16 PrintParameterStringHigh;
[relative_short] [string,charset(DOS)] uint8 *CommentString;
uint16 CommentStringHigh;
rap_PrintQStatusCode PrintQStatus;
uint16 PrintJobCount;
} rap_PrintQueue1;
typedef struct {
rap_PrintQueue1 queue;
rap_PrintJobInfo1 job;
} rap_PrintQueue2;
typedef struct {
[relative_short] [string,charset(DOS)] uint8 *PrintQueueName;
uint16 PrintQueueNameHigh;
uint16 Priority;
uint16 StartTime;
uint16 UntilTime;
uint16 Pad;
[relative_short] [string,charset(DOS)] uint8 *SeparatorPageFilename;
uint16 SeparatorPageFilenameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintProcessorDllName;
uint16 PrintProcessorDllNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintParameterString;
uint16 PrintParameterStringHigh;
[relative_short] [string,charset(DOS)] uint8 *CommentString;
uint16 CommentStringHigh;
rap_PrintQStatusCode PrintQStatus;
uint16 PrintJobCount;
[relative_short] [string,charset(DOS)] uint8 *Printers;
uint16 PrintersHigh;
[relative_short] [string,charset(DOS)] uint8 *DriverName;
uint16 DriverNameHigh;
[relative_short] [string,charset(DOS)] uint8 *PrintDriverData;
uint16 PrintDriverDataHigh;
} rap_PrintQueue3;
typedef struct {
} rap_PrintQueue4;
typedef struct {
[relative_short] [string,charset(DOS)] uint8 *PrintQueueName;
uint16 PrintQueueNameHigh;
} rap_PrintQueue5;
typedef [nodiscriminant] union {
[case(0)] rap_PrintQueue0 info0;
[case(1)] rap_PrintQueue1 info1;
[case(2)] rap_PrintQueue2 info2;
[case(3)] rap_PrintQueue3 info3;
[case(4)] rap_PrintQueue4 info4;
[case(5)] rap_PrintQueue5 info5;
} rap_printq_info;
[public,noprint] void rap_NetPrintQEnum(
[in] uint16 level,
[in] uint16 bufsize,
[out] uint16 status,
[out] uint16 convert,
[out] uint16 count,
[out] uint16 available,
[out,switch_is(level)] rap_printq_info *info
);
[public] void rap_NetPrintQGetInfo(
[in] [string,charset(DOS)] uint8 *PrintQueueName,
[in] uint16 level,
[in] uint16 bufsize,
[out] uint16 status,
[out] uint16 convert,
[out] uint16 available,
[out,switch_is(level)] rap_printq_info info
);
[public] void rap_NetPrintJobPause(
[in] uint16 JobID,
[out] uint16 status,
[out] uint16 convert
);
[public] void rap_NetPrintJobContinue(
[in] uint16 JobID,
[out] uint16 status,
[out] uint16 convert
);
[public] void rap_NetPrintJobDelete(
[in] uint16 JobID,
[out] uint16 status,
[out] uint16 convert
);
/* Parameter description strings for RAP calls */
/* Names are defined name for RAP call with _REQ */
/* appended to end. */
const string RAP_WFileEnum2_REQ = "zzWrLehb8g8";
const string RAP_WFileGetInfo2_REQ = "DWrLh";
const string RAP_WFileClose2_REQ = "D";
const string RAP_NetGroupEnum_REQ = "WrLeh";
const string RAP_NetGroupAdd_REQ = "WsT";
const string RAP_NetGroupDel_REQ = "z";
const string RAP_NetGroupAddUser_REQ = "zz";
const string RAP_NetGroupDelUser_REQ = "zz";
const string RAP_NetGroupGetUsers_REQ = "zWrLeh";
const string RAP_NetGroupSetUsers_REQ = "zWsTW";
const string RAP_NetUserAdd2_REQ = "WsTWW";
const string RAP_NetUserEnum_REQ = "WrLeh";
const string RAP_NetUserEnum2_REQ = "WrLDieh";
const string RAP_NetUserGetGroups_REQ = "zWrLeh";
const string RAP_NetUserSetGroups_REQ = "zWsTW";
const string RAP_NetUserPasswordSet_REQ = "zb16b16w";
const string RAP_NetUserPasswordSet2_REQ = "zb16b16WW";
const string RAP_SAMOEMChgPasswordUser2_REQ = "B516B16";
const string RAP_NetUserValidate2_REQ = "Wb62WWrLhWW";
const string RAP_NetServerEnum2_REQ = "WrLehDz";
const string RAP_WserverGetInfo_REQ = "WrLh";
const string RAP_NetWkstatGetInfo = "WrLh";
const string RAP_WShareAdd_REQ = "WsT";
const string RAP_WShareEnum_REQ = "WrLeh";
const string RAP_WShareDel_REQ = "zW";
const string RAP_WWkstaGetInfo_REQ = "WrLh";
const string RAP_NetPrintQEnum_REQ = "WrLeh";
const string RAP_NetPrintQGetInfo_REQ = "zWrLh";
const string RAP_NetServerAdminCommand_REQ = "zhrLeh";
const string RAP_NetServiceEnum_REQ = "WrLeh";
const string RAP_NetServiceControl_REQ = "zWWrL";
const string RAP_NetServiceInstall_REQ = "zF88sg88T";
const string RAP_NetServiceGetInfo_REQ = "zWrLh";
const string RAP_NetSessionEnum_REQ = "WrLeh";
const string RAP_NetSessionGetInfo_REQ = "zWrLh";
const string RAP_NetSessionDel_REQ = "zW";
const string RAP_NetConnectionEnum_REQ = "zWrLeh";
const string RAP_NetWkstaUserLogoff_REQ = "zzWb38WrLh";
/* Description strings for returned data in RAP calls */
/* I use all caps here in part to avoid accidental */
/* name collisions */
const string RAP_FILE_INFO_L2 = "D";
const string RAP_FILE_INFO_L3 = "DWWzz";
const string RAP_GROUP_INFO_L0 = "B21";
const string RAP_GROUP_INFO_L1 = "B21Bz";
const string RAP_GROUP_USERS_INFO_0 = "B21";
const string RAP_GROUP_USERS_INFO_1 = "B21BN";
const string RAP_USER_INFO_L0 = "B21";
const string RAP_USER_INFO_L1 = "B21BB16DWzzWz";
const string RAP_SERVER_INFO_L0 = "B16";
const string RAP_SERVER_INFO_L1 = "B16BBDz";
const string RAP_SERVER_INFO_L2 = "B16BBDzDDDWWzWWWWWWWB21BzWWWWWWWWWWWWWWWWWWWWWWz";
const string RAP_SERVER_INFO_L3 = "B16BBDzDDDWWzWWWWWWWB21BzWWWWWWWWWWWWWWWWWWWWWWzDWz";
const string RAP_SERVICE_INFO_L0 = "B16";
const string RAP_SERVICE_INFO_L2 = "B16WDWB64";
const string RAP_SHARE_INFO_L0 = "B13";
const string RAP_SHARE_INFO_L1 = "B13BWz";
const string RAP_SHARE_INFO_L2 = "B13BWzWWWzB9B";
const string RAP_PRINTQ_INFO_L2 = "B13BWWWzzzzzWN";
const string RAP_SMB_PRINT_JOB_L1 = "WB21BB16B10zWWzDDz";
const string RAP_SESSION_INFO_L2 = "zzWWWDDDz";
const string RAP_CONNECTION_INFO_L1 = "WWWWDzz";
const string RAP_USER_LOGOFF_INFO_L1 = "WDW";
const string RAP_WKSTA_INFO_L1 = "WDzzzzBBDWDWWWWWWWWWWWWWWWWWWWzzWzzW";
const string RAP_WKSTA_INFO_L10 = "zzzBBzz";
};
|