From d944b9780a132cb6c16571192f5cea8bd7b03f25 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 30 Nov 2003 11:57:40 +0000 Subject: Added EnumPrinterDriver, GetPrinterDriver (still in progress) (This used to be commit a818439b5915fd70b8aa3d3045f658b3f59a6bea) --- source4/librpc/ndr/ndr_spoolss_buf.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source4/librpc/ndr') diff --git a/source4/librpc/ndr/ndr_spoolss_buf.c b/source4/librpc/ndr/ndr_spoolss_buf.c index cd251112c0..d8a3f6a07e 100644 --- a/source4/librpc/ndr/ndr_spoolss_buf.c +++ b/source4/librpc/ndr/ndr_spoolss_buf.c @@ -74,3 +74,20 @@ NTSTATUS pull_spoolss_JobInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, } return NT_STATUS_OK; } + +NTSTATUS pull_spoolss_DriverInfoArray(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, + uint32 level, uint32 count, + union spoolss_DriverInfo **info) +{ + int i; + struct ndr_pull *ndr; + ndr = ndr_pull_init_blob(blob, mem_ctx); + if (!ndr) { + return NT_STATUS_NO_MEMORY; + } + NDR_ALLOC_N(ndr, *info, count); + for (i=0;i