/* parser auto-generated by pidl */ #include "includes.h" NTSTATUS ndr_push_spoolss_DeviceMode(struct ndr_push *ndr, int ndr_flags, struct spoolss_DeviceMode *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_nstring(ndr, NDR_SCALARS, &r->devicename)); NDR_CHECK(ndr_push_uint16(ndr, r->specversion)); NDR_CHECK(ndr_push_uint16(ndr, r->driverversion)); NDR_CHECK(ndr_push_uint16(ndr, r->size)); NDR_CHECK(ndr_push_uint16(ndr, r->driverextra)); NDR_CHECK(ndr_push_uint32(ndr, r->fields)); NDR_CHECK(ndr_push_uint16(ndr, r->orientation)); NDR_CHECK(ndr_push_uint16(ndr, r->papersize)); NDR_CHECK(ndr_push_uint16(ndr, r->paperlength)); NDR_CHECK(ndr_push_uint16(ndr, r->paperwidth)); NDR_CHECK(ndr_push_uint16(ndr, r->scale)); NDR_CHECK(ndr_push_uint16(ndr, r->copies)); NDR_CHECK(ndr_push_uint16(ndr, r->defaultsource)); NDR_CHECK(ndr_push_uint16(ndr, r->printquality)); NDR_CHECK(ndr_push_uint16(ndr, r->color)); NDR_CHECK(ndr_push_uint16(ndr, r->duplex)); NDR_CHECK(ndr_push_uint16(ndr, r->yresolution)); NDR_CHECK(ndr_push_uint16(ndr, r->ttoption)); NDR_CHECK(ndr_push_uint16(ndr, r->collate)); NDR_CHECK(ndr_push_nstring(ndr, NDR_SCALARS, &r->formname)); NDR_CHECK(ndr_push_uint16(ndr, r->logpixels)); NDR_CHECK(ndr_push_uint32(ndr, r->bitsperpel)); NDR_CHECK(ndr_push_uint32(ndr, r->pelswidth)); NDR_CHECK(ndr_push_uint32(ndr, r->pelsheight)); NDR_CHECK(ndr_push_uint32(ndr, r->displayflags)); NDR_CHECK(ndr_push_uint32(ndr, r->displayfrequency)); NDR_CHECK(ndr_push_uint32(ndr, r->icmmethod)); NDR_CHECK(ndr_push_uint32(ndr, r->icmintent)); NDR_CHECK(ndr_push_uint32(ndr, r->mediatype)); NDR_CHECK(ndr_push_uint32(ndr, r->dithertype)); NDR_CHECK(ndr_push_uint32(ndr, r->reserved1)); NDR_CHECK(ndr_push_uint32(ndr, r->reserved2)); NDR_CHECK(ndr_push_uint32(ndr, r->panningwidth)); NDR_CHECK(ndr_push_uint32(ndr, r->panningheight)); NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->private, r->driverextra)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_nstring(ndr, NDR_BUFFERS, &r->devicename)); NDR_CHECK(ndr_push_nstring(ndr, NDR_BUFFERS, &r->formname)); NDR_CHECK(ndr_push_array_uint8(ndr, NDR_BUFFERS, r->private, r->driverextra)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo1(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo1 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->flags)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->name, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->description, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->comment, (ndr_push_const_fn_t) ndr_push_nstring)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->name, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->description, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->comment, (ndr_push_const_fn_t) ndr_push_nstring)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo2(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo2 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->servername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->sharename, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->portname, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->drivername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->comment, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->location, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->devmode, (ndr_push_const_fn_t) ndr_push_spoolss_DeviceMode)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->sepfile, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->printprocessor, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->datatype, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->parameters, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->secdesc, (ndr_push_const_fn_t) ndr_push_security_descriptor)); NDR_CHECK(ndr_push_uint32(ndr, r->attributes)); NDR_CHECK(ndr_push_uint32(ndr, r->priority)); NDR_CHECK(ndr_push_uint32(ndr, r->defaultpriority)); NDR_CHECK(ndr_push_uint32(ndr, r->starttime)); NDR_CHECK(ndr_push_uint32(ndr, r->untiltime)); NDR_CHECK(ndr_push_uint32(ndr, r->status)); NDR_CHECK(ndr_push_uint32(ndr, r->cjobs)); NDR_CHECK(ndr_push_uint32(ndr, r->averageppm)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->servername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->sharename, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->portname, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->drivername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->comment, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->location, (ndr_push_const_fn_t) ndr_push_nstring)); if (r->devmode) { NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, r->devmode, (ndr_push_const_fn_t) ndr_push_spoolss_DeviceMode)); } NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->sepfile, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->printprocessor, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->datatype, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->parameters, (ndr_push_const_fn_t) ndr_push_nstring)); if (r->secdesc) { NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, r->secdesc, (ndr_push_const_fn_t) ndr_push_security_descriptor)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo3(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo3 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->flags)); NDR_CHECK(ndr_push_security_descriptor(ndr, NDR_SCALARS, &r->secdesc)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_security_descriptor(ndr, NDR_BUFFERS, &r->secdesc)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo4(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo4 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->servername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_uint32(ndr, r->attributes)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->servername, (ndr_push_const_fn_t) ndr_push_nstring)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo5(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo5 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->portname, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_uint32(ndr, r->attributes)); NDR_CHECK(ndr_push_uint32(ndr, r->device_not_selected_timeout)); NDR_CHECK(ndr_push_uint32(ndr, r->transmission_retry_timeout)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->printername, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->portname, (ndr_push_const_fn_t) ndr_push_nstring)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo6(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo6 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->unknown)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo7(struct ndr_push *ndr, int ndr_flags, struct spoolss_PrinterInfo7 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_relative(ndr, NDR_SCALARS, r->guid, (ndr_push_const_fn_t) ndr_push_nstring)); NDR_CHECK(ndr_push_uint32(ndr, r->action)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_push_relative(ndr, NDR_BUFFERS, &r->guid, (ndr_push_const_fn_t) ndr_push_nstring)); done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_PrinterInfo(struct ndr_push *ndr, int ndr_flags, uint16 level, union spoolss_PrinterInfo *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); switch (level) { case 1: NDR_CHECK(ndr_push_spoolss_PrinterInfo1(ndr, NDR_SCALARS, &r->info1)); break; case 2: NDR_CHECK(ndr_push_spoolss_PrinterInfo2(ndr, NDR_SCALARS, &r->info2)); break; case 3: NDR_CHECK(ndr_push_spoolss_PrinterInfo3(ndr, NDR_SCALARS, &r->info3)); break; case 4: NDR_CHECK(ndr_push_spoolss_PrinterInfo4(ndr, NDR_SCALARS, &r->info4)); break; case 5: NDR_CHECK(ndr_push_spoolss_PrinterInfo5(ndr, NDR_SCALARS, &r->info5)); break; case 6: NDR_CHECK(ndr_push_spoolss_PrinterInfo6(ndr, NDR_SCALARS, &r->info6)); break; case 7: NDR_CHECK(ndr_push_spoolss_PrinterInfo7(ndr, NDR_SCALARS, &r->info7)); break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (level) { case 1: NDR_CHECK(ndr_push_spoolss_PrinterInfo1(ndr, ndr_flags, &r->info1)); break; case 2: NDR_CHECK(ndr_push_spoolss_PrinterInfo2(ndr, ndr_flags, &r->info2)); break; case 3: NDR_CHECK(ndr_push_spoolss_PrinterInfo3(ndr, ndr_flags, &r->info3)); break; case 4: NDR_CHECK(ndr_push_spoolss_PrinterInfo4(ndr, ndr_flags, &r->info4)); break; case 5: NDR_CHECK(ndr_push_spoolss_PrinterInfo5(ndr, ndr_flags, &r->info5)); break; case 6: NDR_CHECK(ndr_push_spoolss_PrinterInfo6(ndr, ndr_flags, &r->info6)); break; case 7: NDR_CHECK(ndr_push_spoolss_PrinterInfo7(ndr, ndr_flags, &r->info7)); break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_EnumPrinters(struct ndr_push *ndr, struct spoolss_EnumPrinters *r) { NDR_CHECK(ndr_push_uint32(ndr, r->in.flags)); NDR_CHECK(ndr_push_ptr(ndr, r->in.server)); if (r->in.server) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server)); } NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_ptr(ndr, r->in.buffer)); if (r->in.buffer) { NDR_CHECK(ndr_push_DATA_BLOB(ndr, *r->in.buffer)); } NDR_CHECK(ndr_push_uint32(ndr, *r->in.buf_size)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_OpenPrinter(struct ndr_push *ndr, struct spoolss_OpenPrinter *r) { NDR_CHECK(ndr_push_ptr(ndr, r->in.server)); if (r->in.server) { NDR_CHECK(ndr_push_unistr(ndr, r->in.server)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.printer)); if (r->in.printer) { NDR_CHECK(ndr_push_unistr(ndr, r->in.printer)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.buffer)); if (r->in.buffer) { NDR_CHECK(ndr_push_DATA_BLOB(ndr, *r->in.buffer)); } NDR_CHECK(ndr_push_uint32(ndr, r->in.access_mask)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_02(struct ndr_push *ndr, struct spoolss_02 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_03(struct ndr_push *ndr, struct spoolss_03 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_EnumJobs(struct ndr_push *ndr, struct spoolss_EnumJobs *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); NDR_CHECK(ndr_push_uint32(ndr, r->in.firstjob)); NDR_CHECK(ndr_push_uint32(ndr, r->in.numjobs)); NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_ptr(ndr, r->in.buffer)); if (r->in.buffer) { NDR_CHECK(ndr_push_DATA_BLOB(ndr, *r->in.buffer)); } NDR_CHECK(ndr_push_uint32(ndr, *r->in.buf_size)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_05(struct ndr_push *ndr, struct spoolss_05 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_06(struct ndr_push *ndr, struct spoolss_06 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_07(struct ndr_push *ndr, struct spoolss_07 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_GetPrinter(struct ndr_push *ndr, struct spoolss_GetPrinter *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_ptr(ndr, r->in.buffer)); if (r->in.buffer) { NDR_CHECK(ndr_push_DATA_BLOB(ndr, *r->in.buffer)); } NDR_CHECK(ndr_push_uint32(ndr, *r->in.buf_size)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_09(struct ndr_push *ndr, struct spoolss_09 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0a(struct ndr_push *ndr, struct spoolss_0a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0b(struct ndr_push *ndr, struct spoolss_0b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0c(struct ndr_push *ndr, struct spoolss_0c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0d(struct ndr_push *ndr, struct spoolss_0d *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0e(struct ndr_push *ndr, struct spoolss_0e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_0f(struct ndr_push *ndr, struct spoolss_0f *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_10(struct ndr_push *ndr, struct spoolss_10 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_11(struct ndr_push *ndr, struct spoolss_11 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_StartPagePrinter(struct ndr_push *ndr, struct spoolss_StartPagePrinter *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_13(struct ndr_push *ndr, struct spoolss_13 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_EndPagePrinter(struct ndr_push *ndr, struct spoolss_EndPagePrinter *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_15(struct ndr_push *ndr, struct spoolss_15 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_16(struct ndr_push *ndr, struct spoolss_16 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_EndDocPrinter(struct ndr_push *ndr, struct spoolss_EndDocPrinter *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_18(struct ndr_push *ndr, struct spoolss_18 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_19(struct ndr_push *ndr, struct spoolss_19 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_1a(struct ndr_push *ndr, struct spoolss_1a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_1b(struct ndr_push *ndr, struct spoolss_1b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_1c(struct ndr_push *ndr, struct spoolss_1c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_ClosePrinter(struct ndr_push *ndr, struct spoolss_ClosePrinter *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_1e(struct ndr_push *ndr, struct spoolss_1e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_1f(struct ndr_push *ndr, struct spoolss_1f *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_20(struct ndr_push *ndr, struct spoolss_20 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_21(struct ndr_push *ndr, struct spoolss_21 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_22(struct ndr_push *ndr, struct spoolss_22 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_23(struct ndr_push *ndr, struct spoolss_23 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_24(struct ndr_push *ndr, struct spoolss_24 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_25(struct ndr_push *ndr, struct spoolss_25 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_26(struct ndr_push *ndr, struct spoolss_26 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_27(struct ndr_push *ndr, struct spoolss_27 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_28(struct ndr_push *ndr, struct spoolss_28 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_29(struct ndr_push *ndr, struct spoolss_29 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2a(struct ndr_push *ndr, struct spoolss_2a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2b(struct ndr_push *ndr, struct spoolss_2b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2c(struct ndr_push *ndr, struct spoolss_2c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2d(struct ndr_push *ndr, struct spoolss_2d *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2e(struct ndr_push *ndr, struct spoolss_2e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_2f(struct ndr_push *ndr, struct spoolss_2f *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_30(struct ndr_push *ndr, struct spoolss_30 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_31(struct ndr_push *ndr, struct spoolss_31 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_32(struct ndr_push *ndr, struct spoolss_32 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_33(struct ndr_push *ndr, struct spoolss_33 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_34(struct ndr_push *ndr, struct spoolss_34 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_35(struct ndr_push *ndr, struct spoolss_35 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_36(struct ndr_push *ndr, struct spoolss_36 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_37(struct ndr_push *ndr, struct spoolss_37 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_38(struct ndr_push *ndr, struct spoolss_38 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_39(struct ndr_push *ndr, struct spoolss_39 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3a(struct ndr_push *ndr, struct spoolss_3a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3b(struct ndr_push *ndr, struct spoolss_3b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3c(struct ndr_push *ndr, struct spoolss_3c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3d(struct ndr_push *ndr, struct spoolss_3d *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3e(struct ndr_push *ndr, struct spoolss_3e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_3f(struct ndr_push *ndr, struct spoolss_3f *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_40(struct ndr_push *ndr, struct spoolss_40 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_41(struct ndr_push *ndr, struct spoolss_41 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_42(struct ndr_push *ndr, struct spoolss_42 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_43(struct ndr_push *ndr, struct spoolss_43 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_44(struct ndr_push *ndr, struct spoolss_44 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_Devmode(struct ndr_push *ndr, int ndr_flags, struct spoolss_Devmode *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->foo)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_DevmodeContainer(struct ndr_push *ndr, int ndr_flags, struct spoolss_DevmodeContainer *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->size)); NDR_CHECK(ndr_push_ptr(ndr, r->devmode)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->devmode) { NDR_CHECK(ndr_push_spoolss_Devmode(ndr, NDR_SCALARS|NDR_BUFFERS, r->devmode)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_UserLevel1(struct ndr_push *ndr, int ndr_flags, struct spoolss_UserLevel1 *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_uint32(ndr, r->size)); NDR_CHECK(ndr_push_ptr(ndr, r->client)); NDR_CHECK(ndr_push_ptr(ndr, r->user)); NDR_CHECK(ndr_push_uint32(ndr, r->build)); NDR_CHECK(ndr_push_uint32(ndr, r->major)); NDR_CHECK(ndr_push_uint32(ndr, r->minor)); NDR_CHECK(ndr_push_uint32(ndr, r->processor)); ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; if (r->client) { NDR_CHECK(ndr_push_unistr(ndr, r->client)); } if (r->user) { NDR_CHECK(ndr_push_unistr(ndr, r->user)); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_UserLevel(struct ndr_push *ndr, int ndr_flags, uint16 level, union spoolss_UserLevel *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_push_struct_start(ndr)); switch (level) { case 1: NDR_CHECK(ndr_push_ptr(ndr, r->level1)); break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } ndr_push_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (level) { case 1: if (r->level1) { NDR_CHECK(ndr_push_spoolss_UserLevel1(ndr, NDR_SCALARS|NDR_BUFFERS, r->level1)); } break; default: return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } done: return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_OpenPrinterEx(struct ndr_push *ndr, struct spoolss_OpenPrinterEx *r) { NDR_CHECK(ndr_push_ptr(ndr, r->in.printername)); if (r->in.printername) { NDR_CHECK(ndr_push_unistr(ndr, r->in.printername)); } NDR_CHECK(ndr_push_ptr(ndr, r->in.datatype)); if (r->in.datatype) { NDR_CHECK(ndr_push_unistr(ndr, r->in.datatype)); } NDR_CHECK(ndr_push_spoolss_DevmodeContainer(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.devmode_ctr)); NDR_CHECK(ndr_push_uint32(ndr, r->in.access_required)); NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_uint32(ndr, r->in.level)); NDR_CHECK(ndr_push_spoolss_UserLevel(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.level, &r->in.userlevel)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_46(struct ndr_push *ndr, struct spoolss_46 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_47(struct ndr_push *ndr, struct spoolss_47 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_EnumPrinterData(struct ndr_push *ndr, struct spoolss_EnumPrinterData *r) { NDR_CHECK(ndr_push_policy_handle(ndr, r->in.handle)); NDR_CHECK(ndr_push_uint32(ndr, r->in.enum_index)); NDR_CHECK(ndr_push_uint32(ndr, r->in.value_offered)); NDR_CHECK(ndr_push_uint32(ndr, *r->in.data_size)); return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_49(struct ndr_push *ndr, struct spoolss_49 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4a(struct ndr_push *ndr, struct spoolss_4a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4b(struct ndr_push *ndr, struct spoolss_4b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4c(struct ndr_push *ndr, struct spoolss_4c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4d(struct ndr_push *ndr, struct spoolss_4d *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4e(struct ndr_push *ndr, struct spoolss_4e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_4f(struct ndr_push *ndr, struct spoolss_4f *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_50(struct ndr_push *ndr, struct spoolss_50 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_51(struct ndr_push *ndr, struct spoolss_51 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_52(struct ndr_push *ndr, struct spoolss_52 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_53(struct ndr_push *ndr, struct spoolss_53 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_54(struct ndr_push *ndr, struct spoolss_54 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_55(struct ndr_push *ndr, struct spoolss_55 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_56(struct ndr_push *ndr, struct spoolss_56 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_57(struct ndr_push *ndr, struct spoolss_57 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_58(struct ndr_push *ndr, struct spoolss_58 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_59(struct ndr_push *ndr, struct spoolss_59 *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5a(struct ndr_push *ndr, struct spoolss_5a *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5b(struct ndr_push *ndr, struct spoolss_5b *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5c(struct ndr_push *ndr, struct spoolss_5c *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5d(struct ndr_push *ndr, struct spoolss_5d *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5e(struct ndr_push *ndr, struct spoolss_5e *r) { return NT_STATUS_OK; } NTSTATUS ndr_push_spoolss_5f(struct ndr_push *ndr, struct spoolss_5f *r) { return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_DeviceMode(struct ndr_pull *ndr, int ndr_flags, struct spoolss_DeviceMode *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_nstring(ndr, NDR_SCALARS, &r->devicename)); NDR_CHECK(ndr_pull_uint16(ndr, &r->specversion)); NDR_CHECK(ndr_pull_uint16(ndr, &r->driverversion)); NDR_CHECK(ndr_pull_uint16(ndr, &r->size)); NDR_CHECK(ndr_pull_uint16(ndr, &r->driverextra)); NDR_CHECK(ndr_pull_uint32(ndr, &r->fields)); NDR_CHECK(ndr_pull_uint16(ndr, &r->orientation)); NDR_CHECK(ndr_pull_uint16(ndr, &r->papersize)); NDR_CHECK(ndr_pull_uint16(ndr, &r->paperlength)); NDR_CHECK(ndr_pull_uint16(ndr, &r->paperwidth)); NDR_CHECK(ndr_pull_uint16(ndr, &r->scale)); NDR_CHECK(ndr_pull_uint16(ndr, &r->copies)); NDR_CHECK(ndr_pull_uint16(ndr, &r->defaultsource)); NDR_CHECK(ndr_pull_uint16(ndr, &r->printquality)); NDR_CHECK(ndr_pull_uint16(ndr, &r->color)); NDR_CHECK(ndr_pull_uint16(ndr, &r->duplex)); NDR_CHECK(ndr_pull_uint16(ndr, &r->yresolution)); NDR_CHECK(ndr_pull_uint16(ndr, &r->ttoption)); NDR_CHECK(ndr_pull_uint16(ndr, &r->collate)); NDR_CHECK(ndr_pull_nstring(ndr, NDR_SCALARS, &r->formname)); NDR_CHECK(ndr_pull_uint16(ndr, &r->logpixels)); NDR_CHECK(ndr_pull_uint32(ndr, &r->bitsperpel)); NDR_CHECK(ndr_pull_uint32(ndr, &r->pelswidth)); NDR_CHECK(ndr_pull_uint32(ndr, &r->pelsheight)); NDR_CHECK(ndr_pull_uint32(ndr, &r->displayflags)); NDR_CHECK(ndr_pull_uint32(ndr, &r->displayfrequency)); NDR_CHECK(ndr_pull_uint32(ndr, &r->icmmethod)); NDR_CHECK(ndr_pull_uint32(ndr, &r->icmintent)); NDR_CHECK(ndr_pull_uint32(ndr, &r->mediatype)); NDR_CHECK(ndr_pull_uint32(ndr, &r->dithertype)); NDR_CHECK(ndr_pull_uint32(ndr, &r->reserved1)); NDR_CHECK(ndr_pull_uint32(ndr, &r->reserved2)); NDR_CHECK(ndr_pull_uint32(ndr, &r->panningwidth)); NDR_CHECK(ndr_pull_uint32(ndr, &r->panningheight)); NDR_ALLOC_N_SIZE(ndr, r->private, r->driverextra, sizeof(r->private[0])); NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->private, r->driverextra)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_pull_nstring(ndr, NDR_BUFFERS, &r->devicename)); NDR_CHECK(ndr_pull_nstring(ndr, NDR_BUFFERS, &r->formname)); NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_BUFFERS, r->private, r->driverextra)); done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo1(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo1 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->flags)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->name, sizeof(*r->name), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->description, sizeof(*r->description), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->comment, sizeof(*r->comment), (ndr_pull_flags_fn_t)ndr_pull_nstring)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo2(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo2 *r) { uint32 _ptr_devmode; uint32 _ptr_secdesc; NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->servername, sizeof(*r->servername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->printername, sizeof(*r->printername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->sharename, sizeof(*r->sharename), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->portname, sizeof(*r->portname), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->drivername, sizeof(*r->drivername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->comment, sizeof(*r->comment), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->location, sizeof(*r->location), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->devmode, sizeof(*r->devmode), (ndr_pull_flags_fn_t)ndr_pull_spoolss_DeviceMode)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->sepfile, sizeof(*r->sepfile), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->printprocessor, sizeof(*r->printprocessor), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->datatype, sizeof(*r->datatype), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->parameters, sizeof(*r->parameters), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->secdesc, sizeof(*r->secdesc), (ndr_pull_flags_fn_t)ndr_pull_security_descriptor)); NDR_CHECK(ndr_pull_uint32(ndr, &r->attributes)); NDR_CHECK(ndr_pull_uint32(ndr, &r->priority)); NDR_CHECK(ndr_pull_uint32(ndr, &r->defaultpriority)); NDR_CHECK(ndr_pull_uint32(ndr, &r->starttime)); NDR_CHECK(ndr_pull_uint32(ndr, &r->untiltime)); NDR_CHECK(ndr_pull_uint32(ndr, &r->status)); NDR_CHECK(ndr_pull_uint32(ndr, &r->cjobs)); NDR_CHECK(ndr_pull_uint32(ndr, &r->averageppm)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo3(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo3 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->flags)); NDR_CHECK(ndr_pull_security_descriptor(ndr, NDR_SCALARS, &r->secdesc)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; NDR_CHECK(ndr_pull_security_descriptor(ndr, NDR_BUFFERS, &r->secdesc)); done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo4(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo4 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->printername, sizeof(*r->printername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->servername, sizeof(*r->servername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_uint32(ndr, &r->attributes)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo5(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo5 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->printername, sizeof(*r->printername), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->portname, sizeof(*r->portname), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_uint32(ndr, &r->attributes)); NDR_CHECK(ndr_pull_uint32(ndr, &r->device_not_selected_timeout)); NDR_CHECK(ndr_pull_uint32(ndr, &r->transmission_retry_timeout)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo6(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo6 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, &r->unknown)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo7(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo7 *r) { NDR_CHECK(ndr_pull_struct_start(ndr)); if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_relative(ndr, (const void **)&r->guid, sizeof(*r->guid), (ndr_pull_flags_fn_t)ndr_pull_nstring)); NDR_CHECK(ndr_pull_uint32(ndr, &r->action)); ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_PrinterInfo(struct ndr_pull *ndr, int ndr_flags, uint16 level, union spoolss_PrinterInfo *r) { if (!(ndr_flags & NDR_SCALARS)) goto buffers; NDR_CHECK(ndr_pull_struct_start(ndr)); switch (level) { case 1: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo1(ndr, NDR_SCALARS, &r->info1)); break; } case 2: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo2(ndr, NDR_SCALARS, &r->info2)); break; } case 3: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo3(ndr, NDR_SCALARS, &r->info3)); break; } case 4: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo4(ndr, NDR_SCALARS, &r->info4)); break; } case 5: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo5(ndr, NDR_SCALARS, &r->info5)); break; } case 6: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo6(ndr, NDR_SCALARS, &r->info6)); break; } case 7: { NDR_CHECK(ndr_pull_spoolss_PrinterInfo7(ndr, NDR_SCALARS, &r->info7)); break; } default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } ndr_pull_struct_end(ndr); buffers: if (!(ndr_flags & NDR_BUFFERS)) goto done; switch (level) { case 1: NDR_CHECK(ndr_pull_spoolss_PrinterInfo1(ndr, NDR_BUFFERS, &r->info1)); break; case 2: NDR_CHECK(ndr_pull_spoolss_PrinterInfo2(ndr, NDR_BUFFERS, &r->info2)); break; case 3: NDR_CHECK(ndr_pull_spoolss_PrinterInfo3(ndr, NDR_BUFFERS, &r->info3)); break; case 4: NDR_CHECK(ndr_pull_spoolss_PrinterInfo4(ndr, NDR_BUFFERS, &r->info4)); break; case 5: NDR_CHECK(ndr_pull_spoolss_PrinterInfo5(ndr, NDR_BUFFERS, &r->info5)); break; case 6: NDR_CHECK(ndr_pull_spoolss_PrinterInfo6(ndr, NDR_BUFFERS, &r->info6)); break; case 7: NDR_CHECK(ndr_pull_spoolss_PrinterInfo7(ndr, NDR_BUFFERS, &r->info7)); break; default: return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level); } done: return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_EnumPrinters(struct ndr_pull *ndr, struct spoolss_EnumPrinters *r) { uint32 _ptr_buffer; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_buffer)); if (_ptr_buffer) { NDR_ALLOC(ndr, r->out.buffer); } else { r->out.buffer = NULL; } if (r->out.buffer) { NDR_CHECK(ndr_pull_DATA_BLOB(ndr, r->out.buffer)); } NDR_CHECK(ndr_pull_uint32(ndr, r->out.buf_size)); NDR_CHECK(ndr_pull_uint32(ndr, &r->out.count)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_OpenPrinter(struct ndr_pull *ndr, struct spoolss_OpenPrinter *r) { NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_02(struct ndr_pull *ndr, struct spoolss_02 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_03(struct ndr_pull *ndr, struct spoolss_03 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_EnumJobs(struct ndr_pull *ndr, struct spoolss_EnumJobs *r) { uint32 _ptr_buffer; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_buffer)); if (_ptr_buffer) { NDR_ALLOC(ndr, r->out.buffer); } else { r->out.buffer = NULL; } if (r->out.buffer) { NDR_CHECK(ndr_pull_DATA_BLOB(ndr, r->out.buffer)); } NDR_CHECK(ndr_pull_uint32(ndr, r->out.buf_size)); NDR_CHECK(ndr_pull_uint32(ndr, &r->out.numjobs)); NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_05(struct ndr_pull *ndr, struct spoolss_05 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_06(struct ndr_pull *ndr, struct spoolss_06 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_07(struct ndr_pull *ndr, struct spoolss_07 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_GetPrinter(struct ndr_pull *ndr, struct spoolss_GetPrinter *r) { uint32 _ptr_info; NDR_CHECK(ndr_pull_uint32(ndr, &_ptr_info)); if (_ptr_info) { NDR_ALLOC(ndr, r->out.info); } else { r->out.info = NULL; } if (r->out.info) { NDR_CHECK(ndr_pull_subcontext_union_fn(ndr, r->in.level, r->out.info, (ndr_pull_union_fn_t) ndr_pull_spoolss_PrinterInfo)); } NDR_CHECK(ndr_pull_uint32(ndr, r->out.buf_size)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_09(struct ndr_pull *ndr, struct spoolss_09 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0a(struct ndr_pull *ndr, struct spoolss_0a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0b(struct ndr_pull *ndr, struct spoolss_0b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0c(struct ndr_pull *ndr, struct spoolss_0c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0d(struct ndr_pull *ndr, struct spoolss_0d *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0e(struct ndr_pull *ndr, struct spoolss_0e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_0f(struct ndr_pull *ndr, struct spoolss_0f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_10(struct ndr_pull *ndr, struct spoolss_10 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_11(struct ndr_pull *ndr, struct spoolss_11 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_StartPagePrinter(struct ndr_pull *ndr, struct spoolss_StartPagePrinter *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_13(struct ndr_pull *ndr, struct spoolss_13 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_EndPagePrinter(struct ndr_pull *ndr, struct spoolss_EndPagePrinter *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_15(struct ndr_pull *ndr, struct spoolss_15 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_16(struct ndr_pull *ndr, struct spoolss_16 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_EndDocPrinter(struct ndr_pull *ndr, struct spoolss_EndDocPrinter *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_18(struct ndr_pull *ndr, struct spoolss_18 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_19(struct ndr_pull *ndr, struct spoolss_19 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_1a(struct ndr_pull *ndr, struct spoolss_1a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_1b(struct ndr_pull *ndr, struct spoolss_1b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_1c(struct ndr_pull *ndr, struct spoolss_1c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_ClosePrinter(struct ndr_pull *ndr, struct spoolss_ClosePrinter *r) { NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_1e(struct ndr_pull *ndr, struct spoolss_1e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_1f(struct ndr_pull *ndr, struct spoolss_1f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_20(struct ndr_pull *ndr, struct spoolss_20 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_21(struct ndr_pull *ndr, struct spoolss_21 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_22(struct ndr_pull *ndr, struct spoolss_22 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_23(struct ndr_pull *ndr, struct spoolss_23 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_24(struct ndr_pull *ndr, struct spoolss_24 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_25(struct ndr_pull *ndr, struct spoolss_25 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_26(struct ndr_pull *ndr, struct spoolss_26 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_27(struct ndr_pull *ndr, struct spoolss_27 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_28(struct ndr_pull *ndr, struct spoolss_28 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_29(struct ndr_pull *ndr, struct spoolss_29 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2a(struct ndr_pull *ndr, struct spoolss_2a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2b(struct ndr_pull *ndr, struct spoolss_2b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2c(struct ndr_pull *ndr, struct spoolss_2c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2d(struct ndr_pull *ndr, struct spoolss_2d *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2e(struct ndr_pull *ndr, struct spoolss_2e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_2f(struct ndr_pull *ndr, struct spoolss_2f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_30(struct ndr_pull *ndr, struct spoolss_30 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_31(struct ndr_pull *ndr, struct spoolss_31 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_32(struct ndr_pull *ndr, struct spoolss_32 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_33(struct ndr_pull *ndr, struct spoolss_33 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_34(struct ndr_pull *ndr, struct spoolss_34 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_35(struct ndr_pull *ndr, struct spoolss_35 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_36(struct ndr_pull *ndr, struct spoolss_36 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_37(struct ndr_pull *ndr, struct spoolss_37 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_38(struct ndr_pull *ndr, struct spoolss_38 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_39(struct ndr_pull *ndr, struct spoolss_39 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3a(struct ndr_pull *ndr, struct spoolss_3a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3b(struct ndr_pull *ndr, struct spoolss_3b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3c(struct ndr_pull *ndr, struct spoolss_3c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3d(struct ndr_pull *ndr, struct spoolss_3d *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3e(struct ndr_pull *ndr, struct spoolss_3e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_3f(struct ndr_pull *ndr, struct spoolss_3f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_40(struct ndr_pull *ndr, struct spoolss_40 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_41(struct ndr_pull *ndr, struct spoolss_41 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_42(struct ndr_pull *ndr, struct spoolss_42 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_43(struct ndr_pull *ndr, struct spoolss_43 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_44(struct ndr_pull *ndr, struct spoolss_44 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_OpenPrinterEx(struct ndr_pull *ndr, struct spoolss_OpenPrinterEx *r) { NDR_CHECK(ndr_pull_policy_handle(ndr, r->out.handle)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_46(struct ndr_pull *ndr, struct spoolss_46 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_47(struct ndr_pull *ndr, struct spoolss_47 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_EnumPrinterData(struct ndr_pull *ndr, struct spoolss_EnumPrinterData *r) { NDR_CHECK(ndr_pull_lstring(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.value)); NDR_CHECK(ndr_pull_uint32(ndr, &r->out.value_needed)); NDR_CHECK(ndr_pull_uint32(ndr, &r->out.printerdata_type)); NDR_CHECK(ndr_pull_DATA_BLOB(ndr, &r->out.data)); NDR_CHECK(ndr_pull_uint32(ndr, r->out.data_size)); NDR_CHECK(ndr_pull_WERROR(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_49(struct ndr_pull *ndr, struct spoolss_49 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4a(struct ndr_pull *ndr, struct spoolss_4a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4b(struct ndr_pull *ndr, struct spoolss_4b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4c(struct ndr_pull *ndr, struct spoolss_4c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4d(struct ndr_pull *ndr, struct spoolss_4d *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4e(struct ndr_pull *ndr, struct spoolss_4e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_4f(struct ndr_pull *ndr, struct spoolss_4f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_50(struct ndr_pull *ndr, struct spoolss_50 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_51(struct ndr_pull *ndr, struct spoolss_51 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_52(struct ndr_pull *ndr, struct spoolss_52 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_53(struct ndr_pull *ndr, struct spoolss_53 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_54(struct ndr_pull *ndr, struct spoolss_54 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_55(struct ndr_pull *ndr, struct spoolss_55 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_56(struct ndr_pull *ndr, struct spoolss_56 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_57(struct ndr_pull *ndr, struct spoolss_57 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_58(struct ndr_pull *ndr, struct spoolss_58 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_59(struct ndr_pull *ndr, struct spoolss_59 *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5a(struct ndr_pull *ndr, struct spoolss_5a *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5b(struct ndr_pull *ndr, struct spoolss_5b *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5c(struct ndr_pull *ndr, struct spoolss_5c *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5d(struct ndr_pull *ndr, struct spoolss_5d *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5e(struct ndr_pull *ndr, struct spoolss_5e *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } NTSTATUS ndr_pull_spoolss_5f(struct ndr_pull *ndr, struct spoolss_5f *r) { NDR_CHECK(ndr_pull_NTSTATUS(ndr, &r->out.result)); return NT_STATUS_OK; } void ndr_print_spoolss_DeviceMode(struct ndr_print *ndr, const char *name, struct spoolss_DeviceMode *r) { ndr_print_struct(ndr, name, "spoolss_DeviceMode"); ndr->depth++; ndr_print_nstring(ndr, "devicename", &r->devicename); ndr_print_uint16(ndr, "specversion", r->specversion); ndr_print_uint16(ndr, "driverversion", r->driverversion); ndr_print_uint16(ndr, "size", r->size); ndr_print_uint16(ndr, "driverextra", r->driverextra); ndr_print_uint32(ndr, "fields", r->fields); ndr_print_uint16(ndr, "orientation", r->orientation); ndr_print_uint16(ndr, "papersize", r->papersize); ndr_print_uint16(ndr, "paperlength", r->paperlength); ndr_print_uint16(ndr, "paperwidth", r->paperwidth); ndr_print_uint16(ndr, "scale", r->scale); ndr_print_uint16(ndr, "copies", r->copies); ndr_print_uint16(ndr, "defaultsource", r->defaultsource); ndr_print_uint16(ndr, "printquality", r->printquality); ndr_print_uint16(ndr, "color", r->color); ndr_print_uint16(ndr, "duplex", r->duplex); ndr_print_uint16(ndr, "yresolution", r->yresolution); ndr_print_uint16(ndr, "ttoption", r->ttoption); ndr_print_uint16(ndr, "collate", r->collate); ndr_print_nstring(ndr, "formname", &r->formname); ndr_print_uint16(ndr, "logpixels", r->logpixels); ndr_print_uint32(ndr, "bitsperpel", r->bitsperpel); ndr_print_uint32(ndr, "pelswidth", r->pelswidth); ndr_print_uint32(ndr, "pelsheight", r->pelsheight); ndr_print_uint32(ndr, "displayflags", r->displayflags); ndr_print_uint32(ndr, "displayfrequency", r->displayfrequency); ndr_print_uint32(ndr, "icmmethod", r->icmmethod); ndr_print_uint32(ndr, "icmintent", r->icmintent); ndr_print_uint32(ndr, "mediatype", r->mediatype); ndr_print_uint32(ndr, "dithertype", r->dithertype); ndr_print_uint32(ndr, "reserved1", r->reserved1); ndr_print_uint32(ndr, "reserved2", r->reserved2); ndr_print_uint32(ndr, "panningwidth", r->panningwidth); ndr_print_uint32(ndr, "panningheight", r->panningheight); ndr_print_ptr(ndr, "private", r->private); ndr->depth++; ndr_print_array_uint8(ndr, "private", r->private, r->driverextra); ndr->depth--; ndr->depth--; } void ndr_print_spoolss_PrinterInfo1(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo1 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo1"); ndr->depth++; ndr_print_uint32(ndr, "flags", r->flags); ndr_print_nstring(ndr, "name", &r->name); ndr_print_nstring(ndr, "description", &r->description); ndr_print_nstring(ndr, "comment", &r->comment); ndr->depth--; } void ndr_print_spoolss_PrinterInfo2(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo2 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo2"); ndr->depth++; ndr_print_nstring(ndr, "servername", &r->servername); ndr_print_nstring(ndr, "printername", &r->printername); ndr_print_nstring(ndr, "sharename", &r->sharename); ndr_print_nstring(ndr, "portname", &r->portname); ndr_print_nstring(ndr, "drivername", &r->drivername); ndr_print_nstring(ndr, "comment", &r->comment); ndr_print_nstring(ndr, "location", &r->location); ndr_print_ptr(ndr, "devmode", r->devmode); ndr->depth++; if (r->devmode) { ndr_print_spoolss_DeviceMode(ndr, "devmode", r->devmode); } ndr->depth--; ndr_print_nstring(ndr, "sepfile", &r->sepfile); ndr_print_nstring(ndr, "printprocessor", &r->printprocessor); ndr_print_nstring(ndr, "datatype", &r->datatype); ndr_print_nstring(ndr, "parameters", &r->parameters); ndr_print_ptr(ndr, "secdesc", r->secdesc); ndr->depth++; if (r->secdesc) { ndr_print_security_descriptor(ndr, "secdesc", r->secdesc); } ndr->depth--; ndr_print_uint32(ndr, "attributes", r->attributes); ndr_print_uint32(ndr, "priority", r->priority); ndr_print_uint32(ndr, "defaultpriority", r->defaultpriority); ndr_print_uint32(ndr, "starttime", r->starttime); ndr_print_uint32(ndr, "untiltime", r->untiltime); ndr_print_uint32(ndr, "status", r->status); ndr_print_uint32(ndr, "cjobs", r->cjobs); ndr_print_uint32(ndr, "averageppm", r->averageppm); ndr->depth--; } void ndr_print_spoolss_PrinterInfo3(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo3 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo3"); ndr->depth++; ndr_print_uint32(ndr, "flags", r->flags); ndr_print_security_descriptor(ndr, "secdesc", &r->secdesc); ndr->depth--; } void ndr_print_spoolss_PrinterInfo4(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo4 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo4"); ndr->depth++; ndr_print_nstring(ndr, "printername", &r->printername); ndr_print_nstring(ndr, "servername", &r->servername); ndr_print_uint32(ndr, "attributes", r->attributes); ndr->depth--; } void ndr_print_spoolss_PrinterInfo5(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo5 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo5"); ndr->depth++; ndr_print_nstring(ndr, "printername", &r->printername); ndr_print_nstring(ndr, "portname", &r->portname); ndr_print_uint32(ndr, "attributes", r->attributes); ndr_print_uint32(ndr, "device_not_selected_timeout", r->device_not_selected_timeout); ndr_print_uint32(ndr, "transmission_retry_timeout", r->transmission_retry_timeout); ndr->depth--; } void ndr_print_spoolss_PrinterInfo6(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo6 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo6"); ndr->depth++; ndr_print_uint32(ndr, "unknown", r->unknown); ndr->depth--; } void ndr_print_spoolss_PrinterInfo7(struct ndr_print *ndr, const char *name, struct spoolss_PrinterInfo7 *r) { ndr_print_struct(ndr, name, "spoolss_PrinterInfo7"); ndr->depth++; ndr_print_nstring(ndr, "guid", &r->guid); ndr_print_uint32(ndr, "action", r->action); ndr->depth--; } void ndr_print_spoolss_PrinterInfo(struct ndr_print *ndr, const char *name, uint16 level, union spoolss_PrinterInfo *r) { ndr_print_union(ndr, name, level, "spoolss_PrinterInfo"); switch (level) { case 1: ndr_print_spoolss_PrinterInfo1(ndr, "info1", &r->info1); break; case 2: ndr_print_spoolss_PrinterInfo2(ndr, "info2", &r->info2); break; case 3: ndr_print_spoolss_PrinterInfo3(ndr, "info3", &r->info3); break; case 4: ndr_print_spoolss_PrinterInfo4(ndr, "info4", &r->info4); break; case 5: ndr_print_spoolss_PrinterInfo5(ndr, "info5", &r->info5); break; case 6: ndr_print_spoolss_PrinterInfo6(ndr, "info6", &r->info6); break; case 7: ndr_print_spoolss_PrinterInfo7(ndr, "info7", &r->info7); break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_spoolss_EnumPrinters(struct ndr_print *ndr, const char *name, int flags, struct spoolss_EnumPrinters *r) { ndr_print_struct(ndr, name, "spoolss_EnumPrinters"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_EnumPrinters"); ndr->depth++; ndr_print_uint32(ndr, "flags", r->in.flags); ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; if (r->in.server) { ndr_print_unistr(ndr, "server", r->in.server); } ndr->depth--; ndr_print_uint32(ndr, "level", r->in.level); ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; if (r->in.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->in.buffer); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->in.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->in.buf_size); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_EnumPrinters"); ndr->depth++; ndr_print_ptr(ndr, "buffer", r->out.buffer); ndr->depth++; if (r->out.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->out.buffer); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->out.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->out.buf_size); ndr->depth--; ndr_print_uint32(ndr, "count", r->out.count); ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_OpenPrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_OpenPrinter *r) { ndr_print_struct(ndr, name, "spoolss_OpenPrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_OpenPrinter"); ndr->depth++; ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; if (r->in.server) { ndr_print_unistr(ndr, "server", r->in.server); } ndr->depth--; ndr_print_ptr(ndr, "printer", r->in.printer); ndr->depth++; if (r->in.printer) { ndr_print_unistr(ndr, "printer", r->in.printer); } ndr->depth--; ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; if (r->in.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->in.buffer); } ndr->depth--; ndr_print_uint32(ndr, "access_mask", r->in.access_mask); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_OpenPrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->out.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->out.handle); ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_02(struct ndr_print *ndr, const char *name, int flags, struct spoolss_02 *r) { ndr_print_struct(ndr, name, "spoolss_02"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_02"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_02"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_03(struct ndr_print *ndr, const char *name, int flags, struct spoolss_03 *r) { ndr_print_struct(ndr, name, "spoolss_03"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_03"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_03"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_EnumJobs(struct ndr_print *ndr, const char *name, int flags, struct spoolss_EnumJobs *r) { ndr_print_struct(ndr, name, "spoolss_EnumJobs"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_EnumJobs"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr_print_uint32(ndr, "firstjob", r->in.firstjob); ndr_print_uint32(ndr, "numjobs", r->in.numjobs); ndr_print_uint32(ndr, "level", r->in.level); ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; if (r->in.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->in.buffer); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->in.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->in.buf_size); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_EnumJobs"); ndr->depth++; ndr_print_ptr(ndr, "buffer", r->out.buffer); ndr->depth++; if (r->out.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->out.buffer); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->out.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->out.buf_size); ndr->depth--; ndr_print_uint32(ndr, "numjobs", r->out.numjobs); ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_05(struct ndr_print *ndr, const char *name, int flags, struct spoolss_05 *r) { ndr_print_struct(ndr, name, "spoolss_05"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_05"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_05"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_06(struct ndr_print *ndr, const char *name, int flags, struct spoolss_06 *r) { ndr_print_struct(ndr, name, "spoolss_06"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_06"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_06"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_07(struct ndr_print *ndr, const char *name, int flags, struct spoolss_07 *r) { ndr_print_struct(ndr, name, "spoolss_07"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_07"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_07"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_GetPrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_GetPrinter *r) { ndr_print_struct(ndr, name, "spoolss_GetPrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_GetPrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr_print_uint32(ndr, "level", r->in.level); ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; if (r->in.buffer) { ndr_print_DATA_BLOB(ndr, "buffer", *r->in.buffer); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->in.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->in.buf_size); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_GetPrinter"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; if (r->out.info) { ndr_print_spoolss_PrinterInfo(ndr, "info", r->in.level, r->out.info); } ndr->depth--; ndr_print_ptr(ndr, "buf_size", r->out.buf_size); ndr->depth++; ndr_print_uint32(ndr, "buf_size", *r->out.buf_size); ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_09(struct ndr_print *ndr, const char *name, int flags, struct spoolss_09 *r) { ndr_print_struct(ndr, name, "spoolss_09"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_09"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_09"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0a *r) { ndr_print_struct(ndr, name, "spoolss_0a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0b *r) { ndr_print_struct(ndr, name, "spoolss_0b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0c *r) { ndr_print_struct(ndr, name, "spoolss_0c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0d(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0d *r) { ndr_print_struct(ndr, name, "spoolss_0d"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0d"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0d"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0e *r) { ndr_print_struct(ndr, name, "spoolss_0e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_0f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_0f *r) { ndr_print_struct(ndr, name, "spoolss_0f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_0f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_0f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_10(struct ndr_print *ndr, const char *name, int flags, struct spoolss_10 *r) { ndr_print_struct(ndr, name, "spoolss_10"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_10"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_10"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_11(struct ndr_print *ndr, const char *name, int flags, struct spoolss_11 *r) { ndr_print_struct(ndr, name, "spoolss_11"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_11"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_11"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_StartPagePrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_StartPagePrinter *r) { ndr_print_struct(ndr, name, "spoolss_StartPagePrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_StartPagePrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_StartPagePrinter"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_13(struct ndr_print *ndr, const char *name, int flags, struct spoolss_13 *r) { ndr_print_struct(ndr, name, "spoolss_13"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_13"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_13"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_EndPagePrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_EndPagePrinter *r) { ndr_print_struct(ndr, name, "spoolss_EndPagePrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_EndPagePrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_EndPagePrinter"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_15(struct ndr_print *ndr, const char *name, int flags, struct spoolss_15 *r) { ndr_print_struct(ndr, name, "spoolss_15"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_15"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_15"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_16(struct ndr_print *ndr, const char *name, int flags, struct spoolss_16 *r) { ndr_print_struct(ndr, name, "spoolss_16"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_16"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_16"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_EndDocPrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_EndDocPrinter *r) { ndr_print_struct(ndr, name, "spoolss_EndDocPrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_EndDocPrinter"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_EndDocPrinter"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_18(struct ndr_print *ndr, const char *name, int flags, struct spoolss_18 *r) { ndr_print_struct(ndr, name, "spoolss_18"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_18"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_18"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_19(struct ndr_print *ndr, const char *name, int flags, struct spoolss_19 *r) { ndr_print_struct(ndr, name, "spoolss_19"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_19"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_19"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_1a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_1a *r) { ndr_print_struct(ndr, name, "spoolss_1a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_1a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_1a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_1b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_1b *r) { ndr_print_struct(ndr, name, "spoolss_1b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_1b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_1b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_1c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_1c *r) { ndr_print_struct(ndr, name, "spoolss_1c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_1c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_1c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_ClosePrinter(struct ndr_print *ndr, const char *name, int flags, struct spoolss_ClosePrinter *r) { ndr_print_struct(ndr, name, "spoolss_ClosePrinter"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_ClosePrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_ClosePrinter"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->out.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->out.handle); ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_1e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_1e *r) { ndr_print_struct(ndr, name, "spoolss_1e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_1e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_1e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_1f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_1f *r) { ndr_print_struct(ndr, name, "spoolss_1f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_1f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_1f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_20(struct ndr_print *ndr, const char *name, int flags, struct spoolss_20 *r) { ndr_print_struct(ndr, name, "spoolss_20"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_20"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_20"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_21(struct ndr_print *ndr, const char *name, int flags, struct spoolss_21 *r) { ndr_print_struct(ndr, name, "spoolss_21"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_21"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_21"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_22(struct ndr_print *ndr, const char *name, int flags, struct spoolss_22 *r) { ndr_print_struct(ndr, name, "spoolss_22"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_22"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_22"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_23(struct ndr_print *ndr, const char *name, int flags, struct spoolss_23 *r) { ndr_print_struct(ndr, name, "spoolss_23"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_23"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_23"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_24(struct ndr_print *ndr, const char *name, int flags, struct spoolss_24 *r) { ndr_print_struct(ndr, name, "spoolss_24"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_24"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_24"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_25(struct ndr_print *ndr, const char *name, int flags, struct spoolss_25 *r) { ndr_print_struct(ndr, name, "spoolss_25"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_25"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_25"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_26(struct ndr_print *ndr, const char *name, int flags, struct spoolss_26 *r) { ndr_print_struct(ndr, name, "spoolss_26"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_26"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_26"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_27(struct ndr_print *ndr, const char *name, int flags, struct spoolss_27 *r) { ndr_print_struct(ndr, name, "spoolss_27"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_27"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_27"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_28(struct ndr_print *ndr, const char *name, int flags, struct spoolss_28 *r) { ndr_print_struct(ndr, name, "spoolss_28"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_28"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_28"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_29(struct ndr_print *ndr, const char *name, int flags, struct spoolss_29 *r) { ndr_print_struct(ndr, name, "spoolss_29"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_29"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_29"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2a *r) { ndr_print_struct(ndr, name, "spoolss_2a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2b *r) { ndr_print_struct(ndr, name, "spoolss_2b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2c *r) { ndr_print_struct(ndr, name, "spoolss_2c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2d(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2d *r) { ndr_print_struct(ndr, name, "spoolss_2d"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2d"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2d"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2e *r) { ndr_print_struct(ndr, name, "spoolss_2e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_2f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_2f *r) { ndr_print_struct(ndr, name, "spoolss_2f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_2f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_2f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_30(struct ndr_print *ndr, const char *name, int flags, struct spoolss_30 *r) { ndr_print_struct(ndr, name, "spoolss_30"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_30"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_30"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_31(struct ndr_print *ndr, const char *name, int flags, struct spoolss_31 *r) { ndr_print_struct(ndr, name, "spoolss_31"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_31"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_31"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_32(struct ndr_print *ndr, const char *name, int flags, struct spoolss_32 *r) { ndr_print_struct(ndr, name, "spoolss_32"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_32"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_32"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_33(struct ndr_print *ndr, const char *name, int flags, struct spoolss_33 *r) { ndr_print_struct(ndr, name, "spoolss_33"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_33"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_33"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_34(struct ndr_print *ndr, const char *name, int flags, struct spoolss_34 *r) { ndr_print_struct(ndr, name, "spoolss_34"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_34"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_34"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_35(struct ndr_print *ndr, const char *name, int flags, struct spoolss_35 *r) { ndr_print_struct(ndr, name, "spoolss_35"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_35"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_35"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_36(struct ndr_print *ndr, const char *name, int flags, struct spoolss_36 *r) { ndr_print_struct(ndr, name, "spoolss_36"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_36"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_36"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_37(struct ndr_print *ndr, const char *name, int flags, struct spoolss_37 *r) { ndr_print_struct(ndr, name, "spoolss_37"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_37"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_37"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_38(struct ndr_print *ndr, const char *name, int flags, struct spoolss_38 *r) { ndr_print_struct(ndr, name, "spoolss_38"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_38"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_38"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_39(struct ndr_print *ndr, const char *name, int flags, struct spoolss_39 *r) { ndr_print_struct(ndr, name, "spoolss_39"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_39"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_39"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3a *r) { ndr_print_struct(ndr, name, "spoolss_3a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3b *r) { ndr_print_struct(ndr, name, "spoolss_3b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3c *r) { ndr_print_struct(ndr, name, "spoolss_3c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3d(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3d *r) { ndr_print_struct(ndr, name, "spoolss_3d"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3d"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3d"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3e *r) { ndr_print_struct(ndr, name, "spoolss_3e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_3f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_3f *r) { ndr_print_struct(ndr, name, "spoolss_3f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_3f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_3f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_40(struct ndr_print *ndr, const char *name, int flags, struct spoolss_40 *r) { ndr_print_struct(ndr, name, "spoolss_40"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_40"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_40"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_41(struct ndr_print *ndr, const char *name, int flags, struct spoolss_41 *r) { ndr_print_struct(ndr, name, "spoolss_41"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_41"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_41"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_42(struct ndr_print *ndr, const char *name, int flags, struct spoolss_42 *r) { ndr_print_struct(ndr, name, "spoolss_42"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_42"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_42"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_43(struct ndr_print *ndr, const char *name, int flags, struct spoolss_43 *r) { ndr_print_struct(ndr, name, "spoolss_43"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_43"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_43"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_44(struct ndr_print *ndr, const char *name, int flags, struct spoolss_44 *r) { ndr_print_struct(ndr, name, "spoolss_44"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_44"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_44"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_Devmode(struct ndr_print *ndr, const char *name, struct spoolss_Devmode *r) { ndr_print_struct(ndr, name, "spoolss_Devmode"); ndr->depth++; ndr_print_uint32(ndr, "foo", r->foo); ndr->depth--; } void ndr_print_spoolss_DevmodeContainer(struct ndr_print *ndr, const char *name, struct spoolss_DevmodeContainer *r) { ndr_print_struct(ndr, name, "spoolss_DevmodeContainer"); ndr->depth++; ndr_print_uint32(ndr, "size", r->size); ndr_print_ptr(ndr, "devmode", r->devmode); ndr->depth++; if (r->devmode) { ndr_print_spoolss_Devmode(ndr, "devmode", r->devmode); } ndr->depth--; ndr->depth--; } void ndr_print_spoolss_UserLevel1(struct ndr_print *ndr, const char *name, struct spoolss_UserLevel1 *r) { ndr_print_struct(ndr, name, "spoolss_UserLevel1"); ndr->depth++; ndr_print_uint32(ndr, "size", r->size); ndr_print_ptr(ndr, "client", r->client); ndr->depth++; if (r->client) { ndr_print_unistr(ndr, "client", r->client); } ndr->depth--; ndr_print_ptr(ndr, "user", r->user); ndr->depth++; if (r->user) { ndr_print_unistr(ndr, "user", r->user); } ndr->depth--; ndr_print_uint32(ndr, "build", r->build); ndr_print_uint32(ndr, "major", r->major); ndr_print_uint32(ndr, "minor", r->minor); ndr_print_uint32(ndr, "processor", r->processor); ndr->depth--; } void ndr_print_spoolss_UserLevel(struct ndr_print *ndr, const char *name, uint16 level, union spoolss_UserLevel *r) { ndr_print_union(ndr, name, level, "spoolss_UserLevel"); switch (level) { case 1: ndr_print_ptr(ndr, "level1", r->level1); ndr->depth++; if (r->level1) { ndr_print_spoolss_UserLevel1(ndr, "level1", r->level1); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } } void ndr_print_spoolss_OpenPrinterEx(struct ndr_print *ndr, const char *name, int flags, struct spoolss_OpenPrinterEx *r) { ndr_print_struct(ndr, name, "spoolss_OpenPrinterEx"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_OpenPrinterEx"); ndr->depth++; ndr_print_ptr(ndr, "printername", r->in.printername); ndr->depth++; if (r->in.printername) { ndr_print_unistr(ndr, "printername", r->in.printername); } ndr->depth--; ndr_print_ptr(ndr, "datatype", r->in.datatype); ndr->depth++; if (r->in.datatype) { ndr_print_unistr(ndr, "datatype", r->in.datatype); } ndr->depth--; ndr_print_spoolss_DevmodeContainer(ndr, "devmode_ctr", &r->in.devmode_ctr); ndr_print_uint32(ndr, "access_required", r->in.access_required); ndr_print_uint32(ndr, "level", r->in.level); ndr_print_spoolss_UserLevel(ndr, "userlevel", r->in.level, &r->in.userlevel); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_OpenPrinterEx"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->out.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->out.handle); ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_46(struct ndr_print *ndr, const char *name, int flags, struct spoolss_46 *r) { ndr_print_struct(ndr, name, "spoolss_46"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_46"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_46"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_47(struct ndr_print *ndr, const char *name, int flags, struct spoolss_47 *r) { ndr_print_struct(ndr, name, "spoolss_47"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_47"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_47"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_EnumPrinterData(struct ndr_print *ndr, const char *name, int flags, struct spoolss_EnumPrinterData *r) { ndr_print_struct(ndr, name, "spoolss_EnumPrinterData"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_EnumPrinterData"); ndr->depth++; ndr_print_ptr(ndr, "handle", r->in.handle); ndr->depth++; ndr_print_policy_handle(ndr, "handle", r->in.handle); ndr->depth--; ndr_print_uint32(ndr, "enum_index", r->in.enum_index); ndr_print_uint32(ndr, "value_offered", r->in.value_offered); ndr_print_ptr(ndr, "data_size", r->in.data_size); ndr->depth++; ndr_print_uint32(ndr, "data_size", *r->in.data_size); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_EnumPrinterData"); ndr->depth++; ndr_print_lstring(ndr, "value", &r->out.value); ndr_print_uint32(ndr, "value_needed", r->out.value_needed); ndr_print_uint32(ndr, "printerdata_type", r->out.printerdata_type); ndr_print_DATA_BLOB(ndr, "data", r->out.data); ndr_print_ptr(ndr, "data_size", r->out.data_size); ndr->depth++; ndr_print_uint32(ndr, "data_size", *r->out.data_size); ndr->depth--; ndr_print_WERROR(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_49(struct ndr_print *ndr, const char *name, int flags, struct spoolss_49 *r) { ndr_print_struct(ndr, name, "spoolss_49"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_49"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_49"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4a *r) { ndr_print_struct(ndr, name, "spoolss_4a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4b *r) { ndr_print_struct(ndr, name, "spoolss_4b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4c *r) { ndr_print_struct(ndr, name, "spoolss_4c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4d(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4d *r) { ndr_print_struct(ndr, name, "spoolss_4d"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4d"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4d"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4e *r) { ndr_print_struct(ndr, name, "spoolss_4e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_4f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_4f *r) { ndr_print_struct(ndr, name, "spoolss_4f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_4f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_4f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_50(struct ndr_print *ndr, const char *name, int flags, struct spoolss_50 *r) { ndr_print_struct(ndr, name, "spoolss_50"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_50"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_50"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_51(struct ndr_print *ndr, const char *name, int flags, struct spoolss_51 *r) { ndr_print_struct(ndr, name, "spoolss_51"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_51"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_51"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_52(struct ndr_print *ndr, const char *name, int flags, struct spoolss_52 *r) { ndr_print_struct(ndr, name, "spoolss_52"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_52"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_52"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_53(struct ndr_print *ndr, const char *name, int flags, struct spoolss_53 *r) { ndr_print_struct(ndr, name, "spoolss_53"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_53"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_53"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_54(struct ndr_print *ndr, const char *name, int flags, struct spoolss_54 *r) { ndr_print_struct(ndr, name, "spoolss_54"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_54"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_54"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_55(struct ndr_print *ndr, const char *name, int flags, struct spoolss_55 *r) { ndr_print_struct(ndr, name, "spoolss_55"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_55"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_55"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_56(struct ndr_print *ndr, const char *name, int flags, struct spoolss_56 *r) { ndr_print_struct(ndr, name, "spoolss_56"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_56"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_56"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_57(struct ndr_print *ndr, const char *name, int flags, struct spoolss_57 *r) { ndr_print_struct(ndr, name, "spoolss_57"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_57"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_57"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_58(struct ndr_print *ndr, const char *name, int flags, struct spoolss_58 *r) { ndr_print_struct(ndr, name, "spoolss_58"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_58"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_58"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_59(struct ndr_print *ndr, const char *name, int flags, struct spoolss_59 *r) { ndr_print_struct(ndr, name, "spoolss_59"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_59"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_59"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5a(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5a *r) { ndr_print_struct(ndr, name, "spoolss_5a"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5a"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5a"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5b(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5b *r) { ndr_print_struct(ndr, name, "spoolss_5b"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5b"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5b"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5c(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5c *r) { ndr_print_struct(ndr, name, "spoolss_5c"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5c"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5c"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5d(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5d *r) { ndr_print_struct(ndr, name, "spoolss_5d"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5d"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5d"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5e(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5e *r) { ndr_print_struct(ndr, name, "spoolss_5e"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5e"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5e"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; } void ndr_print_spoolss_5f(struct ndr_print *ndr, const char *name, int flags, struct spoolss_5f *r) { ndr_print_struct(ndr, name, "spoolss_5f"); ndr->depth++; if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "spoolss_5f"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "spoolss_5f"); ndr->depth++; ndr_print_NTSTATUS(ndr, "result", &r->out.result); ndr->depth--; } ndr->depth--; }