/* server functions auto-generated by pidl */ #include "bin/default/librpc/gen_ndr/ndr_winspool.h" #include NTSTATUS dcerpc_server_iremotewinspool_init(TALLOC_CTX *); /* iremotewinspool - dcerpc server boilerplate generated by pidl */ static NTSTATUS iremotewinspool__op_bind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface) { #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_BIND return DCESRV_INTERFACE_IREMOTEWINSPOOL_BIND(context,iface); #else return NT_STATUS_OK; #endif } static void iremotewinspool__op_unbind(struct dcesrv_connection_context *context, const struct dcesrv_interface *iface) { #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_UNBIND DCESRV_INTERFACE_IREMOTEWINSPOOL_UNBIND(context, iface); #else return; #endif } static NTSTATUS iremotewinspool__op_ndr_pull(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_pull *pull, void **r) { enum ndr_err_code ndr_err; uint16_t opnum = dce_call->pkt.u.request.opnum; dce_call->fault_code = 0; if (opnum >= ndr_table_iremotewinspool.num_calls) { dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR; return NT_STATUS_NET_WRITE_FAULT; } *r = talloc_named(mem_ctx, ndr_table_iremotewinspool.calls[opnum].struct_size, "struct %s", ndr_table_iremotewinspool.calls[opnum].name); NT_STATUS_HAVE_NO_MEMORY(*r); /* unravel the NDR for the packet */ ndr_err = ndr_table_iremotewinspool.calls[opnum].ndr_pull(pull, NDR_IN, *r); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { dce_call->fault_code = DCERPC_FAULT_NDR; return NT_STATUS_NET_WRITE_FAULT; } return NT_STATUS_OK; } static NTSTATUS iremotewinspool__op_dispatch(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r) { uint16_t opnum = dce_call->pkt.u.request.opnum; switch (opnum) { case 0: { struct winspool_AsyncOpenPrinter *r2 = (struct winspool_AsyncOpenPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncOpenPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncOpenPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncOpenPrinter will reply async\n")); } break; } case 1: { struct winspool_AsyncAddPrinter *r2 = (struct winspool_AsyncAddPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrinter will reply async\n")); } break; } case 2: { struct winspool_AsyncSetJob *r2 = (struct winspool_AsyncSetJob *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetJob, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetJob(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetJob will reply async\n")); } break; } case 3: { struct winspool_AsyncGetJob *r2 = (struct winspool_AsyncGetJob *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetJob, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetJob(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetJob will reply async\n")); } break; } case 4: { struct winspool_AsyncEnumJobs *r2 = (struct winspool_AsyncEnumJobs *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumJobs, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumJobs(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumJobs will reply async\n")); } break; } case 5: { struct winspool_AsyncAddJob *r2 = (struct winspool_AsyncAddJob *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddJob, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddJob(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddJob will reply async\n")); } break; } case 6: { struct winspool_AsyncScheduleJob *r2 = (struct winspool_AsyncScheduleJob *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncScheduleJob, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncScheduleJob(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncScheduleJob will reply async\n")); } break; } case 7: { struct winspool_AsyncDeletePrinter *r2 = (struct winspool_AsyncDeletePrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinter will reply async\n")); } break; } case 8: { struct winspool_AsyncSetPrinter *r2 = (struct winspool_AsyncSetPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinter will reply async\n")); } break; } case 9: { struct winspool_AsyncGetPrinter *r2 = (struct winspool_AsyncGetPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinter will reply async\n")); } break; } case 10: { struct winspool_AsyncStartDocPrinter *r2 = (struct winspool_AsyncStartDocPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncStartDocPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncStartDocPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncStartDocPrinter will reply async\n")); } break; } case 11: { struct winspool_AsyncStartPagePrinter *r2 = (struct winspool_AsyncStartPagePrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncStartPagePrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncStartPagePrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncStartPagePrinter will reply async\n")); } break; } case 12: { struct winspool_AsyncWritePrinter *r2 = (struct winspool_AsyncWritePrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncWritePrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncWritePrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncWritePrinter will reply async\n")); } break; } case 13: { struct winspool_AsyncEndPagePrinter *r2 = (struct winspool_AsyncEndPagePrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEndPagePrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEndPagePrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEndPagePrinter will reply async\n")); } break; } case 14: { struct winspool_AsyncEndDocPrinter *r2 = (struct winspool_AsyncEndDocPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEndDocPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEndDocPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEndDocPrinter will reply async\n")); } break; } case 15: { struct winspool_AsyncAbortPrinter *r2 = (struct winspool_AsyncAbortPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAbortPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAbortPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAbortPrinter will reply async\n")); } break; } case 16: { struct winspool_AsyncGetPrinterData *r2 = (struct winspool_AsyncGetPrinterData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinterData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterData will reply async\n")); } break; } case 17: { struct winspool_AsyncGetPrinterDataEx *r2 = (struct winspool_AsyncGetPrinterDataEx *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDataEx, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinterDataEx(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDataEx will reply async\n")); } break; } case 18: { struct winspool_AsyncSetPrinterData *r2 = (struct winspool_AsyncSetPrinterData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinterData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetPrinterData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinterData will reply async\n")); } break; } case 19: { struct winspool_AsyncSetPrinterDataEx *r2 = (struct winspool_AsyncSetPrinterDataEx *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinterDataEx, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetPrinterDataEx(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinterDataEx will reply async\n")); } break; } case 20: { struct winspool_AsyncClosePrinter *r2 = (struct winspool_AsyncClosePrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncClosePrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncClosePrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncClosePrinter will reply async\n")); } break; } case 21: { struct winspool_AsyncAddForm *r2 = (struct winspool_AsyncAddForm *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddForm, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddForm(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddForm will reply async\n")); } break; } case 22: { struct winspool_AsyncDeleteForm *r2 = (struct winspool_AsyncDeleteForm *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteForm, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeleteForm(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteForm will reply async\n")); } break; } case 23: { struct winspool_AsyncGetForm *r2 = (struct winspool_AsyncGetForm *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetForm, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetForm(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetForm will reply async\n")); } break; } case 24: { struct winspool_AsyncSetForm *r2 = (struct winspool_AsyncSetForm *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetForm, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetForm(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetForm will reply async\n")); } break; } case 25: { struct winspool_AsyncEnumForms *r2 = (struct winspool_AsyncEnumForms *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumForms, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumForms(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumForms will reply async\n")); } break; } case 26: { struct winspool_AsyncGetPrinterDriver *r2 = (struct winspool_AsyncGetPrinterDriver *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriver, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinterDriver(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriver will reply async\n")); } break; } case 27: { struct winspool_AsyncEnumPrinterData *r2 = (struct winspool_AsyncEnumPrinterData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrinterData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterData will reply async\n")); } break; } case 28: { struct winspool_AsyncEnumPrinterDataEx *r2 = (struct winspool_AsyncEnumPrinterDataEx *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterDataEx, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrinterDataEx(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterDataEx will reply async\n")); } break; } case 29: { struct winspool_AsyncEnumPrinterKey *r2 = (struct winspool_AsyncEnumPrinterKey *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterKey, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrinterKey(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterKey will reply async\n")); } break; } case 30: { struct winspool_AsyncDeletePrinterData *r2 = (struct winspool_AsyncDeletePrinterData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterData will reply async\n")); } break; } case 31: { struct winspool_AsyncDeletePrinterDataEx *r2 = (struct winspool_AsyncDeletePrinterDataEx *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDataEx, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterDataEx(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDataEx will reply async\n")); } break; } case 32: { struct winspool_AsyncDeletePrinterKey *r2 = (struct winspool_AsyncDeletePrinterKey *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterKey, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterKey(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterKey will reply async\n")); } break; } case 33: { struct winspool_AsyncXcvData *r2 = (struct winspool_AsyncXcvData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncXcvData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncXcvData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncXcvData will reply async\n")); } break; } case 34: { struct winspool_AsyncSendRecvBidiData *r2 = (struct winspool_AsyncSendRecvBidiData *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSendRecvBidiData, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSendRecvBidiData(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSendRecvBidiData will reply async\n")); } break; } case 35: { struct winspool_AsyncCreatePrinterIC *r2 = (struct winspool_AsyncCreatePrinterIC *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncCreatePrinterIC, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncCreatePrinterIC(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncCreatePrinterIC will reply async\n")); } break; } case 36: { struct winspool_AsyncPlayGdiScriptOnPrinterIC *r2 = (struct winspool_AsyncPlayGdiScriptOnPrinterIC *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncPlayGdiScriptOnPrinterIC, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncPlayGdiScriptOnPrinterIC(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncPlayGdiScriptOnPrinterIC will reply async\n")); } break; } case 37: { struct winspool_AsyncDeletePrinterIC *r2 = (struct winspool_AsyncDeletePrinterIC *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterIC, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterIC(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterIC will reply async\n")); } break; } case 38: { struct winspool_AsyncEnumPrinters *r2 = (struct winspool_AsyncEnumPrinters *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinters, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrinters(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinters will reply async\n")); } break; } case 39: { struct winspool_AsyncAddPrinterDriver *r2 = (struct winspool_AsyncAddPrinterDriver *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrinterDriver, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddPrinterDriver(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrinterDriver will reply async\n")); } break; } case 40: { struct winspool_AsyncEnumPrinterDrivers *r2 = (struct winspool_AsyncEnumPrinterDrivers *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterDrivers, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrinterDrivers(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterDrivers will reply async\n")); } break; } case 41: { struct winspool_AsyncGetPrinterDriverDirectory *r2 = (struct winspool_AsyncGetPrinterDriverDirectory *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriverDirectory, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinterDriverDirectory(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriverDirectory will reply async\n")); } break; } case 42: { struct winspool_AsyncDeletePrinterDriver *r2 = (struct winspool_AsyncDeletePrinterDriver *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriver, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterDriver(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriver will reply async\n")); } break; } case 43: { struct winspool_AsyncDeletePrinterDriverEx *r2 = (struct winspool_AsyncDeletePrinterDriverEx *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriverEx, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterDriverEx(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriverEx will reply async\n")); } break; } case 44: { struct winspool_AsyncAddPrintProcessor *r2 = (struct winspool_AsyncAddPrintProcessor *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrintProcessor, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddPrintProcessor(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrintProcessor will reply async\n")); } break; } case 45: { struct winspool_AsyncEnumPrintProcessors *r2 = (struct winspool_AsyncEnumPrintProcessors *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrintProcessors, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrintProcessors(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrintProcessors will reply async\n")); } break; } case 46: { struct winspool_AsyncGetPrintProcessorDirectory *r2 = (struct winspool_AsyncGetPrintProcessorDirectory *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrintProcessorDirectory, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrintProcessorDirectory(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrintProcessorDirectory will reply async\n")); } break; } case 47: { struct winspool_AsyncEnumPorts *r2 = (struct winspool_AsyncEnumPorts *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPorts, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPorts(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPorts will reply async\n")); } break; } case 48: { struct winspool_AsyncEnumMonitors *r2 = (struct winspool_AsyncEnumMonitors *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumMonitors, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumMonitors(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumMonitors will reply async\n")); } break; } case 49: { struct winspool_AsyncAddPort *r2 = (struct winspool_AsyncAddPort *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPort, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddPort(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPort will reply async\n")); } break; } case 50: { struct winspool_AsyncSetPort *r2 = (struct winspool_AsyncSetPort *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPort, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetPort(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPort will reply async\n")); } break; } case 51: { struct winspool_AsyncAddMonitor *r2 = (struct winspool_AsyncAddMonitor *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddMonitor, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddMonitor(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddMonitor will reply async\n")); } break; } case 52: { struct winspool_AsyncDeleteMonitor *r2 = (struct winspool_AsyncDeleteMonitor *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteMonitor, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeleteMonitor(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteMonitor will reply async\n")); } break; } case 53: { struct winspool_AsyncDeletePrintProcessor *r2 = (struct winspool_AsyncDeletePrintProcessor *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrintProcessor, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrintProcessor(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrintProcessor will reply async\n")); } break; } case 54: { struct winspool_AsyncEnumPrintProcessorDatatypes *r2 = (struct winspool_AsyncEnumPrintProcessorDatatypes *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrintProcessorDatatypes, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPrintProcessorDatatypes(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrintProcessorDatatypes will reply async\n")); } break; } case 55: { struct winspool_AsyncAddPerMachineConnection *r2 = (struct winspool_AsyncAddPerMachineConnection *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPerMachineConnection, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncAddPerMachineConnection(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPerMachineConnection will reply async\n")); } break; } case 56: { struct winspool_AsyncDeletePerMachineConnection *r2 = (struct winspool_AsyncDeletePerMachineConnection *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePerMachineConnection, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePerMachineConnection(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePerMachineConnection will reply async\n")); } break; } case 57: { struct winspool_AsyncEnumPerMachineConnections *r2 = (struct winspool_AsyncEnumPerMachineConnections *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPerMachineConnections, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumPerMachineConnections(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPerMachineConnections will reply async\n")); } break; } case 58: { struct winspool_SyncRegisterForRemoteNotifications *r2 = (struct winspool_SyncRegisterForRemoteNotifications *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncRegisterForRemoteNotifications, NDR_IN, r2); } r2->out.result = dcesrv_winspool_SyncRegisterForRemoteNotifications(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncRegisterForRemoteNotifications will reply async\n")); } break; } case 59: { struct winspool_SyncUnRegisterForRemoteNotifications *r2 = (struct winspool_SyncUnRegisterForRemoteNotifications *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncUnRegisterForRemoteNotifications, NDR_IN, r2); } r2->out.result = dcesrv_winspool_SyncUnRegisterForRemoteNotifications(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncUnRegisterForRemoteNotifications will reply async\n")); } break; } case 60: { struct winspool_SyncRefreshRemoteNotifications *r2 = (struct winspool_SyncRefreshRemoteNotifications *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncRefreshRemoteNotifications, NDR_IN, r2); } r2->out.result = dcesrv_winspool_SyncRefreshRemoteNotifications(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncRefreshRemoteNotifications will reply async\n")); } break; } case 61: { struct winspool_AsyncGetRemoteNotifications *r2 = (struct winspool_AsyncGetRemoteNotifications *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetRemoteNotifications, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetRemoteNotifications(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetRemoteNotifications will reply async\n")); } break; } case 62: { struct winspool_AsyncInstallPrinterDriverFromPackage *r2 = (struct winspool_AsyncInstallPrinterDriverFromPackage *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncInstallPrinterDriverFromPackage, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncInstallPrinterDriverFromPackage(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncInstallPrinterDriverFromPackage will reply async\n")); } break; } case 63: { struct winspool_AsyncUploadPrinterDriverPackage *r2 = (struct winspool_AsyncUploadPrinterDriverPackage *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncUploadPrinterDriverPackage, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncUploadPrinterDriverPackage(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncUploadPrinterDriverPackage will reply async\n")); } break; } case 64: { struct winspool_AsyncGetCorePrinterDrivers *r2 = (struct winspool_AsyncGetCorePrinterDrivers *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetCorePrinterDrivers, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetCorePrinterDrivers(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetCorePrinterDrivers will reply async\n")); } break; } case 65: { struct winspool_AsyncCorePrinterDriverInstalled *r2 = (struct winspool_AsyncCorePrinterDriverInstalled *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncCorePrinterDriverInstalled, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncCorePrinterDriverInstalled(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncCorePrinterDriverInstalled will reply async\n")); } break; } case 66: { struct winspool_AsyncGetPrinterDriverPackagePath *r2 = (struct winspool_AsyncGetPrinterDriverPackagePath *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriverPackagePath, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetPrinterDriverPackagePath(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriverPackagePath will reply async\n")); } break; } case 67: { struct winspool_AsyncDeletePrinterDriverPackage *r2 = (struct winspool_AsyncDeletePrinterDriverPackage *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriverPackage, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeletePrinterDriverPackage(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriverPackage will reply async\n")); } break; } case 68: { struct winspool_AsyncReadPrinter *r2 = (struct winspool_AsyncReadPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncReadPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncReadPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncReadPrinter will reply async\n")); } break; } case 69: { struct winspool_AsyncResetPrinter *r2 = (struct winspool_AsyncResetPrinter *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncResetPrinter, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncResetPrinter(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncResetPrinter will reply async\n")); } break; } case 70: { struct winspool_AsyncGetJobNamedPropertyValue *r2 = (struct winspool_AsyncGetJobNamedPropertyValue *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetJobNamedPropertyValue, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncGetJobNamedPropertyValue(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetJobNamedPropertyValue will reply async\n")); } break; } case 71: { struct winspool_AsyncSetJobNamedProperty *r2 = (struct winspool_AsyncSetJobNamedProperty *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetJobNamedProperty, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncSetJobNamedProperty(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetJobNamedProperty will reply async\n")); } break; } case 72: { struct winspool_AsyncDeleteJobNamedProperty *r2 = (struct winspool_AsyncDeleteJobNamedProperty *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteJobNamedProperty, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncDeleteJobNamedProperty(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteJobNamedProperty will reply async\n")); } break; } case 73: { struct winspool_AsyncEnumJobNamedProperties *r2 = (struct winspool_AsyncEnumJobNamedProperties *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumJobNamedProperties, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncEnumJobNamedProperties(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumJobNamedProperties will reply async\n")); } break; } case 74: { struct winspool_AsyncLogJobInfoForBranchOffice *r2 = (struct winspool_AsyncLogJobInfoForBranchOffice *)r; if (DEBUGLEVEL >= 10) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncLogJobInfoForBranchOffice, NDR_IN, r2); } r2->out.result = dcesrv_winspool_AsyncLogJobInfoForBranchOffice(dce_call, mem_ctx, r2); if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncLogJobInfoForBranchOffice will reply async\n")); } break; } default: dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR; break; } if (dce_call->fault_code != 0) { return NT_STATUS_NET_WRITE_FAULT; } return NT_STATUS_OK; } static NTSTATUS iremotewinspool__op_reply(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, void *r) { uint16_t opnum = dce_call->pkt.u.request.opnum; switch (opnum) { case 0: { struct winspool_AsyncOpenPrinter *r2 = (struct winspool_AsyncOpenPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncOpenPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncOpenPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncOpenPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 1: { struct winspool_AsyncAddPrinter *r2 = (struct winspool_AsyncAddPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 2: { struct winspool_AsyncSetJob *r2 = (struct winspool_AsyncSetJob *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetJob replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetJob, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetJob\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 3: { struct winspool_AsyncGetJob *r2 = (struct winspool_AsyncGetJob *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetJob replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetJob, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetJob\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 4: { struct winspool_AsyncEnumJobs *r2 = (struct winspool_AsyncEnumJobs *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumJobs replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumJobs, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumJobs\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 5: { struct winspool_AsyncAddJob *r2 = (struct winspool_AsyncAddJob *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddJob replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddJob, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddJob\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 6: { struct winspool_AsyncScheduleJob *r2 = (struct winspool_AsyncScheduleJob *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncScheduleJob replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncScheduleJob, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncScheduleJob\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 7: { struct winspool_AsyncDeletePrinter *r2 = (struct winspool_AsyncDeletePrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 8: { struct winspool_AsyncSetPrinter *r2 = (struct winspool_AsyncSetPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 9: { struct winspool_AsyncGetPrinter *r2 = (struct winspool_AsyncGetPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 10: { struct winspool_AsyncStartDocPrinter *r2 = (struct winspool_AsyncStartDocPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncStartDocPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncStartDocPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncStartDocPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 11: { struct winspool_AsyncStartPagePrinter *r2 = (struct winspool_AsyncStartPagePrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncStartPagePrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncStartPagePrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncStartPagePrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 12: { struct winspool_AsyncWritePrinter *r2 = (struct winspool_AsyncWritePrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncWritePrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncWritePrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncWritePrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 13: { struct winspool_AsyncEndPagePrinter *r2 = (struct winspool_AsyncEndPagePrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEndPagePrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEndPagePrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEndPagePrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 14: { struct winspool_AsyncEndDocPrinter *r2 = (struct winspool_AsyncEndDocPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEndDocPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEndDocPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEndDocPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 15: { struct winspool_AsyncAbortPrinter *r2 = (struct winspool_AsyncAbortPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAbortPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAbortPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAbortPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 16: { struct winspool_AsyncGetPrinterData *r2 = (struct winspool_AsyncGetPrinterData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinterData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 17: { struct winspool_AsyncGetPrinterDataEx *r2 = (struct winspool_AsyncGetPrinterDataEx *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDataEx replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDataEx, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinterDataEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 18: { struct winspool_AsyncSetPrinterData *r2 = (struct winspool_AsyncSetPrinterData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinterData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinterData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetPrinterData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 19: { struct winspool_AsyncSetPrinterDataEx *r2 = (struct winspool_AsyncSetPrinterDataEx *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPrinterDataEx replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPrinterDataEx, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetPrinterDataEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 20: { struct winspool_AsyncClosePrinter *r2 = (struct winspool_AsyncClosePrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncClosePrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncClosePrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncClosePrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 21: { struct winspool_AsyncAddForm *r2 = (struct winspool_AsyncAddForm *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddForm replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddForm, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddForm\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 22: { struct winspool_AsyncDeleteForm *r2 = (struct winspool_AsyncDeleteForm *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteForm replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteForm, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeleteForm\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 23: { struct winspool_AsyncGetForm *r2 = (struct winspool_AsyncGetForm *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetForm replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetForm, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetForm\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 24: { struct winspool_AsyncSetForm *r2 = (struct winspool_AsyncSetForm *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetForm replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetForm, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetForm\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 25: { struct winspool_AsyncEnumForms *r2 = (struct winspool_AsyncEnumForms *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumForms replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumForms, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumForms\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 26: { struct winspool_AsyncGetPrinterDriver *r2 = (struct winspool_AsyncGetPrinterDriver *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriver replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriver, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinterDriver\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 27: { struct winspool_AsyncEnumPrinterData *r2 = (struct winspool_AsyncEnumPrinterData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrinterData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 28: { struct winspool_AsyncEnumPrinterDataEx *r2 = (struct winspool_AsyncEnumPrinterDataEx *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterDataEx replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterDataEx, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrinterDataEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 29: { struct winspool_AsyncEnumPrinterKey *r2 = (struct winspool_AsyncEnumPrinterKey *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterKey replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterKey, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrinterKey\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 30: { struct winspool_AsyncDeletePrinterData *r2 = (struct winspool_AsyncDeletePrinterData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 31: { struct winspool_AsyncDeletePrinterDataEx *r2 = (struct winspool_AsyncDeletePrinterDataEx *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDataEx replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDataEx, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterDataEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 32: { struct winspool_AsyncDeletePrinterKey *r2 = (struct winspool_AsyncDeletePrinterKey *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterKey replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterKey, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterKey\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 33: { struct winspool_AsyncXcvData *r2 = (struct winspool_AsyncXcvData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncXcvData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncXcvData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncXcvData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 34: { struct winspool_AsyncSendRecvBidiData *r2 = (struct winspool_AsyncSendRecvBidiData *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSendRecvBidiData replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSendRecvBidiData, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSendRecvBidiData\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 35: { struct winspool_AsyncCreatePrinterIC *r2 = (struct winspool_AsyncCreatePrinterIC *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncCreatePrinterIC replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncCreatePrinterIC, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncCreatePrinterIC\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 36: { struct winspool_AsyncPlayGdiScriptOnPrinterIC *r2 = (struct winspool_AsyncPlayGdiScriptOnPrinterIC *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncPlayGdiScriptOnPrinterIC replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncPlayGdiScriptOnPrinterIC, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncPlayGdiScriptOnPrinterIC\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 37: { struct winspool_AsyncDeletePrinterIC *r2 = (struct winspool_AsyncDeletePrinterIC *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterIC replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterIC, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterIC\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 38: { struct winspool_AsyncEnumPrinters *r2 = (struct winspool_AsyncEnumPrinters *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinters replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinters, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrinters\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 39: { struct winspool_AsyncAddPrinterDriver *r2 = (struct winspool_AsyncAddPrinterDriver *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrinterDriver replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrinterDriver, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddPrinterDriver\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 40: { struct winspool_AsyncEnumPrinterDrivers *r2 = (struct winspool_AsyncEnumPrinterDrivers *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrinterDrivers replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrinterDrivers, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrinterDrivers\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 41: { struct winspool_AsyncGetPrinterDriverDirectory *r2 = (struct winspool_AsyncGetPrinterDriverDirectory *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriverDirectory replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriverDirectory, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinterDriverDirectory\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 42: { struct winspool_AsyncDeletePrinterDriver *r2 = (struct winspool_AsyncDeletePrinterDriver *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriver replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriver, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterDriver\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 43: { struct winspool_AsyncDeletePrinterDriverEx *r2 = (struct winspool_AsyncDeletePrinterDriverEx *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriverEx replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriverEx, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterDriverEx\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 44: { struct winspool_AsyncAddPrintProcessor *r2 = (struct winspool_AsyncAddPrintProcessor *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPrintProcessor replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPrintProcessor, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddPrintProcessor\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 45: { struct winspool_AsyncEnumPrintProcessors *r2 = (struct winspool_AsyncEnumPrintProcessors *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrintProcessors replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrintProcessors, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrintProcessors\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 46: { struct winspool_AsyncGetPrintProcessorDirectory *r2 = (struct winspool_AsyncGetPrintProcessorDirectory *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrintProcessorDirectory replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrintProcessorDirectory, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrintProcessorDirectory\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 47: { struct winspool_AsyncEnumPorts *r2 = (struct winspool_AsyncEnumPorts *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPorts replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPorts, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPorts\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 48: { struct winspool_AsyncEnumMonitors *r2 = (struct winspool_AsyncEnumMonitors *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumMonitors replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumMonitors, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumMonitors\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 49: { struct winspool_AsyncAddPort *r2 = (struct winspool_AsyncAddPort *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPort replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPort, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddPort\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 50: { struct winspool_AsyncSetPort *r2 = (struct winspool_AsyncSetPort *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetPort replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetPort, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetPort\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 51: { struct winspool_AsyncAddMonitor *r2 = (struct winspool_AsyncAddMonitor *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddMonitor replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddMonitor, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddMonitor\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 52: { struct winspool_AsyncDeleteMonitor *r2 = (struct winspool_AsyncDeleteMonitor *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteMonitor replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteMonitor, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeleteMonitor\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 53: { struct winspool_AsyncDeletePrintProcessor *r2 = (struct winspool_AsyncDeletePrintProcessor *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrintProcessor replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrintProcessor, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrintProcessor\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 54: { struct winspool_AsyncEnumPrintProcessorDatatypes *r2 = (struct winspool_AsyncEnumPrintProcessorDatatypes *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPrintProcessorDatatypes replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPrintProcessorDatatypes, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPrintProcessorDatatypes\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 55: { struct winspool_AsyncAddPerMachineConnection *r2 = (struct winspool_AsyncAddPerMachineConnection *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncAddPerMachineConnection replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncAddPerMachineConnection, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncAddPerMachineConnection\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 56: { struct winspool_AsyncDeletePerMachineConnection *r2 = (struct winspool_AsyncDeletePerMachineConnection *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePerMachineConnection replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePerMachineConnection, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePerMachineConnection\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 57: { struct winspool_AsyncEnumPerMachineConnections *r2 = (struct winspool_AsyncEnumPerMachineConnections *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumPerMachineConnections replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumPerMachineConnections, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumPerMachineConnections\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 58: { struct winspool_SyncRegisterForRemoteNotifications *r2 = (struct winspool_SyncRegisterForRemoteNotifications *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncRegisterForRemoteNotifications replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncRegisterForRemoteNotifications, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_SyncRegisterForRemoteNotifications\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 59: { struct winspool_SyncUnRegisterForRemoteNotifications *r2 = (struct winspool_SyncUnRegisterForRemoteNotifications *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncUnRegisterForRemoteNotifications replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncUnRegisterForRemoteNotifications, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_SyncUnRegisterForRemoteNotifications\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 60: { struct winspool_SyncRefreshRemoteNotifications *r2 = (struct winspool_SyncRefreshRemoteNotifications *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_SyncRefreshRemoteNotifications replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_SyncRefreshRemoteNotifications, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_SyncRefreshRemoteNotifications\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 61: { struct winspool_AsyncGetRemoteNotifications *r2 = (struct winspool_AsyncGetRemoteNotifications *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetRemoteNotifications replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetRemoteNotifications, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetRemoteNotifications\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 62: { struct winspool_AsyncInstallPrinterDriverFromPackage *r2 = (struct winspool_AsyncInstallPrinterDriverFromPackage *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncInstallPrinterDriverFromPackage replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncInstallPrinterDriverFromPackage, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncInstallPrinterDriverFromPackage\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 63: { struct winspool_AsyncUploadPrinterDriverPackage *r2 = (struct winspool_AsyncUploadPrinterDriverPackage *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncUploadPrinterDriverPackage replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncUploadPrinterDriverPackage, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncUploadPrinterDriverPackage\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 64: { struct winspool_AsyncGetCorePrinterDrivers *r2 = (struct winspool_AsyncGetCorePrinterDrivers *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetCorePrinterDrivers replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetCorePrinterDrivers, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetCorePrinterDrivers\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 65: { struct winspool_AsyncCorePrinterDriverInstalled *r2 = (struct winspool_AsyncCorePrinterDriverInstalled *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncCorePrinterDriverInstalled replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncCorePrinterDriverInstalled, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncCorePrinterDriverInstalled\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 66: { struct winspool_AsyncGetPrinterDriverPackagePath *r2 = (struct winspool_AsyncGetPrinterDriverPackagePath *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetPrinterDriverPackagePath replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetPrinterDriverPackagePath, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetPrinterDriverPackagePath\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 67: { struct winspool_AsyncDeletePrinterDriverPackage *r2 = (struct winspool_AsyncDeletePrinterDriverPackage *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeletePrinterDriverPackage replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeletePrinterDriverPackage, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeletePrinterDriverPackage\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 68: { struct winspool_AsyncReadPrinter *r2 = (struct winspool_AsyncReadPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncReadPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncReadPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncReadPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 69: { struct winspool_AsyncResetPrinter *r2 = (struct winspool_AsyncResetPrinter *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncResetPrinter replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncResetPrinter, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncResetPrinter\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 70: { struct winspool_AsyncGetJobNamedPropertyValue *r2 = (struct winspool_AsyncGetJobNamedPropertyValue *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncGetJobNamedPropertyValue replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncGetJobNamedPropertyValue, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncGetJobNamedPropertyValue\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 71: { struct winspool_AsyncSetJobNamedProperty *r2 = (struct winspool_AsyncSetJobNamedProperty *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncSetJobNamedProperty replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncSetJobNamedProperty, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncSetJobNamedProperty\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 72: { struct winspool_AsyncDeleteJobNamedProperty *r2 = (struct winspool_AsyncDeleteJobNamedProperty *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncDeleteJobNamedProperty replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncDeleteJobNamedProperty, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncDeleteJobNamedProperty\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 73: { struct winspool_AsyncEnumJobNamedProperties *r2 = (struct winspool_AsyncEnumJobNamedProperties *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncEnumJobNamedProperties replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncEnumJobNamedProperties, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncEnumJobNamedProperties\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } case 74: { struct winspool_AsyncLogJobInfoForBranchOffice *r2 = (struct winspool_AsyncLogJobInfoForBranchOffice *)r; if (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) { DEBUG(5,("function winspool_AsyncLogJobInfoForBranchOffice replied async\n")); } if (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) { NDR_PRINT_FUNCTION_DEBUG(winspool_AsyncLogJobInfoForBranchOffice, NDR_OUT | NDR_SET_VALUES, r2); } if (dce_call->fault_code != 0) { DEBUG(2,("dcerpc_fault %s in winspool_AsyncLogJobInfoForBranchOffice\n", dcerpc_errstr(mem_ctx, dce_call->fault_code))); } break; } default: dce_call->fault_code = DCERPC_FAULT_OP_RNG_ERROR; break; } if (dce_call->fault_code != 0) { return NT_STATUS_NET_WRITE_FAULT; } return NT_STATUS_OK; } static NTSTATUS iremotewinspool__op_ndr_push(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct ndr_push *push, const void *r) { enum ndr_err_code ndr_err; uint16_t opnum = dce_call->pkt.u.request.opnum; ndr_err = ndr_table_iremotewinspool.calls[opnum].ndr_push(push, NDR_OUT, r); if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { dce_call->fault_code = DCERPC_FAULT_NDR; return NT_STATUS_NET_WRITE_FAULT; } return NT_STATUS_OK; } static const struct dcesrv_interface dcesrv_iremotewinspool_interface = { .name = "iremotewinspool", .syntax_id = {{0x76f03f96,0xcdfd,0x44fc,{0xa2,0x2c},{0x64,0x95,0x0a,0x00,0x12,0x09}},1.0}, .bind = iremotewinspool__op_bind, .unbind = iremotewinspool__op_unbind, .ndr_pull = iremotewinspool__op_ndr_pull, .dispatch = iremotewinspool__op_dispatch, .reply = iremotewinspool__op_reply, .ndr_push = iremotewinspool__op_ndr_push, .local = NULL, #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_FLAGS .flags = DCESRV_INTERFACE_IREMOTEWINSPOOL_FLAGS #else .flags = 0 #endif }; static NTSTATUS iremotewinspool__op_init_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server) { int i; #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_NCACN_NP_SECONDARY_ENDPOINT const char *ncacn_np_secondary_endpoint = DCESRV_INTERFACE_IREMOTEWINSPOOL_NCACN_NP_SECONDARY_ENDPOINT; #else const char *ncacn_np_secondary_endpoint = NULL; #endif for (i=0;icount;i++) { NTSTATUS ret; const char *name = ndr_table_iremotewinspool.endpoints->names[i]; ret = dcesrv_interface_register(dce_ctx, name, ncacn_np_secondary_endpoint, &dcesrv_iremotewinspool_interface, NULL); if (!NT_STATUS_IS_OK(ret)) { DEBUG(1,("iremotewinspool_op_init_server: failed to register endpoint '%s'\n",name)); return ret; } } return NT_STATUS_OK; } static NTSTATUS iremotewinspool__op_shutdown_server(struct dcesrv_context *dce_ctx, const struct dcesrv_endpoint_server *ep_server) { return NT_STATUS_OK; } static bool iremotewinspool__op_interface_by_uuid(struct dcesrv_interface *iface, const struct GUID *uuid, uint32_t if_version) { if (dcesrv_iremotewinspool_interface.syntax_id.if_version == if_version && GUID_equal(&dcesrv_iremotewinspool_interface.syntax_id.uuid, uuid)) { memcpy(iface,&dcesrv_iremotewinspool_interface, sizeof(*iface)); return true; } return false; } static bool iremotewinspool__op_interface_by_name(struct dcesrv_interface *iface, const char *name) { if (strcmp(dcesrv_iremotewinspool_interface.name, name)==0) { memcpy(iface, &dcesrv_iremotewinspool_interface, sizeof(*iface)); return true; } return false; } NTSTATUS dcerpc_server_iremotewinspool_init(TALLOC_CTX *ctx) { NTSTATUS ret; static const struct dcesrv_endpoint_server ep_server = { /* fill in our name */ .name = "iremotewinspool", /* Initialization flag */ .initialized = false, /* fill in all the operations */ #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_INIT_SERVER .init_server = DCESRV_INTERFACE_IREMOTEWINSPOOL_INIT_SERVER, #else .init_server = iremotewinspool__op_init_server, #endif #ifdef DCESRV_INTERFACE_IREMOTEWINSPOOL_SHUTDOWN_SERVER .shutdown_server = DCESRV_INTERFACE_IREMOTEWINSPOOL_SHUTDOWN_SERVER, #else .shutdown_server = iremotewinspool__op_shutdown_server, #endif .interface_by_uuid = iremotewinspool__op_interface_by_uuid, .interface_by_name = iremotewinspool__op_interface_by_name }; /* register ourselves with the DCERPC subsystem. */ ret = dcerpc_register_ep_server(&ep_server); if (!NT_STATUS_IS_OK(ret)) { DEBUG(0,("Failed to register 'iremotewinspool' endpoint server!\n")); return ret; } return ret; }