1 /* 2 * Please do not edit this file. 3 * It was generated using ndrgen. 4 */ 5 6 #include <strings.h> 7 #include <smbsrv/ndr.h> 8 #include <smbsrv/ndl/spoolss.ndl> 9 10 extern struct ndr_typeinfo ndt__char; 11 extern struct ndr_typeinfo ndt_s_char; 12 extern struct ndr_typeinfo ndt__uchar; 13 extern struct ndr_typeinfo ndt_s_uchar; 14 extern struct ndr_typeinfo ndt__wchar; 15 extern struct ndr_typeinfo ndt_s_wchar; 16 extern struct ndr_typeinfo ndt__short; 17 extern struct ndr_typeinfo ndt_s_short; 18 extern struct ndr_typeinfo ndt__ushort; 19 extern struct ndr_typeinfo ndt_s_ushort; 20 extern struct ndr_typeinfo ndt__long; 21 extern struct ndr_typeinfo ndt_s_long; 22 extern struct ndr_typeinfo ndt__ulong; 23 extern struct ndr_typeinfo ndt_s_ulong; 24 25 26 27 int ndr__GUID (struct ndr_reference *encl_ref); 28 struct ndr_typeinfo ndt__GUID = { 29 1, /* NDR version */ 30 3, /* alignment */ 31 NDR_F_STRUCT, /* flags */ 32 ndr__GUID, /* ndr_func */ 33 16, /* pdu_size_fixed_part */ 34 0, /* pdu_size_variable_part */ 35 16, /* c_size_fixed_part */ 36 0, /* c_size_variable_part */ 37 }; 38 39 40 /* 41 * */ 42 int 43 ndr__GUID (struct ndr_reference *encl_ref) 44 { 45 struct GUID *val = (struct GUID *) encl_ref->datum; 46 struct ndr_reference myref; 47 48 (void) bzero(&myref, sizeof (myref)); 49 myref.enclosing = encl_ref; 50 myref.stream = encl_ref->stream; 51 52 /* do all basic elements first */ 53 NDR_MEMBER (_ulong, time_low, 0UL); 54 NDR_MEMBER (_ushort, time_mid, 4UL); 55 NDR_MEMBER (_ushort, time_hi_and_version, 6UL); 56 57 /* do all constructed elements w/o pointers */ 58 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, clock_seq, 8UL, 59 2); 60 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, node, 10UL, 61 6); 62 63 /* do members with pointers in order */ 64 65 return 1; 66 } 67 68 69 70 int ndr__dom_sid (struct ndr_reference *encl_ref); 71 struct ndr_typeinfo ndt__dom_sid = { 72 1, /* NDR version */ 73 3, /* alignment */ 74 NDR_F_STRUCT, /* flags */ 75 ndr__dom_sid, /* ndr_func */ 76 12, /* pdu_size_fixed_part */ 77 0, /* pdu_size_variable_part */ 78 12, /* c_size_fixed_part */ 79 0, /* c_size_variable_part */ 80 }; 81 82 83 /* 84 * */ 85 int 86 ndr__dom_sid (struct ndr_reference *encl_ref) 87 { 88 struct dom_sid *val = (struct dom_sid *) encl_ref->datum; 89 struct ndr_reference myref; 90 91 (void) bzero(&myref, sizeof (myref)); 92 myref.enclosing = encl_ref; 93 myref.stream = encl_ref->stream; 94 95 /* do all basic elements first */ 96 NDR_MEMBER (_uchar, sid_rev_num, 0UL); 97 NDR_MEMBER (_uchar, num_auths, 1UL); 98 99 /* do all constructed elements w/o pointers */ 100 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, id_auth, 2UL, 101 6); 102 103 /* do members with pointers in order */ 104 NDR_MEMBER_PTR (_ulong, sub_auths, 8UL); 105 106 return 1; 107 } 108 109 110 111 int ndr__security_ace_object_type (struct ndr_reference *encl_ref); 112 struct ndr_typeinfo ndt__security_ace_object_type = { 113 1, /* NDR version */ 114 3, /* alignment */ 115 NDR_F_UNION, /* flags */ 116 ndr__security_ace_object_type, /* ndr_func */ 117 16, /* pdu_size_fixed_part */ 118 0, /* pdu_size_variable_part */ 119 16, /* c_size_fixed_part */ 120 0, /* c_size_variable_part */ 121 }; 122 123 124 /* 125 * */ 126 int 127 ndr__security_ace_object_type (struct ndr_reference *encl_ref) 128 { 129 union security_ace_object_type *val = (union security_ace_object_type *) encl_ref->datum; 130 struct ndr_reference myref; 131 132 (void) bzero(&myref, sizeof (myref)); 133 myref.enclosing = encl_ref; 134 myref.stream = encl_ref->stream; 135 136 switch (encl_ref->switch_is) { 137 case 0: 138 NDR_MEMBER (_GUID, type, 0UL); 139 break; 140 141 default: 142 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 143 return 0; 144 break; 145 } 146 147 148 return 1; 149 } 150 151 152 153 int ndr__security_ace_object_inherited_type (struct ndr_reference *encl_ref); 154 struct ndr_typeinfo ndt__security_ace_object_inherited_type = { 155 1, /* NDR version */ 156 3, /* alignment */ 157 NDR_F_UNION, /* flags */ 158 ndr__security_ace_object_inherited_type, /* ndr_func */ 159 16, /* pdu_size_fixed_part */ 160 0, /* pdu_size_variable_part */ 161 16, /* c_size_fixed_part */ 162 0, /* c_size_variable_part */ 163 }; 164 165 166 /* 167 * */ 168 int 169 ndr__security_ace_object_inherited_type (struct ndr_reference *encl_ref) 170 { 171 union security_ace_object_inherited_type *val = (union security_ace_object_inherited_type *) encl_ref->datum; 172 struct ndr_reference myref; 173 174 (void) bzero(&myref, sizeof (myref)); 175 myref.enclosing = encl_ref; 176 myref.stream = encl_ref->stream; 177 178 switch (encl_ref->switch_is) { 179 case 0: 180 NDR_MEMBER (_GUID, inherited_type, 0UL); 181 break; 182 183 default: 184 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 185 return 0; 186 break; 187 } 188 189 190 return 1; 191 } 192 193 194 195 int ndr__security_ace_object (struct ndr_reference *encl_ref); 196 struct ndr_typeinfo ndt__security_ace_object = { 197 1, /* NDR version */ 198 3, /* alignment */ 199 NDR_F_STRUCT, /* flags */ 200 ndr__security_ace_object, /* ndr_func */ 201 4, /* pdu_size_fixed_part */ 202 0, /* pdu_size_variable_part */ 203 4, /* c_size_fixed_part */ 204 0, /* c_size_variable_part */ 205 }; 206 207 208 /* 209 * */ 210 int 211 ndr__security_ace_object (struct ndr_reference *encl_ref) 212 { 213 struct security_ace_object *val = (struct security_ace_object *) encl_ref->datum; 214 struct ndr_reference myref; 215 216 (void) bzero(&myref, sizeof (myref)); 217 myref.enclosing = encl_ref; 218 myref.stream = encl_ref->stream; 219 220 /* do all basic elements first */ 221 NDR_MEMBER (_ulong, flags, 0UL); 222 223 /* do all constructed elements w/o pointers */ 224 225 /* do members with pointers in order */ 226 227 return 1; 228 } 229 230 231 232 int ndr__security_ace_object_ctr (struct ndr_reference *encl_ref); 233 struct ndr_typeinfo ndt__security_ace_object_ctr = { 234 1, /* NDR version */ 235 3, /* alignment */ 236 NDR_F_UNION, /* flags */ 237 ndr__security_ace_object_ctr, /* ndr_func */ 238 4, /* pdu_size_fixed_part */ 239 0, /* pdu_size_variable_part */ 240 4, /* c_size_fixed_part */ 241 0, /* c_size_variable_part */ 242 }; 243 244 245 /* 246 * */ 247 int 248 ndr__security_ace_object_ctr (struct ndr_reference *encl_ref) 249 { 250 union security_ace_object_ctr *val = (union security_ace_object_ctr *) encl_ref->datum; 251 struct ndr_reference myref; 252 253 (void) bzero(&myref, sizeof (myref)); 254 myref.enclosing = encl_ref; 255 myref.stream = encl_ref->stream; 256 257 switch (encl_ref->switch_is) { 258 case 0: 259 NDR_MEMBER (_security_ace_object, object, 0UL); 260 break; 261 262 default: 263 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 264 return 0; 265 break; 266 } 267 268 269 return 1; 270 } 271 272 273 274 int ndr__security_ace (struct ndr_reference *encl_ref); 275 struct ndr_typeinfo ndt__security_ace = { 276 1, /* NDR version */ 277 3, /* alignment */ 278 NDR_F_STRUCT, /* flags */ 279 ndr__security_ace, /* ndr_func */ 280 24, /* pdu_size_fixed_part */ 281 0, /* pdu_size_variable_part */ 282 24, /* c_size_fixed_part */ 283 0, /* c_size_variable_part */ 284 }; 285 286 287 /* 288 * */ 289 int 290 ndr__security_ace (struct ndr_reference *encl_ref) 291 { 292 struct security_ace *val = (struct security_ace *) encl_ref->datum; 293 struct ndr_reference myref; 294 295 (void) bzero(&myref, sizeof (myref)); 296 myref.enclosing = encl_ref; 297 myref.stream = encl_ref->stream; 298 299 /* do all basic elements first */ 300 NDR_MEMBER (_ulong, security_ace_type, 0UL); 301 NDR_MEMBER (_uchar, flags, 4UL); 302 NDR_MEMBER (_ushort, size, 6UL); 303 NDR_MEMBER (_ulong, access_mask, 8UL); 304 305 /* do all constructed elements w/o pointers */ 306 307 /* do members with pointers in order */ 308 NDR_MEMBER (_dom_sid, trustee, 12UL); 309 310 return 1; 311 } 312 313 314 315 int ndr__security_acl (struct ndr_reference *encl_ref); 316 struct ndr_typeinfo ndt__security_acl = { 317 1, /* NDR version */ 318 3, /* alignment */ 319 NDR_F_STRUCT, /* flags */ 320 ndr__security_acl, /* ndr_func */ 321 16, /* pdu_size_fixed_part */ 322 0, /* pdu_size_variable_part */ 323 16, /* c_size_fixed_part */ 324 0, /* c_size_variable_part */ 325 }; 326 327 328 /* 329 * */ 330 int 331 ndr__security_acl (struct ndr_reference *encl_ref) 332 { 333 struct security_acl *val = (struct security_acl *) encl_ref->datum; 334 struct ndr_reference myref; 335 336 (void) bzero(&myref, sizeof (myref)); 337 myref.enclosing = encl_ref; 338 myref.stream = encl_ref->stream; 339 340 /* do all basic elements first */ 341 NDR_MEMBER (_ulong, security_acl_revision, 0UL); 342 NDR_MEMBER (_ushort, size, 4UL); 343 NDR_MEMBER (_ulong, num_aces, 8UL); 344 345 /* do all constructed elements w/o pointers */ 346 347 /* do members with pointers in order */ 348 NDR_MEMBER_PTR (_security_ace, aces, 12UL); 349 350 return 1; 351 } 352 353 354 355 int ndr__security_descriptor (struct ndr_reference *encl_ref); 356 struct ndr_typeinfo ndt__security_descriptor = { 357 1, /* NDR version */ 358 3, /* alignment */ 359 NDR_F_STRUCT, /* flags */ 360 ndr__security_descriptor, /* ndr_func */ 361 20, /* pdu_size_fixed_part */ 362 0, /* pdu_size_variable_part */ 363 20, /* c_size_fixed_part */ 364 0, /* c_size_variable_part */ 365 }; 366 367 368 /* 369 * */ 370 int 371 ndr__security_descriptor (struct ndr_reference *encl_ref) 372 { 373 struct security_descriptor *val = (struct security_descriptor *) encl_ref->datum; 374 struct ndr_reference myref; 375 376 (void) bzero(&myref, sizeof (myref)); 377 myref.enclosing = encl_ref; 378 myref.stream = encl_ref->stream; 379 380 /* do all basic elements first */ 381 NDR_MEMBER (_ushort, revision, 0UL); 382 NDR_MEMBER (_ushort, type, 2UL); 383 NDR_MEMBER (_ulong, ownersid, 4UL); 384 NDR_MEMBER (_ulong, groupsid, 8UL); 385 NDR_MEMBER (_ulong, sacl, 12UL); 386 NDR_MEMBER (_ulong, dacl, 16UL); 387 388 /* do all constructed elements w/o pointers */ 389 390 /* do members with pointers in order */ 391 392 return 1; 393 } 394 395 396 397 int ndr__sec_desc_buf (struct ndr_reference *encl_ref); 398 struct ndr_typeinfo ndt__sec_desc_buf = { 399 1, /* NDR version */ 400 3, /* alignment */ 401 NDR_F_STRUCT, /* flags */ 402 ndr__sec_desc_buf, /* ndr_func */ 403 8, /* pdu_size_fixed_part */ 404 0, /* pdu_size_variable_part */ 405 8, /* c_size_fixed_part */ 406 0, /* c_size_variable_part */ 407 }; 408 409 410 /* 411 * */ 412 int 413 ndr__sec_desc_buf (struct ndr_reference *encl_ref) 414 { 415 struct sec_desc_buf *val = (struct sec_desc_buf *) encl_ref->datum; 416 struct ndr_reference myref; 417 418 (void) bzero(&myref, sizeof (myref)); 419 myref.enclosing = encl_ref; 420 myref.stream = encl_ref->stream; 421 422 /* do all basic elements first */ 423 NDR_MEMBER (_ulong, sd_size, 0UL); 424 425 /* do all constructed elements w/o pointers */ 426 427 /* do members with pointers in order */ 428 NDR_MEMBER_PTR (_security_descriptor, sd, 4UL); 429 430 return 1; 431 } 432 433 434 435 int ndr__security_token (struct ndr_reference *encl_ref); 436 struct ndr_typeinfo ndt__security_token = { 437 1, /* NDR version */ 438 3, /* alignment */ 439 NDR_F_STRUCT, /* flags */ 440 ndr__security_token, /* ndr_func */ 441 20, /* pdu_size_fixed_part */ 442 0, /* pdu_size_variable_part */ 443 20, /* c_size_fixed_part */ 444 0, /* c_size_variable_part */ 445 }; 446 447 448 /* 449 * */ 450 int 451 ndr__security_token (struct ndr_reference *encl_ref) 452 { 453 struct security_token *val = (struct security_token *) encl_ref->datum; 454 struct ndr_reference myref; 455 456 (void) bzero(&myref, sizeof (myref)); 457 myref.enclosing = encl_ref; 458 myref.stream = encl_ref->stream; 459 460 /* do all basic elements first */ 461 NDR_MEMBER (_ulong, num_sids, 8UL); 462 NDR_MEMBER (_ulong, privilege_mask1, 12UL); 463 NDR_MEMBER (_ulong, privilege_mask2, 16UL); 464 465 /* do all constructed elements w/o pointers */ 466 467 /* do members with pointers in order */ 468 NDR_MEMBER_PTR (_dom_sid, user_sid, 0UL); 469 NDR_MEMBER_PTR (_dom_sid, group_sid, 4UL); 470 471 return 1; 472 } 473 474 475 476 int ndr__spoolss_handle (struct ndr_reference *encl_ref); 477 struct ndr_typeinfo ndt__spoolss_handle = { 478 1, /* NDR version */ 479 3, /* alignment */ 480 NDR_F_STRUCT, /* flags */ 481 ndr__spoolss_handle, /* ndr_func */ 482 20, /* pdu_size_fixed_part */ 483 0, /* pdu_size_variable_part */ 484 20, /* c_size_fixed_part */ 485 0, /* c_size_variable_part */ 486 }; 487 488 489 /* 490 * */ 491 int 492 ndr__spoolss_handle (struct ndr_reference *encl_ref) 493 { 494 struct spoolss_handle *val = (struct spoolss_handle *) encl_ref->datum; 495 struct ndr_reference myref; 496 497 (void) bzero(&myref, sizeof (myref)); 498 myref.enclosing = encl_ref; 499 myref.stream = encl_ref->stream; 500 501 /* do all basic elements first */ 502 NDR_MEMBER (_ulong, data1, 0UL); 503 NDR_MEMBER (_ulong, data2, 4UL); 504 505 /* do all constructed elements w/o pointers */ 506 NDR_MEMBER_ARR_WITH_DIMENSION (_ushort, data3, 8UL, 507 2); 508 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 12UL, 509 8); 510 511 /* do members with pointers in order */ 512 513 return 1; 514 } 515 516 517 518 int ndr__spoolssDevmodeContainer (struct ndr_reference *encl_ref); 519 struct ndr_typeinfo ndt__spoolssDevmodeContainer = { 520 1, /* NDR version */ 521 3, /* alignment */ 522 NDR_F_STRUCT, /* flags */ 523 ndr__spoolssDevmodeContainer, /* ndr_func */ 524 8, /* pdu_size_fixed_part */ 525 0, /* pdu_size_variable_part */ 526 8, /* c_size_fixed_part */ 527 0, /* c_size_variable_part */ 528 }; 529 530 531 /* 532 * */ 533 int 534 ndr__spoolssDevmodeContainer (struct ndr_reference *encl_ref) 535 { 536 struct spoolssDevmodeContainer *val = (struct spoolssDevmodeContainer *) encl_ref->datum; 537 struct ndr_reference myref; 538 539 (void) bzero(&myref, sizeof (myref)); 540 myref.enclosing = encl_ref; 541 myref.stream = encl_ref->stream; 542 543 /* do all basic elements first */ 544 NDR_MEMBER (_uchar, DevContCount, 0UL); 545 546 /* do all constructed elements w/o pointers */ 547 548 /* do members with pointers in order */ 549 NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, DevMode, 4UL, 550 val->DevContCount); 551 552 return 1; 553 } 554 555 556 557 int ndr__spoolss_DeviceMode (struct ndr_reference *encl_ref); 558 struct ndr_typeinfo ndt__spoolss_DeviceMode = { 559 1, /* NDR version */ 560 3, /* alignment */ 561 NDR_F_STRUCT, /* flags */ 562 ndr__spoolss_DeviceMode, /* ndr_func */ 563 228, /* pdu_size_fixed_part */ 564 0, /* pdu_size_variable_part */ 565 228, /* c_size_fixed_part */ 566 0, /* c_size_variable_part */ 567 }; 568 569 570 /* 571 * */ 572 int 573 ndr__spoolss_DeviceMode (struct ndr_reference *encl_ref) 574 { 575 struct spoolss_DeviceMode *val = (struct spoolss_DeviceMode *) encl_ref->datum; 576 struct ndr_reference myref; 577 578 (void) bzero(&myref, sizeof (myref)); 579 myref.enclosing = encl_ref; 580 myref.stream = encl_ref->stream; 581 582 /* do all basic elements first */ 583 NDR_MEMBER (_ushort, specversion, 64UL); 584 NDR_MEMBER (_ushort, driverversion, 66UL); 585 NDR_MEMBER (_ushort, size, 68UL); 586 NDR_MEMBER (_ushort, driverextra_length, 70UL); 587 NDR_MEMBER (_ulong, fields, 72UL); 588 NDR_MEMBER (_ushort, orientation, 76UL); 589 NDR_MEMBER (_ushort, papersize, 78UL); 590 NDR_MEMBER (_ushort, paperlength, 80UL); 591 NDR_MEMBER (_ushort, paperwidth, 82UL); 592 NDR_MEMBER (_ushort, scale, 84UL); 593 NDR_MEMBER (_ushort, copies, 86UL); 594 NDR_MEMBER (_ushort, defaultsource, 88UL); 595 NDR_MEMBER (_ushort, printquality, 90UL); 596 NDR_MEMBER (_ushort, color, 92UL); 597 NDR_MEMBER (_ushort, duplex, 94UL); 598 NDR_MEMBER (_ushort, yresolution, 96UL); 599 NDR_MEMBER (_ushort, ttoption, 98UL); 600 NDR_MEMBER (_ushort, collate, 100UL); 601 NDR_MEMBER (_ushort, logpixels, 166UL); 602 NDR_MEMBER (_ulong, bitsperpel, 168UL); 603 NDR_MEMBER (_ulong, pelswidth, 172UL); 604 NDR_MEMBER (_ulong, pelsheight, 176UL); 605 NDR_MEMBER (_ulong, displayflags, 180UL); 606 NDR_MEMBER (_ulong, displayfrequency, 184UL); 607 NDR_MEMBER (_ulong, icmmethod, 188UL); 608 NDR_MEMBER (_ulong, icmintent, 192UL); 609 NDR_MEMBER (_ulong, mediatype, 196UL); 610 NDR_MEMBER (_ulong, dithertype, 200UL); 611 NDR_MEMBER (_ulong, reserved1, 204UL); 612 NDR_MEMBER (_ulong, reserved2, 208UL); 613 NDR_MEMBER (_ulong, panningwidth, 212UL); 614 NDR_MEMBER (_ulong, panningheight, 216UL); 615 616 /* do all constructed elements w/o pointers */ 617 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, devicename, 0UL, 618 64); 619 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, formname, 102UL, 620 64); 621 622 /* do members with pointers in order */ 623 NDR_MEMBER (_spoolssDevmodeContainer, driverextra_data, 220UL); 624 625 return 1; 626 } 627 628 629 630 int ndr__spoolss_CreatePrinterIC (struct ndr_reference *encl_ref); 631 struct ndr_typeinfo ndt__spoolss_CreatePrinterIC = { 632 1, /* NDR version */ 633 3, /* alignment */ 634 NDR_F_OPERATION, /* flags */ 635 ndr__spoolss_CreatePrinterIC, /* ndr_func */ 636 52, /* pdu_size_fixed_part */ 637 0, /* pdu_size_variable_part */ 638 52, /* c_size_fixed_part */ 639 0, /* c_size_variable_part */ 640 }; 641 642 643 /* 644 * [operation(40)] 645 */ 646 int 647 ndr__spoolss_CreatePrinterIC (struct ndr_reference *encl_ref) 648 { 649 struct spoolss_CreatePrinterIC *val = (struct spoolss_CreatePrinterIC *) encl_ref->datum; 650 struct ndr_reference myref; 651 652 (void) bzero(&myref, sizeof (myref)); 653 myref.enclosing = encl_ref; 654 myref.stream = encl_ref->stream; 655 656 /* do all members in order */ 657 if (NDR_DIR_IS_IN) { 658 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 659 } 660 if (NDR_DIR_IS_OUT) { 661 NDR_TOPMOST_MEMBER (_spoolss_handle, gdi_handle); 662 } 663 if (NDR_DIR_IS_IN) { 664 NDR_TOPMOST_MEMBER (_spoolssDevmodeContainer, dmodeContainer); 665 } 666 if (NDR_DIR_IS_OUT) { 667 NDR_TOPMOST_MEMBER (_ulong, status); 668 } 669 670 return 1; 671 } 672 673 674 675 int ndr__spoolss_OpenPrinter (struct ndr_reference *encl_ref); 676 struct ndr_typeinfo ndt__spoolss_OpenPrinter = { 677 1, /* NDR version */ 678 3, /* alignment */ 679 NDR_F_OPERATION, /* flags */ 680 ndr__spoolss_OpenPrinter, /* ndr_func */ 681 32, /* pdu_size_fixed_part */ 682 0, /* pdu_size_variable_part */ 683 32, /* c_size_fixed_part */ 684 0, /* c_size_variable_part */ 685 }; 686 687 688 /* 689 * [operation(1)] 690 */ 691 int 692 ndr__spoolss_OpenPrinter (struct ndr_reference *encl_ref) 693 { 694 struct spoolss_OpenPrinter *val = (struct spoolss_OpenPrinter *) encl_ref->datum; 695 struct ndr_reference myref; 696 697 (void) bzero(&myref, sizeof (myref)); 698 myref.enclosing = encl_ref; 699 myref.stream = encl_ref->stream; 700 701 /* do all members in order */ 702 if (NDR_DIR_IS_IN) { 703 NDR_TOPMOST_MEMBER_PTR (s_wchar, printer_name); 704 } 705 if (NDR_DIR_IS_OUT) { 706 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 707 } 708 if (NDR_DIR_IS_IN) { 709 NDR_TOPMOST_MEMBER_PTR (s_wchar, data_type); 710 } 711 if (NDR_DIR_IS_OUT) { 712 NDR_TOPMOST_MEMBER (_ulong, status); 713 } 714 715 return 1; 716 } 717 718 719 720 int ndr__spoolss_EnumJobs (struct ndr_reference *encl_ref); 721 struct ndr_typeinfo ndt__spoolss_EnumJobs = { 722 1, /* NDR version */ 723 3, /* alignment */ 724 NDR_F_OPERATION, /* flags */ 725 ndr__spoolss_EnumJobs, /* ndr_func */ 726 56, /* pdu_size_fixed_part */ 727 0, /* pdu_size_variable_part */ 728 56, /* c_size_fixed_part */ 729 0, /* c_size_variable_part */ 730 }; 731 732 733 /* 734 * [operation(4)] 735 */ 736 int 737 ndr__spoolss_EnumJobs (struct ndr_reference *encl_ref) 738 { 739 struct spoolss_EnumJobs *val = (struct spoolss_EnumJobs *) encl_ref->datum; 740 struct ndr_reference myref; 741 742 (void) bzero(&myref, sizeof (myref)); 743 myref.enclosing = encl_ref; 744 myref.stream = encl_ref->stream; 745 746 /* do all members in order */ 747 if (NDR_DIR_IS_IN) { 748 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 749 } 750 if (NDR_DIR_IS_IN) { 751 NDR_TOPMOST_MEMBER (_ulong, FirstJob); 752 } 753 if (NDR_DIR_IS_IN) { 754 NDR_TOPMOST_MEMBER (_ulong, NoJobs); 755 } 756 if (NDR_DIR_IS_IN) { 757 NDR_TOPMOST_MEMBER (_ulong, level); 758 } 759 if (NDR_DIR_IS_IN) { 760 NDR_TOPMOST_MEMBER (_ulong, Buf2); 761 } 762 if (NDR_DIR_IS_IN) { 763 NDR_TOPMOST_MEMBER (_ulong, BufCount); 764 } 765 if (NDR_DIR_IS_OUT) { 766 NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pJob, 767 val->BufCount); 768 } 769 if (NDR_DIR_IS_OUT) { 770 NDR_TOPMOST_MEMBER (_ulong, needed); 771 } 772 if (NDR_DIR_IS_OUT) { 773 NDR_TOPMOST_MEMBER (_ulong, needed2); 774 } 775 if (NDR_DIR_IS_OUT) { 776 NDR_TOPMOST_MEMBER (_ulong, status); 777 } 778 779 return 1; 780 } 781 782 783 784 int ndr__spoolss_DeletePrinter (struct ndr_reference *encl_ref); 785 struct ndr_typeinfo ndt__spoolss_DeletePrinter = { 786 1, /* NDR version */ 787 3, /* alignment */ 788 NDR_F_OPERATION, /* flags */ 789 ndr__spoolss_DeletePrinter, /* ndr_func */ 790 8, /* pdu_size_fixed_part */ 791 0, /* pdu_size_variable_part */ 792 8, /* c_size_fixed_part */ 793 0, /* c_size_variable_part */ 794 }; 795 796 797 /* 798 * [operation(6)] 799 */ 800 int 801 ndr__spoolss_DeletePrinter (struct ndr_reference *encl_ref) 802 { 803 struct spoolss_DeletePrinter *val = (struct spoolss_DeletePrinter *) encl_ref->datum; 804 struct ndr_reference myref; 805 806 (void) bzero(&myref, sizeof (myref)); 807 myref.enclosing = encl_ref; 808 myref.stream = encl_ref->stream; 809 810 /* do all members in order */ 811 if (NDR_DIR_IS_IN) { 812 NDR_TOPMOST_MEMBER (_ulong, dontcare); 813 } 814 if (NDR_DIR_IS_OUT) { 815 NDR_TOPMOST_MEMBER (_ulong, status); 816 } 817 818 return 1; 819 } 820 821 822 823 int ndr__spoolss_Time (struct ndr_reference *encl_ref); 824 struct ndr_typeinfo ndt__spoolss_Time = { 825 1, /* NDR version */ 826 1, /* alignment */ 827 NDR_F_STRUCT, /* flags */ 828 ndr__spoolss_Time, /* ndr_func */ 829 16, /* pdu_size_fixed_part */ 830 0, /* pdu_size_variable_part */ 831 16, /* c_size_fixed_part */ 832 0, /* c_size_variable_part */ 833 }; 834 835 836 /* 837 * */ 838 int 839 ndr__spoolss_Time (struct ndr_reference *encl_ref) 840 { 841 struct spoolss_Time *val = (struct spoolss_Time *) encl_ref->datum; 842 struct ndr_reference myref; 843 844 (void) bzero(&myref, sizeof (myref)); 845 myref.enclosing = encl_ref; 846 myref.stream = encl_ref->stream; 847 848 /* do all basic elements first */ 849 NDR_MEMBER (_ushort, year, 0UL); 850 NDR_MEMBER (_ushort, month, 2UL); 851 NDR_MEMBER (_ushort, day_of_week, 4UL); 852 NDR_MEMBER (_ushort, day, 6UL); 853 NDR_MEMBER (_ushort, hour, 8UL); 854 NDR_MEMBER (_ushort, minute, 10UL); 855 NDR_MEMBER (_ushort, second, 12UL); 856 NDR_MEMBER (_ushort, millisecond, 14UL); 857 858 /* do all constructed elements w/o pointers */ 859 860 /* do members with pointers in order */ 861 862 return 1; 863 } 864 865 866 867 int ndr__spoolss_GetPrinter0 (struct ndr_reference *encl_ref); 868 struct ndr_typeinfo ndt__spoolss_GetPrinter0 = { 869 1, /* NDR version */ 870 3, /* alignment */ 871 NDR_F_STRUCT, /* flags */ 872 ndr__spoolss_GetPrinter0, /* ndr_func */ 873 124, /* pdu_size_fixed_part */ 874 0, /* pdu_size_variable_part */ 875 124, /* c_size_fixed_part */ 876 0, /* c_size_variable_part */ 877 }; 878 879 880 /* 881 * */ 882 int 883 ndr__spoolss_GetPrinter0 (struct ndr_reference *encl_ref) 884 { 885 struct spoolss_GetPrinter0 *val = (struct spoolss_GetPrinter0 *) encl_ref->datum; 886 struct ndr_reference myref; 887 888 (void) bzero(&myref, sizeof (myref)); 889 myref.enclosing = encl_ref; 890 myref.stream = encl_ref->stream; 891 892 /* do all basic elements first */ 893 NDR_MEMBER (_ulong, printername, 0UL); 894 NDR_MEMBER (_ulong, servername, 4UL); 895 NDR_MEMBER (_ulong, cjobs, 8UL); 896 NDR_MEMBER (_ulong, total_jobs, 12UL); 897 NDR_MEMBER (_ulong, total_bytes, 16UL); 898 NDR_MEMBER (_ulong, time0, 20UL); 899 NDR_MEMBER (_ulong, time1, 24UL); 900 NDR_MEMBER (_ulong, time2, 28UL); 901 NDR_MEMBER (_ulong, time3, 32UL); 902 NDR_MEMBER (_ulong, global_counter, 36UL); 903 NDR_MEMBER (_ulong, total_pages, 40UL); 904 NDR_MEMBER (_ulong, version, 44UL); 905 NDR_MEMBER (_ulong, ffreebuild, 48UL); 906 NDR_MEMBER (_ulong, cspooling, 52UL); 907 NDR_MEMBER (_ulong, cmaxspooling, 56UL); 908 NDR_MEMBER (_ulong, session_counter, 60UL); 909 NDR_MEMBER (_ulong, out_of_paper, 64UL); 910 NDR_MEMBER (_ulong, not_ready, 68UL); 911 NDR_MEMBER (_ulong, job_error, 72UL); 912 NDR_MEMBER (_ulong, num_processors, 76UL); 913 NDR_MEMBER (_ulong, type_processor, 80UL); 914 NDR_MEMBER (_ulong, high_part_total_bytes, 84UL); 915 NDR_MEMBER (_ulong, change_id, 88UL); 916 NDR_MEMBER (_ulong, last_error, 92UL); 917 NDR_MEMBER (_ulong, status, 96UL); 918 NDR_MEMBER (_ulong, enum_network_printers, 100UL); 919 NDR_MEMBER (_ulong, c_setprinter, 104UL); 920 NDR_MEMBER (_ushort, processor_arch, 108UL); 921 NDR_MEMBER (_ushort, processor_level, 110UL); 922 NDR_MEMBER (_ulong, ref, 112UL); 923 NDR_MEMBER (_ulong, reserved2, 116UL); 924 NDR_MEMBER (_ulong, reserved3, 120UL); 925 926 /* do all constructed elements w/o pointers */ 927 928 /* do members with pointers in order */ 929 930 return 1; 931 } 932 933 934 935 int ndr__spoolss_GetPrinter1 (struct ndr_reference *encl_ref); 936 struct ndr_typeinfo ndt__spoolss_GetPrinter1 = { 937 1, /* NDR version */ 938 3, /* alignment */ 939 NDR_F_STRUCT, /* flags */ 940 ndr__spoolss_GetPrinter1, /* ndr_func */ 941 16, /* pdu_size_fixed_part */ 942 0, /* pdu_size_variable_part */ 943 16, /* c_size_fixed_part */ 944 0, /* c_size_variable_part */ 945 }; 946 947 948 /* 949 * */ 950 int 951 ndr__spoolss_GetPrinter1 (struct ndr_reference *encl_ref) 952 { 953 struct spoolss_GetPrinter1 *val = (struct spoolss_GetPrinter1 *) encl_ref->datum; 954 struct ndr_reference myref; 955 956 (void) bzero(&myref, sizeof (myref)); 957 myref.enclosing = encl_ref; 958 myref.stream = encl_ref->stream; 959 960 /* do all basic elements first */ 961 NDR_MEMBER (_ulong, flags, 0UL); 962 NDR_MEMBER (_ulong, name, 4UL); 963 NDR_MEMBER (_ulong, description, 8UL); 964 NDR_MEMBER (_ulong, comment, 12UL); 965 966 /* do all constructed elements w/o pointers */ 967 968 /* do members with pointers in order */ 969 970 return 1; 971 } 972 973 974 975 int ndr__spoolss_GetPrinter2 (struct ndr_reference *encl_ref); 976 struct ndr_typeinfo ndt__spoolss_GetPrinter2 = { 977 1, /* NDR version */ 978 3, /* alignment */ 979 NDR_F_STRUCT, /* flags */ 980 ndr__spoolss_GetPrinter2, /* ndr_func */ 981 84, /* pdu_size_fixed_part */ 982 0, /* pdu_size_variable_part */ 983 84, /* c_size_fixed_part */ 984 0, /* c_size_variable_part */ 985 }; 986 987 988 /* 989 * */ 990 int 991 ndr__spoolss_GetPrinter2 (struct ndr_reference *encl_ref) 992 { 993 struct spoolss_GetPrinter2 *val = (struct spoolss_GetPrinter2 *) encl_ref->datum; 994 struct ndr_reference myref; 995 996 (void) bzero(&myref, sizeof (myref)); 997 myref.enclosing = encl_ref; 998 myref.stream = encl_ref->stream; 999 1000 /* do all basic elements first */ 1001 NDR_MEMBER (_ulong, servername, 0UL); 1002 NDR_MEMBER (_ulong, printername, 4UL); 1003 NDR_MEMBER (_ulong, sharename, 8UL); 1004 NDR_MEMBER (_ulong, portname, 12UL); 1005 NDR_MEMBER (_ulong, drivername, 16UL); 1006 NDR_MEMBER (_ulong, comment, 20UL); 1007 NDR_MEMBER (_ulong, location, 24UL); 1008 NDR_MEMBER (_ulong, devmode, 28UL); 1009 NDR_MEMBER (_ulong, sepfile, 32UL); 1010 NDR_MEMBER (_ulong, printprocessor, 36UL); 1011 NDR_MEMBER (_ulong, datatype, 40UL); 1012 NDR_MEMBER (_ulong, parameters, 44UL); 1013 NDR_MEMBER (_ulong, secdesc, 48UL); 1014 NDR_MEMBER (_ulong, attributes, 52UL); 1015 NDR_MEMBER (_ulong, priority, 56UL); 1016 NDR_MEMBER (_ulong, defaultpriority, 60UL); 1017 NDR_MEMBER (_ulong, starttime, 64UL); 1018 NDR_MEMBER (_ulong, untiltime, 68UL); 1019 NDR_MEMBER (_ulong, status, 72UL); 1020 NDR_MEMBER (_ulong, cjobs, 76UL); 1021 NDR_MEMBER (_ulong, averageppm, 80UL); 1022 1023 /* do all constructed elements w/o pointers */ 1024 1025 /* do members with pointers in order */ 1026 1027 return 1; 1028 } 1029 1030 1031 1032 int ndr__spoolss_GetPrinter3 (struct ndr_reference *encl_ref); 1033 struct ndr_typeinfo ndt__spoolss_GetPrinter3 = { 1034 1, /* NDR version */ 1035 3, /* alignment */ 1036 NDR_F_STRUCT, /* flags */ 1037 ndr__spoolss_GetPrinter3, /* ndr_func */ 1038 4, /* pdu_size_fixed_part */ 1039 0, /* pdu_size_variable_part */ 1040 4, /* c_size_fixed_part */ 1041 0, /* c_size_variable_part */ 1042 }; 1043 1044 1045 /* 1046 * */ 1047 int 1048 ndr__spoolss_GetPrinter3 (struct ndr_reference *encl_ref) 1049 { 1050 struct spoolss_GetPrinter3 *val = (struct spoolss_GetPrinter3 *) encl_ref->datum; 1051 struct ndr_reference myref; 1052 1053 (void) bzero(&myref, sizeof (myref)); 1054 myref.enclosing = encl_ref; 1055 myref.stream = encl_ref->stream; 1056 1057 /* do all basic elements first */ 1058 NDR_MEMBER (_ulong, dummy, 0UL); 1059 1060 /* do all constructed elements w/o pointers */ 1061 1062 /* do members with pointers in order */ 1063 1064 return 1; 1065 } 1066 1067 1068 1069 int ndr__spoolss_GetPrinter4 (struct ndr_reference *encl_ref); 1070 struct ndr_typeinfo ndt__spoolss_GetPrinter4 = { 1071 1, /* NDR version */ 1072 3, /* alignment */ 1073 NDR_F_STRUCT, /* flags */ 1074 ndr__spoolss_GetPrinter4, /* ndr_func */ 1075 12, /* pdu_size_fixed_part */ 1076 0, /* pdu_size_variable_part */ 1077 12, /* c_size_fixed_part */ 1078 0, /* c_size_variable_part */ 1079 }; 1080 1081 1082 /* 1083 * */ 1084 int 1085 ndr__spoolss_GetPrinter4 (struct ndr_reference *encl_ref) 1086 { 1087 struct spoolss_GetPrinter4 *val = (struct spoolss_GetPrinter4 *) encl_ref->datum; 1088 struct ndr_reference myref; 1089 1090 (void) bzero(&myref, sizeof (myref)); 1091 myref.enclosing = encl_ref; 1092 myref.stream = encl_ref->stream; 1093 1094 /* do all basic elements first */ 1095 NDR_MEMBER (_ulong, printername, 0UL); 1096 NDR_MEMBER (_ulong, servername, 4UL); 1097 NDR_MEMBER (_ulong, attributes, 8UL); 1098 1099 /* do all constructed elements w/o pointers */ 1100 1101 /* do members with pointers in order */ 1102 1103 return 1; 1104 } 1105 1106 1107 1108 int ndr__spoolss_GetPrinter5 (struct ndr_reference *encl_ref); 1109 struct ndr_typeinfo ndt__spoolss_GetPrinter5 = { 1110 1, /* NDR version */ 1111 3, /* alignment */ 1112 NDR_F_STRUCT, /* flags */ 1113 ndr__spoolss_GetPrinter5, /* ndr_func */ 1114 20, /* pdu_size_fixed_part */ 1115 0, /* pdu_size_variable_part */ 1116 20, /* c_size_fixed_part */ 1117 0, /* c_size_variable_part */ 1118 }; 1119 1120 1121 /* 1122 * */ 1123 int 1124 ndr__spoolss_GetPrinter5 (struct ndr_reference *encl_ref) 1125 { 1126 struct spoolss_GetPrinter5 *val = (struct spoolss_GetPrinter5 *) encl_ref->datum; 1127 struct ndr_reference myref; 1128 1129 (void) bzero(&myref, sizeof (myref)); 1130 myref.enclosing = encl_ref; 1131 myref.stream = encl_ref->stream; 1132 1133 /* do all basic elements first */ 1134 NDR_MEMBER (_ulong, printername, 0UL); 1135 NDR_MEMBER (_ulong, portname, 4UL); 1136 NDR_MEMBER (_ulong, attributes, 8UL); 1137 NDR_MEMBER (_ulong, device_not_selected_timeout, 12UL); 1138 NDR_MEMBER (_ulong, transmission_retry_timeout, 16UL); 1139 1140 /* do all constructed elements w/o pointers */ 1141 1142 /* do members with pointers in order */ 1143 1144 return 1; 1145 } 1146 1147 1148 1149 int ndr__spoolss_GetPrinter6 (struct ndr_reference *encl_ref); 1150 struct ndr_typeinfo ndt__spoolss_GetPrinter6 = { 1151 1, /* NDR version */ 1152 3, /* alignment */ 1153 NDR_F_STRUCT, /* flags */ 1154 ndr__spoolss_GetPrinter6, /* ndr_func */ 1155 4, /* pdu_size_fixed_part */ 1156 0, /* pdu_size_variable_part */ 1157 4, /* c_size_fixed_part */ 1158 0, /* c_size_variable_part */ 1159 }; 1160 1161 1162 /* 1163 * */ 1164 int 1165 ndr__spoolss_GetPrinter6 (struct ndr_reference *encl_ref) 1166 { 1167 struct spoolss_GetPrinter6 *val = (struct spoolss_GetPrinter6 *) encl_ref->datum; 1168 struct ndr_reference myref; 1169 1170 (void) bzero(&myref, sizeof (myref)); 1171 myref.enclosing = encl_ref; 1172 myref.stream = encl_ref->stream; 1173 1174 /* do all basic elements first */ 1175 NDR_MEMBER (_ulong, status, 0UL); 1176 1177 /* do all constructed elements w/o pointers */ 1178 1179 /* do members with pointers in order */ 1180 1181 return 1; 1182 } 1183 1184 1185 1186 int ndr__spoolss_GetPrinter7 (struct ndr_reference *encl_ref); 1187 struct ndr_typeinfo ndt__spoolss_GetPrinter7 = { 1188 1, /* NDR version */ 1189 3, /* alignment */ 1190 NDR_F_STRUCT, /* flags */ 1191 ndr__spoolss_GetPrinter7, /* ndr_func */ 1192 8, /* pdu_size_fixed_part */ 1193 0, /* pdu_size_variable_part */ 1194 8, /* c_size_fixed_part */ 1195 0, /* c_size_variable_part */ 1196 }; 1197 1198 1199 /* 1200 * */ 1201 int 1202 ndr__spoolss_GetPrinter7 (struct ndr_reference *encl_ref) 1203 { 1204 struct spoolss_GetPrinter7 *val = (struct spoolss_GetPrinter7 *) encl_ref->datum; 1205 struct ndr_reference myref; 1206 1207 (void) bzero(&myref, sizeof (myref)); 1208 myref.enclosing = encl_ref; 1209 myref.stream = encl_ref->stream; 1210 1211 /* do all basic elements first */ 1212 NDR_MEMBER (_ulong, guid, 0UL); 1213 NDR_MEMBER (_ulong, action, 4UL); 1214 1215 /* do all constructed elements w/o pointers */ 1216 1217 /* do members with pointers in order */ 1218 1219 return 1; 1220 } 1221 1222 1223 1224 int ndr__spoolss_GetPrinter8 (struct ndr_reference *encl_ref); 1225 struct ndr_typeinfo ndt__spoolss_GetPrinter8 = { 1226 1, /* NDR version */ 1227 3, /* alignment */ 1228 NDR_F_STRUCT, /* flags */ 1229 ndr__spoolss_GetPrinter8, /* ndr_func */ 1230 16, /* pdu_size_fixed_part */ 1231 0, /* pdu_size_variable_part */ 1232 16, /* c_size_fixed_part */ 1233 0, /* c_size_variable_part */ 1234 }; 1235 1236 1237 /* 1238 * */ 1239 int 1240 ndr__spoolss_GetPrinter8 (struct ndr_reference *encl_ref) 1241 { 1242 struct spoolss_GetPrinter8 *val = (struct spoolss_GetPrinter8 *) encl_ref->datum; 1243 struct ndr_reference myref; 1244 1245 (void) bzero(&myref, sizeof (myref)); 1246 myref.enclosing = encl_ref; 1247 myref.stream = encl_ref->stream; 1248 1249 /* do all basic elements first */ 1250 NDR_MEMBER (_ulong, flags, 0UL); 1251 NDR_MEMBER (_ulong, name, 4UL); 1252 NDR_MEMBER (_ulong, description, 8UL); 1253 NDR_MEMBER (_ulong, comment, 12UL); 1254 1255 /* do all constructed elements w/o pointers */ 1256 1257 /* do members with pointers in order */ 1258 1259 return 1; 1260 } 1261 1262 1263 1264 int ndr__spoolss_GetPrinter_result_u (struct ndr_reference *encl_ref); 1265 struct ndr_typeinfo ndt__spoolss_GetPrinter_result_u = { 1266 1, /* NDR version */ 1267 3, /* alignment */ 1268 NDR_F_UNION, /* flags */ 1269 ndr__spoolss_GetPrinter_result_u, /* ndr_func */ 1270 124, /* pdu_size_fixed_part */ 1271 0, /* pdu_size_variable_part */ 1272 124, /* c_size_fixed_part */ 1273 0, /* c_size_variable_part */ 1274 }; 1275 1276 1277 /* 1278 * */ 1279 int 1280 ndr__spoolss_GetPrinter_result_u (struct ndr_reference *encl_ref) 1281 { 1282 union spoolss_GetPrinter_result_u *val = (union spoolss_GetPrinter_result_u *) encl_ref->datum; 1283 struct ndr_reference myref; 1284 1285 (void) bzero(&myref, sizeof (myref)); 1286 myref.enclosing = encl_ref; 1287 myref.stream = encl_ref->stream; 1288 1289 switch (encl_ref->switch_is) { 1290 case 0: 1291 NDR_MEMBER (_spoolss_GetPrinter0, info0, 0UL); 1292 break; 1293 1294 case 1: 1295 NDR_MEMBER (_spoolss_GetPrinter1, info1, 0UL); 1296 break; 1297 1298 case 2: 1299 NDR_MEMBER (_spoolss_GetPrinter2, info2, 0UL); 1300 break; 1301 1302 case 3: 1303 NDR_MEMBER (_spoolss_GetPrinter3, info3, 0UL); 1304 break; 1305 1306 case 4: 1307 NDR_MEMBER (_spoolss_GetPrinter4, info4, 0UL); 1308 break; 1309 1310 case 5: 1311 NDR_MEMBER (_spoolss_GetPrinter5, info5, 0UL); 1312 break; 1313 1314 case 6: 1315 NDR_MEMBER (_spoolss_GetPrinter6, info6, 0UL); 1316 break; 1317 1318 case 7: 1319 NDR_MEMBER (_spoolss_GetPrinter7, info7, 0UL); 1320 break; 1321 1322 case 8: 1323 NDR_MEMBER (_spoolss_GetPrinter8, info8, 0UL); 1324 break; 1325 1326 default: 1327 NDR_MEMBER_PTR (_char, nullptr, 0UL); 1328 break; 1329 1330 } 1331 1332 1333 return 1; 1334 } 1335 1336 1337 1338 int ndr__spoolss_GetPrinter_result (struct ndr_reference *encl_ref); 1339 struct ndr_typeinfo ndt__spoolss_GetPrinter_result = { 1340 1, /* NDR version */ 1341 3, /* alignment */ 1342 NDR_F_STRUCT, /* flags */ 1343 ndr__spoolss_GetPrinter_result, /* ndr_func */ 1344 128, /* pdu_size_fixed_part */ 1345 0, /* pdu_size_variable_part */ 1346 128, /* c_size_fixed_part */ 1347 0, /* c_size_variable_part */ 1348 }; 1349 1350 1351 /* 1352 * */ 1353 int 1354 ndr__spoolss_GetPrinter_result (struct ndr_reference *encl_ref) 1355 { 1356 struct spoolss_GetPrinter_result *val = (struct spoolss_GetPrinter_result *) encl_ref->datum; 1357 struct ndr_reference myref; 1358 1359 (void) bzero(&myref, sizeof (myref)); 1360 myref.enclosing = encl_ref; 1361 myref.stream = encl_ref->stream; 1362 1363 /* do all basic elements first */ 1364 NDR_MEMBER (_ulong, switch_value, 0UL); 1365 1366 /* do all constructed elements w/o pointers */ 1367 1368 /* do members with pointers in order */ 1369 NDR_MEMBER_WITH_SWITCH_IS (_spoolss_GetPrinter_result_u, ru, 4UL, 1370 val->switch_value); 1371 1372 return 1; 1373 } 1374 1375 1376 1377 int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE (struct ndr_reference *encl_ref); 1378 struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE = { 1379 1, /* NDR version */ 1380 3, /* alignment */ 1381 NDR_F_STRUCT, /* flags */ 1382 ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE, /* ndr_func */ 1383 20, /* pdu_size_fixed_part */ 1384 0, /* pdu_size_variable_part */ 1385 20, /* c_size_fixed_part */ 1386 0, /* c_size_variable_part */ 1387 }; 1388 1389 1390 /* 1391 * */ 1392 int 1393 ndr__spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE (struct ndr_reference *encl_ref) 1394 { 1395 struct spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE *val = (struct spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE *) encl_ref->datum; 1396 struct ndr_reference myref; 1397 1398 (void) bzero(&myref, sizeof (myref)); 1399 myref.enclosing = encl_ref; 1400 myref.stream = encl_ref->stream; 1401 1402 /* do all basic elements first */ 1403 NDR_MEMBER (_ushort, type, 0UL); 1404 NDR_MEMBER (_ushort, reserved0, 2UL); 1405 NDR_MEMBER (_ulong, reserved1, 4UL); 1406 NDR_MEMBER (_ulong, reserved2, 8UL); 1407 NDR_MEMBER (_ulong, count, 12UL); 1408 1409 /* do all constructed elements w/o pointers */ 1410 1411 /* do members with pointers in order */ 1412 NDR_MEMBER_PTR_WITH_SIZE_IS (_ushort, pFields, 16UL, 1413 val->count); 1414 1415 return 1; 1416 } 1417 1418 1419 1420 int ndr__spoolss_RPC_V2_NOTIFY_OPTIONS (struct ndr_reference *encl_ref); 1421 struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_OPTIONS = { 1422 1, /* NDR version */ 1423 3, /* alignment */ 1424 NDR_F_STRUCT, /* flags */ 1425 ndr__spoolss_RPC_V2_NOTIFY_OPTIONS, /* ndr_func */ 1426 16, /* pdu_size_fixed_part */ 1427 0, /* pdu_size_variable_part */ 1428 16, /* c_size_fixed_part */ 1429 0, /* c_size_variable_part */ 1430 }; 1431 1432 1433 /* 1434 * */ 1435 int 1436 ndr__spoolss_RPC_V2_NOTIFY_OPTIONS (struct ndr_reference *encl_ref) 1437 { 1438 struct spoolss_RPC_V2_NOTIFY_OPTIONS *val = (struct spoolss_RPC_V2_NOTIFY_OPTIONS *) encl_ref->datum; 1439 struct ndr_reference myref; 1440 1441 (void) bzero(&myref, sizeof (myref)); 1442 myref.enclosing = encl_ref; 1443 myref.stream = encl_ref->stream; 1444 1445 /* do all basic elements first */ 1446 NDR_MEMBER (_ulong, version, 0UL); 1447 NDR_MEMBER (_ulong, reserved, 4UL); 1448 NDR_MEMBER (_ulong, count, 8UL); 1449 1450 /* do all constructed elements w/o pointers */ 1451 1452 /* do members with pointers in order */ 1453 NDR_MEMBER_PTR_WITH_SIZE_IS (_spoolss_RPC_V2_NOTIFY_OPTIONS_TYPE, ptypes, 12UL, 1454 val->count); 1455 1456 return 1; 1457 } 1458 1459 1460 1461 int ndr__SYSTEMTIME (struct ndr_reference *encl_ref); 1462 struct ndr_typeinfo ndt__SYSTEMTIME = { 1463 1, /* NDR version */ 1464 1, /* alignment */ 1465 NDR_F_STRUCT, /* flags */ 1466 ndr__SYSTEMTIME, /* ndr_func */ 1467 16, /* pdu_size_fixed_part */ 1468 0, /* pdu_size_variable_part */ 1469 16, /* c_size_fixed_part */ 1470 0, /* c_size_variable_part */ 1471 }; 1472 1473 1474 /* 1475 * */ 1476 int 1477 ndr__SYSTEMTIME (struct ndr_reference *encl_ref) 1478 { 1479 struct SYSTEMTIME *val = (struct SYSTEMTIME *) encl_ref->datum; 1480 struct ndr_reference myref; 1481 1482 (void) bzero(&myref, sizeof (myref)); 1483 myref.enclosing = encl_ref; 1484 myref.stream = encl_ref->stream; 1485 1486 /* do all basic elements first */ 1487 NDR_MEMBER (_ushort, year, 0UL); 1488 NDR_MEMBER (_ushort, month, 2UL); 1489 NDR_MEMBER (_ushort, dayofweek, 4UL); 1490 NDR_MEMBER (_ushort, day, 6UL); 1491 NDR_MEMBER (_ushort, hour, 8UL); 1492 NDR_MEMBER (_ushort, minute, 10UL); 1493 NDR_MEMBER (_ushort, second, 12UL); 1494 NDR_MEMBER (_ushort, millisecs, 14UL); 1495 1496 /* do all constructed elements w/o pointers */ 1497 1498 /* do members with pointers in order */ 1499 1500 return 1; 1501 } 1502 1503 1504 1505 int ndr__SECURITY_CONTAINER (struct ndr_reference *encl_ref); 1506 struct ndr_typeinfo ndt__SECURITY_CONTAINER = { 1507 1, /* NDR version */ 1508 3, /* alignment */ 1509 NDR_F_STRUCT, /* flags */ 1510 ndr__SECURITY_CONTAINER, /* ndr_func */ 1511 8, /* pdu_size_fixed_part */ 1512 0, /* pdu_size_variable_part */ 1513 8, /* c_size_fixed_part */ 1514 0, /* c_size_variable_part */ 1515 }; 1516 1517 1518 /* 1519 * */ 1520 int 1521 ndr__SECURITY_CONTAINER (struct ndr_reference *encl_ref) 1522 { 1523 struct SECURITY_CONTAINER *val = (struct SECURITY_CONTAINER *) encl_ref->datum; 1524 struct ndr_reference myref; 1525 1526 (void) bzero(&myref, sizeof (myref)); 1527 myref.enclosing = encl_ref; 1528 myref.stream = encl_ref->stream; 1529 1530 /* do all basic elements first */ 1531 NDR_MEMBER (_ulong, count, 0UL); 1532 1533 /* do all constructed elements w/o pointers */ 1534 1535 /* do members with pointers in order */ 1536 NDR_MEMBER_PTR_WITH_SIZE_IS (_uchar, psecurity, 4UL, 1537 val->count); 1538 1539 return 1; 1540 } 1541 1542 1543 1544 int ndr__SYSTEMTIME_CONTAINER (struct ndr_reference *encl_ref); 1545 struct ndr_typeinfo ndt__SYSTEMTIME_CONTAINER = { 1546 1, /* NDR version */ 1547 3, /* alignment */ 1548 NDR_F_STRUCT, /* flags */ 1549 ndr__SYSTEMTIME_CONTAINER, /* ndr_func */ 1550 8, /* pdu_size_fixed_part */ 1551 0, /* pdu_size_variable_part */ 1552 8, /* c_size_fixed_part */ 1553 0, /* c_size_variable_part */ 1554 }; 1555 1556 1557 /* 1558 * */ 1559 int 1560 ndr__SYSTEMTIME_CONTAINER (struct ndr_reference *encl_ref) 1561 { 1562 struct SYSTEMTIME_CONTAINER *val = (struct SYSTEMTIME_CONTAINER *) encl_ref->datum; 1563 struct ndr_reference myref; 1564 1565 (void) bzero(&myref, sizeof (myref)); 1566 myref.enclosing = encl_ref; 1567 myref.stream = encl_ref->stream; 1568 1569 /* do all basic elements first */ 1570 NDR_MEMBER (_ulong, count, 0UL); 1571 1572 /* do all constructed elements w/o pointers */ 1573 1574 /* do members with pointers in order */ 1575 NDR_MEMBER_PTR (_SYSTEMTIME, psystemtime, 4UL); 1576 1577 return 1; 1578 } 1579 1580 1581 1582 int ndr__STRING_CONTAINER (struct ndr_reference *encl_ref); 1583 struct ndr_typeinfo ndt__STRING_CONTAINER = { 1584 1, /* NDR version */ 1585 3, /* alignment */ 1586 NDR_F_STRUCT, /* flags */ 1587 ndr__STRING_CONTAINER, /* ndr_func */ 1588 8, /* pdu_size_fixed_part */ 1589 0, /* pdu_size_variable_part */ 1590 8, /* c_size_fixed_part */ 1591 0, /* c_size_variable_part */ 1592 }; 1593 1594 1595 /* 1596 * */ 1597 int 1598 ndr__STRING_CONTAINER (struct ndr_reference *encl_ref) 1599 { 1600 struct STRING_CONTAINER *val = (struct STRING_CONTAINER *) encl_ref->datum; 1601 struct ndr_reference myref; 1602 1603 (void) bzero(&myref, sizeof (myref)); 1604 myref.enclosing = encl_ref; 1605 myref.stream = encl_ref->stream; 1606 1607 /* do all basic elements first */ 1608 NDR_MEMBER (_ulong, count, 0UL); 1609 1610 /* do all constructed elements w/o pointers */ 1611 1612 /* do members with pointers in order */ 1613 NDR_MEMBER_PTR_WITH_SIZE_IS (s_wchar, pstring, 4UL, 1614 val->count / 2UL); 1615 1616 return 1; 1617 } 1618 1619 1620 1621 int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA (struct ndr_reference *encl_ref); 1622 struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA = { 1623 1, /* NDR version */ 1624 3, /* alignment */ 1625 NDR_F_UNION, /* flags */ 1626 ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA, /* ndr_func */ 1627 8, /* pdu_size_fixed_part */ 1628 0, /* pdu_size_variable_part */ 1629 8, /* c_size_fixed_part */ 1630 0, /* c_size_variable_part */ 1631 }; 1632 1633 1634 /* 1635 * */ 1636 int 1637 ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA (struct ndr_reference *encl_ref) 1638 { 1639 union spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA *val = (union spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA *) encl_ref->datum; 1640 struct ndr_reference myref; 1641 1642 (void) bzero(&myref, sizeof (myref)); 1643 myref.enclosing = encl_ref; 1644 myref.stream = encl_ref->stream; 1645 1646 switch (encl_ref->switch_is) { 1647 case 1: 1648 NDR_MEMBER (_STRING_CONTAINER, pcont, 0UL); 1649 break; 1650 1651 case 2: 1652 NDR_MEMBER_ARR_WITH_DIMENSION (_ulong, data, 0UL, 1653 2); 1654 break; 1655 1656 case 3: 1657 NDR_MEMBER (_SYSTEMTIME_CONTAINER, system_time, 0UL); 1658 break; 1659 1660 case 4: 1661 NDR_MEMBER (_spoolssDevmodeContainer, devmode, 0UL); 1662 break; 1663 1664 case 5: 1665 NDR_MEMBER (_SECURITY_CONTAINER, security_descriptor, 0UL); 1666 break; 1667 1668 default: 1669 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 1670 return 0; 1671 break; 1672 } 1673 1674 1675 return 1; 1676 } 1677 1678 1679 1680 int ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA (struct ndr_reference *encl_ref); 1681 struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO_DATA = { 1682 1, /* NDR version */ 1683 3, /* alignment */ 1684 NDR_F_STRUCT, /* flags */ 1685 ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA, /* ndr_func */ 1686 20, /* pdu_size_fixed_part */ 1687 0, /* pdu_size_variable_part */ 1688 20, /* c_size_fixed_part */ 1689 0, /* c_size_variable_part */ 1690 }; 1691 1692 1693 /* 1694 * */ 1695 int 1696 ndr__spoolss_RPC_V2_NOTIFY_INFO_DATA (struct ndr_reference *encl_ref) 1697 { 1698 struct spoolss_RPC_V2_NOTIFY_INFO_DATA *val = (struct spoolss_RPC_V2_NOTIFY_INFO_DATA *) encl_ref->datum; 1699 struct ndr_reference myref; 1700 1701 (void) bzero(&myref, sizeof (myref)); 1702 myref.enclosing = encl_ref; 1703 myref.stream = encl_ref->stream; 1704 1705 /* do all basic elements first */ 1706 NDR_MEMBER (_ushort, Type, 0UL); 1707 NDR_MEMBER (_ushort, Field, 2UL); 1708 NDR_MEMBER (_ulong, Reserved, 4UL); 1709 NDR_MEMBER (_ulong, Id, 8UL); 1710 1711 /* do all constructed elements w/o pointers */ 1712 1713 /* do members with pointers in order */ 1714 NDR_MEMBER_WITH_SWITCH_IS (_spoolss_RPC_V2_NOTIFY_INFO_DATA_DATA, data, 12UL, 1715 val->Reserved & 65535UL); 1716 1717 return 1; 1718 } 1719 1720 1721 1722 int ndr__spoolss_RPC_V2_NOTIFY_INFO (struct ndr_reference *encl_ref); 1723 struct ndr_typeinfo ndt__spoolss_RPC_V2_NOTIFY_INFO = { 1724 1, /* NDR version */ 1725 3, /* alignment */ 1726 NDR_F_STRUCT, /* flags */ 1727 ndr__spoolss_RPC_V2_NOTIFY_INFO, /* ndr_func */ 1728 16, /* pdu_size_fixed_part */ 1729 0, /* pdu_size_variable_part */ 1730 16, /* c_size_fixed_part */ 1731 0, /* c_size_variable_part */ 1732 }; 1733 1734 1735 /* 1736 * */ 1737 int 1738 ndr__spoolss_RPC_V2_NOTIFY_INFO (struct ndr_reference *encl_ref) 1739 { 1740 struct spoolss_RPC_V2_NOTIFY_INFO *val = (struct spoolss_RPC_V2_NOTIFY_INFO *) encl_ref->datum; 1741 struct ndr_reference myref; 1742 1743 (void) bzero(&myref, sizeof (myref)); 1744 myref.enclosing = encl_ref; 1745 myref.stream = encl_ref->stream; 1746 1747 /* do all basic elements first */ 1748 NDR_MEMBER (_ulong, Version, 0UL); 1749 NDR_MEMBER (_ulong, Flags, 4UL); 1750 NDR_MEMBER (_ulong, Count, 8UL); 1751 1752 /* do all constructed elements w/o pointers */ 1753 1754 /* do members with pointers in order */ 1755 NDR_MEMBER_PTR_WITH_SIZE_IS (_spoolss_RPC_V2_NOTIFY_INFO_DATA, aData, 12UL, 1756 val->Count); 1757 1758 return 1; 1759 } 1760 1761 1762 1763 int ndr__spoolss_GetPrinter (struct ndr_reference *encl_ref); 1764 struct ndr_typeinfo ndt__spoolss_GetPrinter = { 1765 1, /* NDR version */ 1766 3, /* alignment */ 1767 NDR_F_OPERATION, /* flags */ 1768 ndr__spoolss_GetPrinter, /* ndr_func */ 1769 44, /* pdu_size_fixed_part */ 1770 0, /* pdu_size_variable_part */ 1771 44, /* c_size_fixed_part */ 1772 0, /* c_size_variable_part */ 1773 }; 1774 1775 1776 /* 1777 * [operation(8)] 1778 */ 1779 int 1780 ndr__spoolss_GetPrinter (struct ndr_reference *encl_ref) 1781 { 1782 struct spoolss_GetPrinter *val = (struct spoolss_GetPrinter *) encl_ref->datum; 1783 struct ndr_reference myref; 1784 1785 (void) bzero(&myref, sizeof (myref)); 1786 myref.enclosing = encl_ref; 1787 myref.stream = encl_ref->stream; 1788 1789 /* do all members in order */ 1790 if (NDR_DIR_IS_IN) { 1791 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 1792 } 1793 if (NDR_DIR_IS_IN) { 1794 NDR_TOPMOST_MEMBER (_ulong, switch_value); 1795 } 1796 if (NDR_DIR_IS_IN) { 1797 NDR_TOPMOST_MEMBER (_ulong, Buf2); 1798 } 1799 if (NDR_DIR_IS_IN) { 1800 NDR_TOPMOST_MEMBER (_ulong, BufCount); 1801 } 1802 if (NDR_DIR_IS_OUT) { 1803 NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, Buf, 1804 val->BufCount); 1805 } 1806 if (NDR_DIR_IS_OUT) { 1807 NDR_TOPMOST_MEMBER (_ulong, needed); 1808 } 1809 if (NDR_DIR_IS_OUT) { 1810 NDR_TOPMOST_MEMBER (_ulong, status); 1811 } 1812 1813 return 1; 1814 } 1815 1816 1817 1818 int ndr__spoolss_GetPrinterData (struct ndr_reference *encl_ref); 1819 struct ndr_typeinfo ndt__spoolss_GetPrinterData = { 1820 1, /* NDR version */ 1821 3, /* alignment */ 1822 NDR_F_OPERATION, /* flags */ 1823 ndr__spoolss_GetPrinterData, /* ndr_func */ 1824 44, /* pdu_size_fixed_part */ 1825 0, /* pdu_size_variable_part */ 1826 44, /* c_size_fixed_part */ 1827 0, /* c_size_variable_part */ 1828 }; 1829 1830 1831 /* 1832 * [operation(26)] 1833 */ 1834 int 1835 ndr__spoolss_GetPrinterData (struct ndr_reference *encl_ref) 1836 { 1837 struct spoolss_GetPrinterData *val = (struct spoolss_GetPrinterData *) encl_ref->datum; 1838 struct ndr_reference myref; 1839 1840 (void) bzero(&myref, sizeof (myref)); 1841 myref.enclosing = encl_ref; 1842 myref.stream = encl_ref->stream; 1843 1844 /* do all members in order */ 1845 if (NDR_DIR_IS_IN) { 1846 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 1847 } 1848 if (NDR_DIR_IS_IN) { 1849 NDR_TOPMOST_MEMBER_REF (s_wchar, pValueName); 1850 } 1851 if (NDR_DIR_IS_OUT) { 1852 NDR_TOPMOST_MEMBER (_ulong, pType); 1853 } 1854 if (NDR_DIR_IS_OUT) { 1855 NDR_TOPMOST_MEMBER_REF_WITH_SIZE_IS (_uchar, Buf, 1856 val->Size); 1857 } 1858 if (NDR_DIR_IS_IN) { 1859 NDR_TOPMOST_MEMBER (_ulong, Size); 1860 } 1861 if (NDR_DIR_IS_OUT) { 1862 NDR_TOPMOST_MEMBER (_ulong, Needed); 1863 } 1864 if (NDR_DIR_IS_OUT) { 1865 NDR_TOPMOST_MEMBER (_ulong, status); 1866 } 1867 1868 return 1; 1869 } 1870 1871 1872 1873 int ndr__spoolss_GetPrinterDriver (struct ndr_reference *encl_ref); 1874 struct ndr_typeinfo ndt__spoolss_GetPrinterDriver = { 1875 1, /* NDR version */ 1876 3, /* alignment */ 1877 NDR_F_OPERATION, /* flags */ 1878 ndr__spoolss_GetPrinterDriver, /* ndr_func */ 1879 8, /* pdu_size_fixed_part */ 1880 0, /* pdu_size_variable_part */ 1881 8, /* c_size_fixed_part */ 1882 0, /* c_size_variable_part */ 1883 }; 1884 1885 1886 /* 1887 * [operation(11)] 1888 */ 1889 int 1890 ndr__spoolss_GetPrinterDriver (struct ndr_reference *encl_ref) 1891 { 1892 struct spoolss_GetPrinterDriver *val = (struct spoolss_GetPrinterDriver *) encl_ref->datum; 1893 struct ndr_reference myref; 1894 1895 (void) bzero(&myref, sizeof (myref)); 1896 myref.enclosing = encl_ref; 1897 myref.stream = encl_ref->stream; 1898 1899 /* do all members in order */ 1900 if (NDR_DIR_IS_IN) { 1901 NDR_TOPMOST_MEMBER (_ulong, dontcare); 1902 } 1903 if (NDR_DIR_IS_OUT) { 1904 NDR_TOPMOST_MEMBER (_ulong, status); 1905 } 1906 1907 return 1; 1908 } 1909 1910 1911 1912 int ndr__spoolss_DeletePrinterDriver (struct ndr_reference *encl_ref); 1913 struct ndr_typeinfo ndt__spoolss_DeletePrinterDriver = { 1914 1, /* NDR version */ 1915 3, /* alignment */ 1916 NDR_F_OPERATION, /* flags */ 1917 ndr__spoolss_DeletePrinterDriver, /* ndr_func */ 1918 8, /* pdu_size_fixed_part */ 1919 0, /* pdu_size_variable_part */ 1920 8, /* c_size_fixed_part */ 1921 0, /* c_size_variable_part */ 1922 }; 1923 1924 1925 /* 1926 * [operation(13)] 1927 */ 1928 int 1929 ndr__spoolss_DeletePrinterDriver (struct ndr_reference *encl_ref) 1930 { 1931 struct spoolss_DeletePrinterDriver *val = (struct spoolss_DeletePrinterDriver *) encl_ref->datum; 1932 struct ndr_reference myref; 1933 1934 (void) bzero(&myref, sizeof (myref)); 1935 myref.enclosing = encl_ref; 1936 myref.stream = encl_ref->stream; 1937 1938 /* do all members in order */ 1939 if (NDR_DIR_IS_IN) { 1940 NDR_TOPMOST_MEMBER (_ulong, dontcare); 1941 } 1942 if (NDR_DIR_IS_OUT) { 1943 NDR_TOPMOST_MEMBER (_ulong, status); 1944 } 1945 1946 return 1; 1947 } 1948 1949 1950 1951 int ndr__spoolss_DocInfo (struct ndr_reference *encl_ref); 1952 struct ndr_typeinfo ndt__spoolss_DocInfo = { 1953 1, /* NDR version */ 1954 3, /* alignment */ 1955 NDR_F_STRUCT, /* flags */ 1956 ndr__spoolss_DocInfo, /* ndr_func */ 1957 12, /* pdu_size_fixed_part */ 1958 0, /* pdu_size_variable_part */ 1959 12, /* c_size_fixed_part */ 1960 0, /* c_size_variable_part */ 1961 }; 1962 1963 1964 /* 1965 * */ 1966 int 1967 ndr__spoolss_DocInfo (struct ndr_reference *encl_ref) 1968 { 1969 struct spoolss_DocInfo *val = (struct spoolss_DocInfo *) encl_ref->datum; 1970 struct ndr_reference myref; 1971 1972 (void) bzero(&myref, sizeof (myref)); 1973 myref.enclosing = encl_ref; 1974 myref.stream = encl_ref->stream; 1975 1976 /* do all basic elements first */ 1977 1978 /* do all constructed elements w/o pointers */ 1979 1980 /* do members with pointers in order */ 1981 NDR_MEMBER_PTR (s_wchar, doc_name, 0UL); 1982 NDR_MEMBER_PTR (s_wchar, printer_name, 4UL); 1983 NDR_MEMBER_PTR (s_wchar, type, 8UL); 1984 1985 return 1; 1986 } 1987 1988 1989 1990 int ndr__spoolss_DocInfo_Container (struct ndr_reference *encl_ref); 1991 struct ndr_typeinfo ndt__spoolss_DocInfo_Container = { 1992 1, /* NDR version */ 1993 3, /* alignment */ 1994 NDR_F_STRUCT, /* flags */ 1995 ndr__spoolss_DocInfo_Container, /* ndr_func */ 1996 12, /* pdu_size_fixed_part */ 1997 0, /* pdu_size_variable_part */ 1998 12, /* c_size_fixed_part */ 1999 0, /* c_size_variable_part */ 2000 }; 2001 2002 2003 /* 2004 * */ 2005 int 2006 ndr__spoolss_DocInfo_Container (struct ndr_reference *encl_ref) 2007 { 2008 struct spoolss_DocInfo_Container *val = (struct spoolss_DocInfo_Container *) encl_ref->datum; 2009 struct ndr_reference myref; 2010 2011 (void) bzero(&myref, sizeof (myref)); 2012 myref.enclosing = encl_ref; 2013 myref.stream = encl_ref->stream; 2014 2015 /* do all basic elements first */ 2016 NDR_MEMBER (_ulong, level, 0UL); 2017 NDR_MEMBER (_ulong, switch_value, 4UL); 2018 2019 /* do all constructed elements w/o pointers */ 2020 2021 /* do members with pointers in order */ 2022 NDR_MEMBER_PTR (_spoolss_DocInfo, DocInfoContainer, 8UL); 2023 2024 return 1; 2025 } 2026 2027 2028 2029 int ndr__spoolss_StartDocPrinter (struct ndr_reference *encl_ref); 2030 struct ndr_typeinfo ndt__spoolss_StartDocPrinter = { 2031 1, /* NDR version */ 2032 3, /* alignment */ 2033 NDR_F_OPERATION, /* flags */ 2034 ndr__spoolss_StartDocPrinter, /* ndr_func */ 2035 40, /* pdu_size_fixed_part */ 2036 0, /* pdu_size_variable_part */ 2037 40, /* c_size_fixed_part */ 2038 0, /* c_size_variable_part */ 2039 }; 2040 2041 2042 /* 2043 * [operation(17)] 2044 */ 2045 int 2046 ndr__spoolss_StartDocPrinter (struct ndr_reference *encl_ref) 2047 { 2048 struct spoolss_StartDocPrinter *val = (struct spoolss_StartDocPrinter *) encl_ref->datum; 2049 struct ndr_reference myref; 2050 2051 (void) bzero(&myref, sizeof (myref)); 2052 myref.enclosing = encl_ref; 2053 myref.stream = encl_ref->stream; 2054 2055 /* do all members in order */ 2056 if (NDR_DIR_IS_IN) { 2057 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2058 } 2059 if (NDR_DIR_IS_IN) { 2060 NDR_TOPMOST_MEMBER (_spoolss_DocInfo_Container, dinfo); 2061 } 2062 if (NDR_DIR_IS_OUT) { 2063 NDR_TOPMOST_MEMBER (_ulong, JobId); 2064 } 2065 if (NDR_DIR_IS_OUT) { 2066 NDR_TOPMOST_MEMBER (_ulong, status); 2067 } 2068 2069 return 1; 2070 } 2071 2072 2073 2074 int ndr__spoolss_AbortPrinter (struct ndr_reference *encl_ref); 2075 struct ndr_typeinfo ndt__spoolss_AbortPrinter = { 2076 1, /* NDR version */ 2077 3, /* alignment */ 2078 NDR_F_OPERATION, /* flags */ 2079 ndr__spoolss_AbortPrinter, /* ndr_func */ 2080 24, /* pdu_size_fixed_part */ 2081 0, /* pdu_size_variable_part */ 2082 24, /* c_size_fixed_part */ 2083 0, /* c_size_variable_part */ 2084 }; 2085 2086 2087 /* 2088 * [operation(21)] 2089 */ 2090 int 2091 ndr__spoolss_AbortPrinter (struct ndr_reference *encl_ref) 2092 { 2093 struct spoolss_AbortPrinter *val = (struct spoolss_AbortPrinter *) encl_ref->datum; 2094 struct ndr_reference myref; 2095 2096 (void) bzero(&myref, sizeof (myref)); 2097 myref.enclosing = encl_ref; 2098 myref.stream = encl_ref->stream; 2099 2100 /* do all members in order */ 2101 if (NDR_DIR_IS_IN) { 2102 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2103 } 2104 if (NDR_DIR_IS_OUT) { 2105 NDR_TOPMOST_MEMBER (_ulong, status); 2106 } 2107 2108 return 1; 2109 } 2110 2111 2112 2113 int ndr__spoolss_EnumPorts (struct ndr_reference *encl_ref); 2114 struct ndr_typeinfo ndt__spoolss_EnumPorts = { 2115 1, /* NDR version */ 2116 3, /* alignment */ 2117 NDR_F_OPERATION, /* flags */ 2118 ndr__spoolss_EnumPorts, /* ndr_func */ 2119 20, /* pdu_size_fixed_part */ 2120 0, /* pdu_size_variable_part */ 2121 20, /* c_size_fixed_part */ 2122 0, /* c_size_variable_part */ 2123 }; 2124 2125 2126 /* 2127 * [operation(35)] 2128 */ 2129 int 2130 ndr__spoolss_EnumPorts (struct ndr_reference *encl_ref) 2131 { 2132 struct spoolss_EnumPorts *val = (struct spoolss_EnumPorts *) encl_ref->datum; 2133 struct ndr_reference myref; 2134 2135 (void) bzero(&myref, sizeof (myref)); 2136 myref.enclosing = encl_ref; 2137 myref.stream = encl_ref->stream; 2138 2139 /* do all members in order */ 2140 if (NDR_DIR_IS_IN) { 2141 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2142 } 2143 if (NDR_DIR_IS_IN) { 2144 NDR_TOPMOST_MEMBER (_ulong, level); 2145 } 2146 if (NDR_DIR_IS_OUT) { 2147 NDR_TOPMOST_MEMBER (_ulong, needed); 2148 } 2149 if (NDR_DIR_IS_OUT) { 2150 NDR_TOPMOST_MEMBER (_ulong, returned); 2151 } 2152 if (NDR_DIR_IS_OUT) { 2153 NDR_TOPMOST_MEMBER (_ulong, status); 2154 } 2155 2156 return 1; 2157 } 2158 2159 2160 2161 int ndr__spoolss_DeletePort (struct ndr_reference *encl_ref); 2162 struct ndr_typeinfo ndt__spoolss_DeletePort = { 2163 1, /* NDR version */ 2164 3, /* alignment */ 2165 NDR_F_OPERATION, /* flags */ 2166 ndr__spoolss_DeletePort, /* ndr_func */ 2167 8, /* pdu_size_fixed_part */ 2168 0, /* pdu_size_variable_part */ 2169 8, /* c_size_fixed_part */ 2170 0, /* c_size_variable_part */ 2171 }; 2172 2173 2174 /* 2175 * [operation(39)] 2176 */ 2177 int 2178 ndr__spoolss_DeletePort (struct ndr_reference *encl_ref) 2179 { 2180 struct spoolss_DeletePort *val = (struct spoolss_DeletePort *) encl_ref->datum; 2181 struct ndr_reference myref; 2182 2183 (void) bzero(&myref, sizeof (myref)); 2184 myref.enclosing = encl_ref; 2185 myref.stream = encl_ref->stream; 2186 2187 /* do all members in order */ 2188 if (NDR_DIR_IS_IN) { 2189 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2190 } 2191 if (NDR_DIR_IS_OUT) { 2192 NDR_TOPMOST_MEMBER (_ulong, status); 2193 } 2194 2195 return 1; 2196 } 2197 2198 2199 2200 int ndr__spoolss_AddPortEx (struct ndr_reference *encl_ref); 2201 struct ndr_typeinfo ndt__spoolss_AddPortEx = { 2202 1, /* NDR version */ 2203 3, /* alignment */ 2204 NDR_F_OPERATION, /* flags */ 2205 ndr__spoolss_AddPortEx, /* ndr_func */ 2206 8, /* pdu_size_fixed_part */ 2207 0, /* pdu_size_variable_part */ 2208 8, /* c_size_fixed_part */ 2209 0, /* c_size_variable_part */ 2210 }; 2211 2212 2213 /* 2214 * [operation(61)] 2215 */ 2216 int 2217 ndr__spoolss_AddPortEx (struct ndr_reference *encl_ref) 2218 { 2219 struct spoolss_AddPortEx *val = (struct spoolss_AddPortEx *) encl_ref->datum; 2220 struct ndr_reference myref; 2221 2222 (void) bzero(&myref, sizeof (myref)); 2223 myref.enclosing = encl_ref; 2224 myref.stream = encl_ref->stream; 2225 2226 /* do all members in order */ 2227 if (NDR_DIR_IS_IN) { 2228 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2229 } 2230 if (NDR_DIR_IS_OUT) { 2231 NDR_TOPMOST_MEMBER (_ulong, status); 2232 } 2233 2234 return 1; 2235 } 2236 2237 2238 2239 int ndr__spoolss_SetPort (struct ndr_reference *encl_ref); 2240 struct ndr_typeinfo ndt__spoolss_SetPort = { 2241 1, /* NDR version */ 2242 3, /* alignment */ 2243 NDR_F_OPERATION, /* flags */ 2244 ndr__spoolss_SetPort, /* ndr_func */ 2245 8, /* pdu_size_fixed_part */ 2246 0, /* pdu_size_variable_part */ 2247 8, /* c_size_fixed_part */ 2248 0, /* c_size_variable_part */ 2249 }; 2250 2251 2252 /* 2253 * [operation(71)] 2254 */ 2255 int 2256 ndr__spoolss_SetPort (struct ndr_reference *encl_ref) 2257 { 2258 struct spoolss_SetPort *val = (struct spoolss_SetPort *) encl_ref->datum; 2259 struct ndr_reference myref; 2260 2261 (void) bzero(&myref, sizeof (myref)); 2262 myref.enclosing = encl_ref; 2263 myref.stream = encl_ref->stream; 2264 2265 /* do all members in order */ 2266 if (NDR_DIR_IS_IN) { 2267 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2268 } 2269 if (NDR_DIR_IS_OUT) { 2270 NDR_TOPMOST_MEMBER (_ulong, status); 2271 } 2272 2273 return 1; 2274 } 2275 2276 2277 2278 int ndr__spoolss_EnumMonitor (struct ndr_reference *encl_ref); 2279 struct ndr_typeinfo ndt__spoolss_EnumMonitor = { 2280 1, /* NDR version */ 2281 3, /* alignment */ 2282 NDR_F_OPERATION, /* flags */ 2283 ndr__spoolss_EnumMonitor, /* ndr_func */ 2284 20, /* pdu_size_fixed_part */ 2285 0, /* pdu_size_variable_part */ 2286 20, /* c_size_fixed_part */ 2287 0, /* c_size_variable_part */ 2288 }; 2289 2290 2291 /* 2292 * [operation(36)] 2293 */ 2294 int 2295 ndr__spoolss_EnumMonitor (struct ndr_reference *encl_ref) 2296 { 2297 struct spoolss_EnumMonitor *val = (struct spoolss_EnumMonitor *) encl_ref->datum; 2298 struct ndr_reference myref; 2299 2300 (void) bzero(&myref, sizeof (myref)); 2301 myref.enclosing = encl_ref; 2302 myref.stream = encl_ref->stream; 2303 2304 /* do all members in order */ 2305 if (NDR_DIR_IS_IN) { 2306 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2307 } 2308 if (NDR_DIR_IS_IN) { 2309 NDR_TOPMOST_MEMBER (_ulong, level); 2310 } 2311 if (NDR_DIR_IS_OUT) { 2312 NDR_TOPMOST_MEMBER (_ulong, needed); 2313 } 2314 if (NDR_DIR_IS_OUT) { 2315 NDR_TOPMOST_MEMBER (_ulong, returned); 2316 } 2317 if (NDR_DIR_IS_OUT) { 2318 NDR_TOPMOST_MEMBER (_ulong, status); 2319 } 2320 2321 return 1; 2322 } 2323 2324 2325 2326 int ndr__spoolss_AddMonitor (struct ndr_reference *encl_ref); 2327 struct ndr_typeinfo ndt__spoolss_AddMonitor = { 2328 1, /* NDR version */ 2329 3, /* alignment */ 2330 NDR_F_OPERATION, /* flags */ 2331 ndr__spoolss_AddMonitor, /* ndr_func */ 2332 8, /* pdu_size_fixed_part */ 2333 0, /* pdu_size_variable_part */ 2334 8, /* c_size_fixed_part */ 2335 0, /* c_size_variable_part */ 2336 }; 2337 2338 2339 /* 2340 * [operation(46)] 2341 */ 2342 int 2343 ndr__spoolss_AddMonitor (struct ndr_reference *encl_ref) 2344 { 2345 struct spoolss_AddMonitor *val = (struct spoolss_AddMonitor *) encl_ref->datum; 2346 struct ndr_reference myref; 2347 2348 (void) bzero(&myref, sizeof (myref)); 2349 myref.enclosing = encl_ref; 2350 myref.stream = encl_ref->stream; 2351 2352 /* do all members in order */ 2353 if (NDR_DIR_IS_IN) { 2354 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2355 } 2356 if (NDR_DIR_IS_OUT) { 2357 NDR_TOPMOST_MEMBER (_ulong, status); 2358 } 2359 2360 return 1; 2361 } 2362 2363 2364 2365 int ndr__spoolss_DeleteMonitor (struct ndr_reference *encl_ref); 2366 struct ndr_typeinfo ndt__spoolss_DeleteMonitor = { 2367 1, /* NDR version */ 2368 3, /* alignment */ 2369 NDR_F_OPERATION, /* flags */ 2370 ndr__spoolss_DeleteMonitor, /* ndr_func */ 2371 8, /* pdu_size_fixed_part */ 2372 0, /* pdu_size_variable_part */ 2373 8, /* c_size_fixed_part */ 2374 0, /* c_size_variable_part */ 2375 }; 2376 2377 2378 /* 2379 * [operation(47)] 2380 */ 2381 int 2382 ndr__spoolss_DeleteMonitor (struct ndr_reference *encl_ref) 2383 { 2384 struct spoolss_DeleteMonitor *val = (struct spoolss_DeleteMonitor *) encl_ref->datum; 2385 struct ndr_reference myref; 2386 2387 (void) bzero(&myref, sizeof (myref)); 2388 myref.enclosing = encl_ref; 2389 myref.stream = encl_ref->stream; 2390 2391 /* do all members in order */ 2392 if (NDR_DIR_IS_IN) { 2393 NDR_TOPMOST_MEMBER_PTR (s_wchar, name); 2394 } 2395 if (NDR_DIR_IS_OUT) { 2396 NDR_TOPMOST_MEMBER (_ulong, status); 2397 } 2398 2399 return 1; 2400 } 2401 2402 2403 2404 int ndr__spoolss_ResetPrinter (struct ndr_reference *encl_ref); 2405 struct ndr_typeinfo ndt__spoolss_ResetPrinter = { 2406 1, /* NDR version */ 2407 3, /* alignment */ 2408 NDR_F_OPERATION, /* flags */ 2409 ndr__spoolss_ResetPrinter, /* ndr_func */ 2410 24, /* pdu_size_fixed_part */ 2411 0, /* pdu_size_variable_part */ 2412 24, /* c_size_fixed_part */ 2413 0, /* c_size_variable_part */ 2414 }; 2415 2416 2417 /* 2418 * [operation(52)] 2419 */ 2420 int 2421 ndr__spoolss_ResetPrinter (struct ndr_reference *encl_ref) 2422 { 2423 struct spoolss_ResetPrinter *val = (struct spoolss_ResetPrinter *) encl_ref->datum; 2424 struct ndr_reference myref; 2425 2426 (void) bzero(&myref, sizeof (myref)); 2427 myref.enclosing = encl_ref; 2428 myref.stream = encl_ref->stream; 2429 2430 /* do all members in order */ 2431 if (NDR_DIR_IS_IN) { 2432 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2433 } 2434 if (NDR_DIR_IS_OUT) { 2435 NDR_TOPMOST_MEMBER (_ulong, status); 2436 } 2437 2438 return 1; 2439 } 2440 2441 2442 2443 int ndr__spoolss_StartPagePrinter (struct ndr_reference *encl_ref); 2444 struct ndr_typeinfo ndt__spoolss_StartPagePrinter = { 2445 1, /* NDR version */ 2446 3, /* alignment */ 2447 NDR_F_OPERATION, /* flags */ 2448 ndr__spoolss_StartPagePrinter, /* ndr_func */ 2449 24, /* pdu_size_fixed_part */ 2450 0, /* pdu_size_variable_part */ 2451 24, /* c_size_fixed_part */ 2452 0, /* c_size_variable_part */ 2453 }; 2454 2455 2456 /* 2457 * [operation(18)] 2458 */ 2459 int 2460 ndr__spoolss_StartPagePrinter (struct ndr_reference *encl_ref) 2461 { 2462 struct spoolss_StartPagePrinter *val = (struct spoolss_StartPagePrinter *) encl_ref->datum; 2463 struct ndr_reference myref; 2464 2465 (void) bzero(&myref, sizeof (myref)); 2466 myref.enclosing = encl_ref; 2467 myref.stream = encl_ref->stream; 2468 2469 /* do all members in order */ 2470 if (NDR_DIR_IS_IN) { 2471 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2472 } 2473 if (NDR_DIR_IS_OUT) { 2474 NDR_TOPMOST_MEMBER (_ulong, status); 2475 } 2476 2477 return 1; 2478 } 2479 2480 2481 2482 int ndr__spoolss_EndPagePrinter (struct ndr_reference *encl_ref); 2483 struct ndr_typeinfo ndt__spoolss_EndPagePrinter = { 2484 1, /* NDR version */ 2485 3, /* alignment */ 2486 NDR_F_OPERATION, /* flags */ 2487 ndr__spoolss_EndPagePrinter, /* ndr_func */ 2488 24, /* pdu_size_fixed_part */ 2489 0, /* pdu_size_variable_part */ 2490 24, /* c_size_fixed_part */ 2491 0, /* c_size_variable_part */ 2492 }; 2493 2494 2495 /* 2496 * [operation(20)] 2497 */ 2498 int 2499 ndr__spoolss_EndPagePrinter (struct ndr_reference *encl_ref) 2500 { 2501 struct spoolss_EndPagePrinter *val = (struct spoolss_EndPagePrinter *) encl_ref->datum; 2502 struct ndr_reference myref; 2503 2504 (void) bzero(&myref, sizeof (myref)); 2505 myref.enclosing = encl_ref; 2506 myref.stream = encl_ref->stream; 2507 2508 /* do all members in order */ 2509 if (NDR_DIR_IS_IN) { 2510 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2511 } 2512 if (NDR_DIR_IS_OUT) { 2513 NDR_TOPMOST_MEMBER (_ulong, status); 2514 } 2515 2516 return 1; 2517 } 2518 2519 2520 2521 int ndr__spoolss_WritePrinter (struct ndr_reference *encl_ref); 2522 struct ndr_typeinfo ndt__spoolss_WritePrinter = { 2523 1, /* NDR version */ 2524 3, /* alignment */ 2525 NDR_F_OPERATION, /* flags */ 2526 ndr__spoolss_WritePrinter, /* ndr_func */ 2527 36, /* pdu_size_fixed_part */ 2528 0, /* pdu_size_variable_part */ 2529 36, /* c_size_fixed_part */ 2530 0, /* c_size_variable_part */ 2531 }; 2532 2533 2534 /* 2535 * [operation(19)] 2536 */ 2537 int 2538 ndr__spoolss_WritePrinter (struct ndr_reference *encl_ref) 2539 { 2540 struct spoolss_WritePrinter *val = (struct spoolss_WritePrinter *) encl_ref->datum; 2541 struct ndr_reference myref; 2542 2543 (void) bzero(&myref, sizeof (myref)); 2544 myref.enclosing = encl_ref; 2545 myref.stream = encl_ref->stream; 2546 2547 /* do all members in order */ 2548 if (NDR_DIR_IS_IN) { 2549 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2550 } 2551 if (NDR_DIR_IS_IN) { 2552 NDR_TOPMOST_MEMBER (_ulong, BufCount); 2553 } 2554 if (NDR_DIR_IS_IN) { 2555 NDR_TOPMOST_MEMBER_REF_WITH_SIZE_IS (_uchar, pBuf, 2556 val->BufCount); 2557 } 2558 if (NDR_DIR_IS_OUT) { 2559 NDR_TOPMOST_MEMBER (_ulong, written); 2560 } 2561 if (NDR_DIR_IS_OUT) { 2562 NDR_TOPMOST_MEMBER (_ulong, status); 2563 } 2564 2565 return 1; 2566 } 2567 2568 2569 2570 int ndr__spoolss_ScheduleJob (struct ndr_reference *encl_ref); 2571 struct ndr_typeinfo ndt__spoolss_ScheduleJob = { 2572 1, /* NDR version */ 2573 3, /* alignment */ 2574 NDR_F_OPERATION, /* flags */ 2575 ndr__spoolss_ScheduleJob, /* ndr_func */ 2576 28, /* pdu_size_fixed_part */ 2577 0, /* pdu_size_variable_part */ 2578 28, /* c_size_fixed_part */ 2579 0, /* c_size_variable_part */ 2580 }; 2581 2582 2583 /* 2584 * [operation(25)] 2585 */ 2586 int 2587 ndr__spoolss_ScheduleJob (struct ndr_reference *encl_ref) 2588 { 2589 struct spoolss_ScheduleJob *val = (struct spoolss_ScheduleJob *) encl_ref->datum; 2590 struct ndr_reference myref; 2591 2592 (void) bzero(&myref, sizeof (myref)); 2593 myref.enclosing = encl_ref; 2594 myref.stream = encl_ref->stream; 2595 2596 /* do all members in order */ 2597 if (NDR_DIR_IS_IN) { 2598 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2599 } 2600 if (NDR_DIR_IS_IN) { 2601 NDR_TOPMOST_MEMBER (_ulong, JobId); 2602 } 2603 if (NDR_DIR_IS_OUT) { 2604 NDR_TOPMOST_MEMBER (_ulong, status); 2605 } 2606 2607 return 1; 2608 } 2609 2610 2611 2612 int ndr__spoolss_GetJob (struct ndr_reference *encl_ref); 2613 struct ndr_typeinfo ndt__spoolss_GetJob = { 2614 1, /* NDR version */ 2615 3, /* alignment */ 2616 NDR_F_OPERATION, /* flags */ 2617 ndr__spoolss_GetJob, /* ndr_func */ 2618 44, /* pdu_size_fixed_part */ 2619 0, /* pdu_size_variable_part */ 2620 44, /* c_size_fixed_part */ 2621 0, /* c_size_variable_part */ 2622 }; 2623 2624 2625 /* 2626 * [operation(3)] 2627 */ 2628 int 2629 ndr__spoolss_GetJob (struct ndr_reference *encl_ref) 2630 { 2631 struct spoolss_GetJob *val = (struct spoolss_GetJob *) encl_ref->datum; 2632 struct ndr_reference myref; 2633 2634 (void) bzero(&myref, sizeof (myref)); 2635 myref.enclosing = encl_ref; 2636 myref.stream = encl_ref->stream; 2637 2638 /* do all members in order */ 2639 if (NDR_DIR_IS_IN) { 2640 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2641 } 2642 if (NDR_DIR_IS_IN) { 2643 NDR_TOPMOST_MEMBER (_ulong, JobId); 2644 } 2645 if (NDR_DIR_IS_IN) { 2646 NDR_TOPMOST_MEMBER (_ulong, level); 2647 } 2648 NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pJob, 2649 val->BufCount); 2650 if (NDR_DIR_IS_IN) { 2651 NDR_TOPMOST_MEMBER (_ulong, BufCount); 2652 } 2653 if (NDR_DIR_IS_OUT) { 2654 NDR_TOPMOST_MEMBER (_ulong, needed); 2655 } 2656 if (NDR_DIR_IS_OUT) { 2657 NDR_TOPMOST_MEMBER (_ulong, status); 2658 } 2659 2660 return 1; 2661 } 2662 2663 2664 2665 int ndr__spoolss_AddJob (struct ndr_reference *encl_ref); 2666 struct ndr_typeinfo ndt__spoolss_AddJob = { 2667 1, /* NDR version */ 2668 3, /* alignment */ 2669 NDR_F_OPERATION, /* flags */ 2670 ndr__spoolss_AddJob, /* ndr_func */ 2671 44, /* pdu_size_fixed_part */ 2672 0, /* pdu_size_variable_part */ 2673 44, /* c_size_fixed_part */ 2674 0, /* c_size_variable_part */ 2675 }; 2676 2677 2678 /* 2679 * [operation(24)] 2680 */ 2681 int 2682 ndr__spoolss_AddJob (struct ndr_reference *encl_ref) 2683 { 2684 struct spoolss_AddJob *val = (struct spoolss_AddJob *) encl_ref->datum; 2685 struct ndr_reference myref; 2686 2687 (void) bzero(&myref, sizeof (myref)); 2688 myref.enclosing = encl_ref; 2689 myref.stream = encl_ref->stream; 2690 2691 /* do all members in order */ 2692 if (NDR_DIR_IS_IN) { 2693 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2694 } 2695 if (NDR_DIR_IS_IN) { 2696 NDR_TOPMOST_MEMBER (_ulong, level); 2697 } 2698 if (NDR_DIR_IS_IN) { 2699 NDR_TOPMOST_MEMBER (_ulong, Buf2); 2700 } 2701 if (NDR_DIR_IS_IN) { 2702 NDR_TOPMOST_MEMBER (_ulong, BufCount); 2703 } 2704 if (NDR_DIR_IS_OUT) { 2705 NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pAddJob, 2706 val->BufCount); 2707 } 2708 if (NDR_DIR_IS_OUT) { 2709 NDR_TOPMOST_MEMBER (_ulong, needed); 2710 } 2711 if (NDR_DIR_IS_OUT) { 2712 NDR_TOPMOST_MEMBER (_ulong, status); 2713 } 2714 2715 return 1; 2716 } 2717 2718 2719 2720 int ndr__spoolss_ClosePrinter (struct ndr_reference *encl_ref); 2721 struct ndr_typeinfo ndt__spoolss_ClosePrinter = { 2722 1, /* NDR version */ 2723 3, /* alignment */ 2724 NDR_F_OPERATION, /* flags */ 2725 ndr__spoolss_ClosePrinter, /* ndr_func */ 2726 44, /* pdu_size_fixed_part */ 2727 0, /* pdu_size_variable_part */ 2728 44, /* c_size_fixed_part */ 2729 0, /* c_size_variable_part */ 2730 }; 2731 2732 2733 /* 2734 * [operation(29)] 2735 */ 2736 int 2737 ndr__spoolss_ClosePrinter (struct ndr_reference *encl_ref) 2738 { 2739 struct spoolss_ClosePrinter *val = (struct spoolss_ClosePrinter *) encl_ref->datum; 2740 struct ndr_reference myref; 2741 2742 (void) bzero(&myref, sizeof (myref)); 2743 myref.enclosing = encl_ref; 2744 myref.stream = encl_ref->stream; 2745 2746 /* do all members in order */ 2747 if (NDR_DIR_IS_IN) { 2748 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2749 } 2750 if (NDR_DIR_IS_OUT) { 2751 NDR_TOPMOST_MEMBER (_spoolss_handle, result_handle); 2752 } 2753 if (NDR_DIR_IS_OUT) { 2754 NDR_TOPMOST_MEMBER (_ulong, status); 2755 } 2756 2757 return 1; 2758 } 2759 2760 2761 2762 int ndr__spoolss_EndDocPrinter (struct ndr_reference *encl_ref); 2763 struct ndr_typeinfo ndt__spoolss_EndDocPrinter = { 2764 1, /* NDR version */ 2765 3, /* alignment */ 2766 NDR_F_OPERATION, /* flags */ 2767 ndr__spoolss_EndDocPrinter, /* ndr_func */ 2768 24, /* pdu_size_fixed_part */ 2769 0, /* pdu_size_variable_part */ 2770 24, /* c_size_fixed_part */ 2771 0, /* c_size_variable_part */ 2772 }; 2773 2774 2775 /* 2776 * [operation(23)] 2777 */ 2778 int 2779 ndr__spoolss_EndDocPrinter (struct ndr_reference *encl_ref) 2780 { 2781 struct spoolss_EndDocPrinter *val = (struct spoolss_EndDocPrinter *) encl_ref->datum; 2782 struct ndr_reference myref; 2783 2784 (void) bzero(&myref, sizeof (myref)); 2785 myref.enclosing = encl_ref; 2786 myref.stream = encl_ref->stream; 2787 2788 /* do all members in order */ 2789 if (NDR_DIR_IS_IN) { 2790 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2791 } 2792 if (NDR_DIR_IS_OUT) { 2793 NDR_TOPMOST_MEMBER (_ulong, status); 2794 } 2795 2796 return 1; 2797 } 2798 2799 2800 2801 int ndr__spoolss_AddForm (struct ndr_reference *encl_ref); 2802 struct ndr_typeinfo ndt__spoolss_AddForm = { 2803 1, /* NDR version */ 2804 3, /* alignment */ 2805 NDR_F_OPERATION, /* flags */ 2806 ndr__spoolss_AddForm, /* ndr_func */ 2807 24, /* pdu_size_fixed_part */ 2808 0, /* pdu_size_variable_part */ 2809 24, /* c_size_fixed_part */ 2810 0, /* c_size_variable_part */ 2811 }; 2812 2813 2814 /* 2815 * [operation(30)] 2816 */ 2817 int 2818 ndr__spoolss_AddForm (struct ndr_reference *encl_ref) 2819 { 2820 struct spoolss_AddForm *val = (struct spoolss_AddForm *) encl_ref->datum; 2821 struct ndr_reference myref; 2822 2823 (void) bzero(&myref, sizeof (myref)); 2824 myref.enclosing = encl_ref; 2825 myref.stream = encl_ref->stream; 2826 2827 /* do all members in order */ 2828 if (NDR_DIR_IS_IN) { 2829 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2830 } 2831 if (NDR_DIR_IS_OUT) { 2832 NDR_TOPMOST_MEMBER (_ulong, status); 2833 } 2834 2835 return 1; 2836 } 2837 2838 2839 2840 int ndr__spoolss_DeleteForm (struct ndr_reference *encl_ref); 2841 struct ndr_typeinfo ndt__spoolss_DeleteForm = { 2842 1, /* NDR version */ 2843 3, /* alignment */ 2844 NDR_F_OPERATION, /* flags */ 2845 ndr__spoolss_DeleteForm, /* ndr_func */ 2846 24, /* pdu_size_fixed_part */ 2847 0, /* pdu_size_variable_part */ 2848 24, /* c_size_fixed_part */ 2849 0, /* c_size_variable_part */ 2850 }; 2851 2852 2853 /* 2854 * [operation(31)] 2855 */ 2856 int 2857 ndr__spoolss_DeleteForm (struct ndr_reference *encl_ref) 2858 { 2859 struct spoolss_DeleteForm *val = (struct spoolss_DeleteForm *) encl_ref->datum; 2860 struct ndr_reference myref; 2861 2862 (void) bzero(&myref, sizeof (myref)); 2863 myref.enclosing = encl_ref; 2864 myref.stream = encl_ref->stream; 2865 2866 /* do all members in order */ 2867 if (NDR_DIR_IS_IN) { 2868 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2869 } 2870 if (NDR_DIR_IS_OUT) { 2871 NDR_TOPMOST_MEMBER (_ulong, status); 2872 } 2873 2874 return 1; 2875 } 2876 2877 2878 2879 int ndr__spoolss_EnumForms (struct ndr_reference *encl_ref); 2880 struct ndr_typeinfo ndt__spoolss_EnumForms = { 2881 1, /* NDR version */ 2882 3, /* alignment */ 2883 NDR_F_OPERATION, /* flags */ 2884 ndr__spoolss_EnumForms, /* ndr_func */ 2885 44, /* pdu_size_fixed_part */ 2886 0, /* pdu_size_variable_part */ 2887 44, /* c_size_fixed_part */ 2888 0, /* c_size_variable_part */ 2889 }; 2890 2891 2892 /* 2893 * [operation(34)] 2894 */ 2895 int 2896 ndr__spoolss_EnumForms (struct ndr_reference *encl_ref) 2897 { 2898 struct spoolss_EnumForms *val = (struct spoolss_EnumForms *) encl_ref->datum; 2899 struct ndr_reference myref; 2900 2901 (void) bzero(&myref, sizeof (myref)); 2902 myref.enclosing = encl_ref; 2903 myref.stream = encl_ref->stream; 2904 2905 /* do all members in order */ 2906 if (NDR_DIR_IS_IN) { 2907 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 2908 } 2909 if (NDR_DIR_IS_IN) { 2910 NDR_TOPMOST_MEMBER (_ulong, level); 2911 } 2912 if (NDR_DIR_IS_IN) { 2913 NDR_TOPMOST_MEMBER (_ulong, BufCount); 2914 } 2915 NDR_TOPMOST_MEMBER_PTR_WITH_SIZE_IS (_uchar, pEnumForms, 2916 val->BufCount); 2917 if (NDR_DIR_IS_OUT) { 2918 NDR_TOPMOST_MEMBER (_ulong, needed); 2919 } 2920 if (NDR_DIR_IS_OUT) { 2921 NDR_TOPMOST_MEMBER (_ulong, pcRet); 2922 } 2923 if (NDR_DIR_IS_OUT) { 2924 NDR_TOPMOST_MEMBER (_ulong, status); 2925 } 2926 2927 return 1; 2928 } 2929 2930 2931 2932 int ndr__spoolss_GetPrinterDriver2 (struct ndr_reference *encl_ref); 2933 struct ndr_typeinfo ndt__spoolss_GetPrinterDriver2 = { 2934 1, /* NDR version */ 2935 3, /* alignment */ 2936 NDR_F_OPERATION, /* flags */ 2937 ndr__spoolss_GetPrinterDriver2, /* ndr_func */ 2938 8, /* pdu_size_fixed_part */ 2939 0, /* pdu_size_variable_part */ 2940 8, /* c_size_fixed_part */ 2941 0, /* c_size_variable_part */ 2942 }; 2943 2944 2945 /* 2946 * [operation(53)] 2947 */ 2948 int 2949 ndr__spoolss_GetPrinterDriver2 (struct ndr_reference *encl_ref) 2950 { 2951 struct spoolss_GetPrinterDriver2 *val = (struct spoolss_GetPrinterDriver2 *) encl_ref->datum; 2952 struct ndr_reference myref; 2953 2954 (void) bzero(&myref, sizeof (myref)); 2955 myref.enclosing = encl_ref; 2956 myref.stream = encl_ref->stream; 2957 2958 /* do all members in order */ 2959 if (NDR_DIR_IS_IN) { 2960 NDR_TOPMOST_MEMBER (_ulong, dontcare); 2961 } 2962 if (NDR_DIR_IS_OUT) { 2963 NDR_TOPMOST_MEMBER (_ulong, status); 2964 } 2965 2966 return 1; 2967 } 2968 2969 2970 2971 int ndr__spoolss_FCPN (struct ndr_reference *encl_ref); 2972 struct ndr_typeinfo ndt__spoolss_FCPN = { 2973 1, /* NDR version */ 2974 3, /* alignment */ 2975 NDR_F_OPERATION, /* flags */ 2976 ndr__spoolss_FCPN, /* ndr_func */ 2977 8, /* pdu_size_fixed_part */ 2978 0, /* pdu_size_variable_part */ 2979 8, /* c_size_fixed_part */ 2980 0, /* c_size_variable_part */ 2981 }; 2982 2983 2984 /* 2985 * [operation(56)] 2986 */ 2987 int 2988 ndr__spoolss_FCPN (struct ndr_reference *encl_ref) 2989 { 2990 struct spoolss_FCPN *val = (struct spoolss_FCPN *) encl_ref->datum; 2991 struct ndr_reference myref; 2992 2993 (void) bzero(&myref, sizeof (myref)); 2994 myref.enclosing = encl_ref; 2995 myref.stream = encl_ref->stream; 2996 2997 /* do all members in order */ 2998 if (NDR_DIR_IS_IN) { 2999 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3000 } 3001 if (NDR_DIR_IS_OUT) { 3002 NDR_TOPMOST_MEMBER (_ulong, status); 3003 } 3004 3005 return 1; 3006 } 3007 3008 3009 3010 int ndr__spoolss_ReplyOpenPrinter (struct ndr_reference *encl_ref); 3011 struct ndr_typeinfo ndt__spoolss_ReplyOpenPrinter = { 3012 1, /* NDR version */ 3013 3, /* alignment */ 3014 NDR_F_OPERATION, /* flags */ 3015 ndr__spoolss_ReplyOpenPrinter, /* ndr_func */ 3016 8, /* pdu_size_fixed_part */ 3017 0, /* pdu_size_variable_part */ 3018 8, /* c_size_fixed_part */ 3019 0, /* c_size_variable_part */ 3020 }; 3021 3022 3023 /* 3024 * [operation(58)] 3025 */ 3026 int 3027 ndr__spoolss_ReplyOpenPrinter (struct ndr_reference *encl_ref) 3028 { 3029 struct spoolss_ReplyOpenPrinter *val = (struct spoolss_ReplyOpenPrinter *) encl_ref->datum; 3030 struct ndr_reference myref; 3031 3032 (void) bzero(&myref, sizeof (myref)); 3033 myref.enclosing = encl_ref; 3034 myref.stream = encl_ref->stream; 3035 3036 /* do all members in order */ 3037 if (NDR_DIR_IS_IN) { 3038 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3039 } 3040 if (NDR_DIR_IS_OUT) { 3041 NDR_TOPMOST_MEMBER (_ulong, status); 3042 } 3043 3044 return 1; 3045 } 3046 3047 3048 3049 int ndr__spoolss_ReplyClosePrinter (struct ndr_reference *encl_ref); 3050 struct ndr_typeinfo ndt__spoolss_ReplyClosePrinter = { 3051 1, /* NDR version */ 3052 3, /* alignment */ 3053 NDR_F_OPERATION, /* flags */ 3054 ndr__spoolss_ReplyClosePrinter, /* ndr_func */ 3055 8, /* pdu_size_fixed_part */ 3056 0, /* pdu_size_variable_part */ 3057 8, /* c_size_fixed_part */ 3058 0, /* c_size_variable_part */ 3059 }; 3060 3061 3062 /* 3063 * [operation(60)] 3064 */ 3065 int 3066 ndr__spoolss_ReplyClosePrinter (struct ndr_reference *encl_ref) 3067 { 3068 struct spoolss_ReplyClosePrinter *val = (struct spoolss_ReplyClosePrinter *) encl_ref->datum; 3069 struct ndr_reference myref; 3070 3071 (void) bzero(&myref, sizeof (myref)); 3072 myref.enclosing = encl_ref; 3073 myref.stream = encl_ref->stream; 3074 3075 /* do all members in order */ 3076 if (NDR_DIR_IS_IN) { 3077 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3078 } 3079 if (NDR_DIR_IS_OUT) { 3080 NDR_TOPMOST_MEMBER (_ulong, status); 3081 } 3082 3083 return 1; 3084 } 3085 3086 3087 3088 int ndr__spoolss_RFFPCNEX (struct ndr_reference *encl_ref); 3089 struct ndr_typeinfo ndt__spoolss_RFFPCNEX = { 3090 1, /* NDR version */ 3091 3, /* alignment */ 3092 NDR_F_OPERATION, /* flags */ 3093 ndr__spoolss_RFFPCNEX, /* ndr_func */ 3094 24, /* pdu_size_fixed_part */ 3095 0, /* pdu_size_variable_part */ 3096 24, /* c_size_fixed_part */ 3097 0, /* c_size_variable_part */ 3098 }; 3099 3100 3101 /* 3102 * [operation(65)] 3103 */ 3104 int 3105 ndr__spoolss_RFFPCNEX (struct ndr_reference *encl_ref) 3106 { 3107 struct spoolss_RFFPCNEX *val = (struct spoolss_RFFPCNEX *) encl_ref->datum; 3108 struct ndr_reference myref; 3109 3110 (void) bzero(&myref, sizeof (myref)); 3111 myref.enclosing = encl_ref; 3112 myref.stream = encl_ref->stream; 3113 3114 /* do all members in order */ 3115 if (NDR_DIR_IS_IN) { 3116 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 3117 } 3118 if (NDR_DIR_IS_OUT) { 3119 NDR_TOPMOST_MEMBER (_ulong, status); 3120 } 3121 3122 return 1; 3123 } 3124 3125 3126 3127 int ndr__spoolss_infores (struct ndr_reference *encl_ref); 3128 struct ndr_typeinfo ndt__spoolss_infores = { 3129 1, /* NDR version */ 3130 3, /* alignment */ 3131 NDR_F_STRUCT, /* flags */ 3132 ndr__spoolss_infores, /* ndr_func */ 3133 8, /* pdu_size_fixed_part */ 3134 0, /* pdu_size_variable_part */ 3135 8, /* c_size_fixed_part */ 3136 0, /* c_size_variable_part */ 3137 }; 3138 3139 3140 /* 3141 * */ 3142 int 3143 ndr__spoolss_infores (struct ndr_reference *encl_ref) 3144 { 3145 struct spoolss_infores *val = (struct spoolss_infores *) encl_ref->datum; 3146 struct ndr_reference myref; 3147 3148 (void) bzero(&myref, sizeof (myref)); 3149 myref.enclosing = encl_ref; 3150 myref.stream = encl_ref->stream; 3151 3152 /* do all basic elements first */ 3153 NDR_MEMBER (_ulong, entriesread, 0UL); 3154 3155 /* do all constructed elements w/o pointers */ 3156 3157 /* do members with pointers in order */ 3158 NDR_MEMBER_PTR (_spoolss_RPC_V2_NOTIFY_INFO, pinfo, 4UL); 3159 3160 return 1; 3161 } 3162 3163 3164 3165 int ndr__spoolss_RFNPCNEX (struct ndr_reference *encl_ref); 3166 struct ndr_typeinfo ndt__spoolss_RFNPCNEX = { 3167 1, /* NDR version */ 3168 3, /* alignment */ 3169 NDR_F_OPERATION, /* flags */ 3170 ndr__spoolss_RFNPCNEX, /* ndr_func */ 3171 36, /* pdu_size_fixed_part */ 3172 0, /* pdu_size_variable_part */ 3173 36, /* c_size_fixed_part */ 3174 0, /* c_size_variable_part */ 3175 }; 3176 3177 3178 /* 3179 * [operation(67)] 3180 */ 3181 int 3182 ndr__spoolss_RFNPCNEX (struct ndr_reference *encl_ref) 3183 { 3184 struct spoolss_RFNPCNEX *val = (struct spoolss_RFNPCNEX *) encl_ref->datum; 3185 struct ndr_reference myref; 3186 3187 (void) bzero(&myref, sizeof (myref)); 3188 myref.enclosing = encl_ref; 3189 myref.stream = encl_ref->stream; 3190 3191 /* do all members in order */ 3192 if (NDR_DIR_IS_IN) { 3193 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 3194 } 3195 if (NDR_DIR_IS_IN) { 3196 NDR_TOPMOST_MEMBER (_ulong, color); 3197 } 3198 if (NDR_DIR_IS_IN) { 3199 NDR_TOPMOST_MEMBER_PTR (_spoolss_RPC_V2_NOTIFY_OPTIONS, poptions); 3200 } 3201 if (NDR_DIR_IS_OUT) { 3202 NDR_TOPMOST_MEMBER_PTR (_spoolss_infores, ppinfo); 3203 } 3204 if (NDR_DIR_IS_OUT) { 3205 NDR_TOPMOST_MEMBER (_ulong, status); 3206 } 3207 3208 return 1; 3209 } 3210 3211 3212 3213 int ndr__spoolss_RRPCN (struct ndr_reference *encl_ref); 3214 struct ndr_typeinfo ndt__spoolss_RRPCN = { 3215 1, /* NDR version */ 3216 3, /* alignment */ 3217 NDR_F_OPERATION, /* flags */ 3218 ndr__spoolss_RRPCN, /* ndr_func */ 3219 8, /* pdu_size_fixed_part */ 3220 0, /* pdu_size_variable_part */ 3221 8, /* c_size_fixed_part */ 3222 0, /* c_size_variable_part */ 3223 }; 3224 3225 3226 /* 3227 * [operation(66)] 3228 */ 3229 int 3230 ndr__spoolss_RRPCN (struct ndr_reference *encl_ref) 3231 { 3232 struct spoolss_RRPCN *val = (struct spoolss_RRPCN *) encl_ref->datum; 3233 struct ndr_reference myref; 3234 3235 (void) bzero(&myref, sizeof (myref)); 3236 myref.enclosing = encl_ref; 3237 myref.stream = encl_ref->stream; 3238 3239 /* do all members in order */ 3240 if (NDR_DIR_IS_IN) { 3241 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3242 } 3243 if (NDR_DIR_IS_OUT) { 3244 NDR_TOPMOST_MEMBER (_ulong, status); 3245 } 3246 3247 return 1; 3248 } 3249 3250 3251 3252 int ndr__spoolss_OpenPrinterEx (struct ndr_reference *encl_ref); 3253 struct ndr_typeinfo ndt__spoolss_OpenPrinterEx = { 3254 1, /* NDR version */ 3255 3, /* alignment */ 3256 NDR_F_OPERATION, /* flags */ 3257 ndr__spoolss_OpenPrinterEx, /* ndr_func */ 3258 32, /* pdu_size_fixed_part */ 3259 0, /* pdu_size_variable_part */ 3260 32, /* c_size_fixed_part */ 3261 0, /* c_size_variable_part */ 3262 }; 3263 3264 3265 /* 3266 * [operation(69)] 3267 */ 3268 int 3269 ndr__spoolss_OpenPrinterEx (struct ndr_reference *encl_ref) 3270 { 3271 struct spoolss_OpenPrinterEx *val = (struct spoolss_OpenPrinterEx *) encl_ref->datum; 3272 struct ndr_reference myref; 3273 3274 (void) bzero(&myref, sizeof (myref)); 3275 myref.enclosing = encl_ref; 3276 myref.stream = encl_ref->stream; 3277 3278 /* do all members in order */ 3279 if (NDR_DIR_IS_IN) { 3280 NDR_TOPMOST_MEMBER_PTR (s_wchar, printer_name); 3281 } 3282 if (NDR_DIR_IS_OUT) { 3283 NDR_TOPMOST_MEMBER (_spoolss_handle, handle); 3284 } 3285 if (NDR_DIR_IS_IN) { 3286 NDR_TOPMOST_MEMBER_PTR (s_wchar, data_type); 3287 } 3288 if (NDR_DIR_IS_OUT) { 3289 NDR_TOPMOST_MEMBER (_ulong, status); 3290 } 3291 3292 return 1; 3293 } 3294 3295 3296 3297 int ndr__spoolss_EnumPrinterData (struct ndr_reference *encl_ref); 3298 struct ndr_typeinfo ndt__spoolss_EnumPrinterData = { 3299 1, /* NDR version */ 3300 3, /* alignment */ 3301 NDR_F_OPERATION, /* flags */ 3302 ndr__spoolss_EnumPrinterData, /* ndr_func */ 3303 8, /* pdu_size_fixed_part */ 3304 0, /* pdu_size_variable_part */ 3305 8, /* c_size_fixed_part */ 3306 0, /* c_size_variable_part */ 3307 }; 3308 3309 3310 /* 3311 * [operation(72)] 3312 */ 3313 int 3314 ndr__spoolss_EnumPrinterData (struct ndr_reference *encl_ref) 3315 { 3316 struct spoolss_EnumPrinterData *val = (struct spoolss_EnumPrinterData *) encl_ref->datum; 3317 struct ndr_reference myref; 3318 3319 (void) bzero(&myref, sizeof (myref)); 3320 myref.enclosing = encl_ref; 3321 myref.stream = encl_ref->stream; 3322 3323 /* do all members in order */ 3324 if (NDR_DIR_IS_IN) { 3325 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3326 } 3327 if (NDR_DIR_IS_OUT) { 3328 NDR_TOPMOST_MEMBER (_ulong, status); 3329 } 3330 3331 return 1; 3332 } 3333 3334 3335 3336 int ndr__spoolss_EnumPrinterDataEx (struct ndr_reference *encl_ref); 3337 struct ndr_typeinfo ndt__spoolss_EnumPrinterDataEx = { 3338 1, /* NDR version */ 3339 3, /* alignment */ 3340 NDR_F_OPERATION, /* flags */ 3341 ndr__spoolss_EnumPrinterDataEx, /* ndr_func */ 3342 8, /* pdu_size_fixed_part */ 3343 0, /* pdu_size_variable_part */ 3344 8, /* c_size_fixed_part */ 3345 0, /* c_size_variable_part */ 3346 }; 3347 3348 3349 /* 3350 * [operation(79)] 3351 */ 3352 int 3353 ndr__spoolss_EnumPrinterDataEx (struct ndr_reference *encl_ref) 3354 { 3355 struct spoolss_EnumPrinterDataEx *val = (struct spoolss_EnumPrinterDataEx *) encl_ref->datum; 3356 struct ndr_reference myref; 3357 3358 (void) bzero(&myref, sizeof (myref)); 3359 myref.enclosing = encl_ref; 3360 myref.stream = encl_ref->stream; 3361 3362 /* do all members in order */ 3363 if (NDR_DIR_IS_IN) { 3364 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3365 } 3366 if (NDR_DIR_IS_OUT) { 3367 NDR_TOPMOST_MEMBER (_ulong, status); 3368 } 3369 3370 return 1; 3371 } 3372 3373 3374 3375 int ndr__spoolss_EnumPrinterKey (struct ndr_reference *encl_ref); 3376 struct ndr_typeinfo ndt__spoolss_EnumPrinterKey = { 3377 1, /* NDR version */ 3378 3, /* alignment */ 3379 NDR_F_OPERATION, /* flags */ 3380 ndr__spoolss_EnumPrinterKey, /* ndr_func */ 3381 8, /* pdu_size_fixed_part */ 3382 0, /* pdu_size_variable_part */ 3383 8, /* c_size_fixed_part */ 3384 0, /* c_size_variable_part */ 3385 }; 3386 3387 3388 /* 3389 * [operation(80)] 3390 */ 3391 int 3392 ndr__spoolss_EnumPrinterKey (struct ndr_reference *encl_ref) 3393 { 3394 struct spoolss_EnumPrinterKey *val = (struct spoolss_EnumPrinterKey *) encl_ref->datum; 3395 struct ndr_reference myref; 3396 3397 (void) bzero(&myref, sizeof (myref)); 3398 myref.enclosing = encl_ref; 3399 myref.stream = encl_ref->stream; 3400 3401 /* do all members in order */ 3402 if (NDR_DIR_IS_IN) { 3403 NDR_TOPMOST_MEMBER (_ulong, dontcare); 3404 } 3405 if (NDR_DIR_IS_OUT) { 3406 NDR_TOPMOST_MEMBER (_ulong, status); 3407 } 3408 3409 return 1; 3410 } 3411 3412 3413 3414 int ndr__spoolss_interface (struct ndr_reference *encl_ref); 3415 struct ndr_typeinfo ndt__spoolss_interface = { 3416 1, /* NDR version */ 3417 3, /* alignment */ 3418 NDR_F_INTERFACE, /* flags */ 3419 ndr__spoolss_interface, /* ndr_func */ 3420 52, /* pdu_size_fixed_part */ 3421 0, /* pdu_size_variable_part */ 3422 52, /* c_size_fixed_part */ 3423 0, /* c_size_variable_part */ 3424 }; 3425 3426 3427 /* 3428 * [interface(0)] 3429 */ 3430 int 3431 ndr__spoolss_interface (struct ndr_reference *encl_ref) 3432 { 3433 union spoolss_interface *val = (union spoolss_interface *) encl_ref->datum; 3434 struct ndr_reference myref; 3435 3436 (void) bzero(&myref, sizeof (myref)); 3437 myref.enclosing = encl_ref; 3438 myref.stream = encl_ref->stream; 3439 3440 switch (encl_ref->switch_is) { 3441 case 1: 3442 NDR_PARAMS_MEMBER (_spoolss_OpenPrinter, OpenPrinter); 3443 break; 3444 3445 case 6: 3446 NDR_PARAMS_MEMBER (_spoolss_DeletePrinter, DeletePrinter); 3447 break; 3448 3449 case 8: 3450 NDR_PARAMS_MEMBER (_spoolss_GetPrinter, GetPrinter); 3451 break; 3452 3453 case 26: 3454 NDR_PARAMS_MEMBER (_spoolss_GetPrinterData, GetPrinterData); 3455 break; 3456 3457 case 21: 3458 NDR_PARAMS_MEMBER (_spoolss_AbortPrinter, AbortPrinter); 3459 break; 3460 3461 case 17: 3462 NDR_PARAMS_MEMBER (_spoolss_StartDocPrinter, StartDocPrinter); 3463 break; 3464 3465 case 23: 3466 NDR_PARAMS_MEMBER (_spoolss_EndDocPrinter, EndDocPrinter); 3467 break; 3468 3469 case 40: 3470 NDR_PARAMS_MEMBER (_spoolss_CreatePrinterIC, CreatePrinterIC); 3471 break; 3472 3473 case 52: 3474 NDR_PARAMS_MEMBER (_spoolss_ResetPrinter, ResetPrinter); 3475 break; 3476 3477 case 36: 3478 NDR_PARAMS_MEMBER (_spoolss_EnumMonitor, EnumMonitor); 3479 break; 3480 3481 case 46: 3482 NDR_PARAMS_MEMBER (_spoolss_AddMonitor, AddMonitor); 3483 break; 3484 3485 case 47: 3486 NDR_PARAMS_MEMBER (_spoolss_DeleteMonitor, DeleteMonitor); 3487 break; 3488 3489 case 19: 3490 NDR_PARAMS_MEMBER (_spoolss_WritePrinter, WritePrinter); 3491 break; 3492 3493 case 18: 3494 NDR_PARAMS_MEMBER (_spoolss_StartPagePrinter, StartPagePrinter); 3495 break; 3496 3497 case 20: 3498 NDR_PARAMS_MEMBER (_spoolss_EndPagePrinter, EndPagePrinter); 3499 break; 3500 3501 case 29: 3502 NDR_PARAMS_MEMBER (_spoolss_ClosePrinter, ClosePrinter); 3503 break; 3504 3505 case 69: 3506 NDR_PARAMS_MEMBER (_spoolss_OpenPrinterEx, OpenPrinterEx); 3507 break; 3508 3509 case 24: 3510 NDR_PARAMS_MEMBER (_spoolss_AddJob, AddJob); 3511 break; 3512 3513 case 3: 3514 NDR_PARAMS_MEMBER (_spoolss_GetJob, GetJob); 3515 break; 3516 3517 case 25: 3518 NDR_PARAMS_MEMBER (_spoolss_ScheduleJob, ScheduleJob); 3519 break; 3520 3521 case 30: 3522 NDR_PARAMS_MEMBER (_spoolss_AddForm, AddForm); 3523 break; 3524 3525 case 31: 3526 NDR_PARAMS_MEMBER (_spoolss_DeleteForm, DeleteForm); 3527 break; 3528 3529 case 34: 3530 NDR_PARAMS_MEMBER (_spoolss_EnumForms, EnumForms); 3531 break; 3532 3533 case 35: 3534 NDR_PARAMS_MEMBER (_spoolss_EnumPorts, EnumPorts); 3535 break; 3536 3537 case 39: 3538 NDR_PARAMS_MEMBER (_spoolss_DeletePort, DeletePort); 3539 break; 3540 3541 case 61: 3542 NDR_PARAMS_MEMBER (_spoolss_AddPortEx, AddPortEx); 3543 break; 3544 3545 case 71: 3546 NDR_PARAMS_MEMBER (_spoolss_SetPort, SetPort); 3547 break; 3548 3549 case 67: 3550 NDR_PARAMS_MEMBER (_spoolss_RFNPCNEX, RFNPCNEX); 3551 break; 3552 3553 default: 3554 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 3555 return 0; 3556 break; 3557 } 3558 3559 3560 return 1; 3561 } 3562