summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-02-18 12:05:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:31 -0500
commit2503fe22734f361159672a3bd9c213c1ad1055b4 (patch)
tree3a7cc0c6e742da2eeafde8b98d767a340f7dc9aa
parente55e7c96f86d3ac69be083edbe3f51adccc6c017 (diff)
downloadsamba-2503fe22734f361159672a3bd9c213c1ad1055b4.tar.gz
samba-2503fe22734f361159672a3bd9c213c1ad1055b4.tar.bz2
samba-2503fe22734f361159672a3bd9c213c1ad1055b4.zip
r21424: Add FindClosePrinterNotify.
(This used to be commit 0ed195f45fed12905278ba60eabe02a11b59eb90)
-rw-r--r--source4/librpc/idl/spoolss.idl3
-rw-r--r--source4/torture/ndr/spoolss.c12
2 files changed, 14 insertions, 1 deletions
diff --git a/source4/librpc/idl/spoolss.idl b/source4/librpc/idl/spoolss.idl
index 9a9c1c60b6..389aba4fe9 100644
--- a/source4/librpc/idl/spoolss.idl
+++ b/source4/librpc/idl/spoolss.idl
@@ -1126,7 +1126,8 @@ import "security.idl", "winreg.idl";
/******************/
/* Function: 0x38 */
- WERROR spoolss_FindClosePrinterNotify(
+ [public] WERROR spoolss_FindClosePrinterNotify(
+ [in,ref] policy_handle *handle
);
/******************/
diff --git a/source4/torture/ndr/spoolss.c b/source4/torture/ndr/spoolss.c
index c28cc4ea41..2888efd4a3 100644
--- a/source4/torture/ndr/spoolss.c
+++ b/source4/torture/ndr/spoolss.c
@@ -231,6 +231,15 @@ static const uint8_t enumprinterkey_out_data[] = {
0x00, 0x00, 0x00, 0x00, 0x5c, 0x00, 0x00, 0x00, 0xea, 0x00, 0x00, 0x00
};
+static const uint8_t FCPN_in_data[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0xcf, 0xe5, 0x98, 0xfd, 0x15, 0x4b,
+ 0xba, 0x28, 0x03, 0x70, 0x74, 0x35, 0x8d, 0x14
+};
+
+static const uint8_t FCPN_out_data[] = {
+ 0x00, 0x00, 0x00, 0x00
+};
+
struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
{
struct torture_suite *suite = torture_suite_create(ctx, "spoolss");
@@ -265,5 +274,8 @@ struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_in_data, NDR_IN, NULL );
torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_out_data, NDR_OUT, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_in_data, NDR_IN, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_out_data, NDR_OUT, NULL );
+
return suite;
}