From 745d0eae1a0f681f6a08a7cc259834ddbb5fa023 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 18 Feb 2007 12:12:17 +0000 Subject: [PATCH] r21425: Add ReplyClosePrinter. --- source/librpc/idl/spoolss.idl | 3 ++- source/torture/ndr/spoolss.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/source/librpc/idl/spoolss.idl b/source/librpc/idl/spoolss.idl index 389aba4fe92..a826d32d3eb 100644 --- a/source/librpc/idl/spoolss.idl +++ b/source/librpc/idl/spoolss.idl @@ -1153,7 +1153,8 @@ import "security.idl", "winreg.idl"; /******************/ /* Function: 0x3c */ - WERROR spoolss_ReplyClosePrinter( + [public] WERROR spoolss_ReplyClosePrinter( + [in,out,ref] policy_handle *handle ); /******************/ diff --git a/source/torture/ndr/spoolss.c b/source/torture/ndr/spoolss.c index 2888efd4a3f..fe9878e4ca3 100644 --- a/source/torture/ndr/spoolss.c +++ b/source/torture/ndr/spoolss.c @@ -240,6 +240,16 @@ static const uint8_t FCPN_out_data[] = { 0x00, 0x00, 0x00, 0x00 }; +static const uint8_t replycloseprinter_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x60, 0xe4, 0xdf, 0x77, 0xb1, 0xbf, 0x43, 0x4f, + 0xbf, 0xb4, 0x58, 0x5c, 0x44, 0xc6, 0x3e, 0x09 +}; + +static const uint8_t replycloseprinter_out_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx) { struct torture_suite *suite = torture_suite_create(ctx, "spoolss"); @@ -259,6 +269,9 @@ struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx) torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyOpenPrinter, replyopenprinter_req_data, NDR_IN, NULL ); torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyOpenPrinter, replyopenprinter_resp_data, NDR_OUT, NULL ); + torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyClosePrinter, replycloseprinter_in_data, NDR_IN, NULL ); + torture_suite_add_ndr_pull_fn_test(suite, spoolss_ReplyClosePrinter, replycloseprinter_out_data, NDR_OUT, NULL ); + torture_suite_add_ndr_pull_fn_test(suite, spoolss_RemoteFindFirstPrinterChangeNotifyEx, RFFPCNEX_in_data, NDR_IN, NULL ); torture_suite_add_ndr_pull_fn_test(suite, spoolss_RemoteFindFirstPrinterChangeNotifyEx, RFFPCNEX_out_data, NDR_OUT, NULL ); -- 2.11.4.GIT