summaryrefslogtreecommitdiff
path: root/testprogs/win32
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-02-12 20:31:46 +0100
committerGünther Deschner <gd@samba.org>2010-02-12 20:46:44 +0100
commit89621d8d19e66130fadcc2f87af90aacbb5935c0 (patch)
tree1d87ddbb774a724bff21bd9b20152e1eb5ff92e2 /testprogs/win32
parentd5af819b1a1f293dda108e77b4dfb64afb894035 (diff)
downloadsamba-89621d8d19e66130fadcc2f87af90aacbb5935c0.tar.gz
samba-89621d8d19e66130fadcc2f87af90aacbb5935c0.tar.bz2
samba-89621d8d19e66130fadcc2f87af90aacbb5935c0.zip
testprogs: print all printerinfo levels in spoolss test.
Guenther
Diffstat (limited to 'testprogs/win32')
-rw-r--r--testprogs/win32/spoolss/printlib.c28
1 files changed, 26 insertions, 2 deletions
diff --git a/testprogs/win32/spoolss/printlib.c b/testprogs/win32/spoolss/printlib.c
index b9198d46af..a41a5c1c90 100644
--- a/testprogs/win32/spoolss/printlib.c
+++ b/testprogs/win32/spoolss/printlib.c
@@ -594,6 +594,22 @@ void print_printer_info_2(PPRINTER_INFO_2 info)
return;
}
+void print_printer_info_3(PPRINTER_INFO_3 info)
+{
+ printf("\tSecurity Descriptor Information\n");
+ printf("\t-------------------------------\n");
+ print_secdesc(info->pSecurityDescriptor);
+ return;
+}
+
+void print_printer_info_4(PPRINTER_INFO_4 info)
+{
+ printf("\tServer Name\t\t= %s\n", info->pServerName);
+ printf("\tPrinter Name\t\t= %s\n", info->pPrinterName);
+ printf("\tAttributes\t\t= 0x%x\n", info->Attributes);
+ return;
+}
+
void print_printer_info_5(PPRINTER_INFO_5 info)
{
printf("\tPrinter Name\t\t\t= %s\n", info->pPrinterName);
@@ -638,6 +654,7 @@ void print_printer_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
PPRINTER_INFO_6 buffer6 = NULL;
PPRINTER_INFO_7 buffer7 = NULL;
PPRINTER_INFO_8 buffer8 = NULL;
+ PPRINTER_INFO_9 buffer9 = NULL;
if (!buffer) {
return;
@@ -668,6 +685,9 @@ void print_printer_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
case 8:
buffer8 = (PPRINTER_INFO_8)buffer;
break;
+ case 9:
+ buffer9 = (PPRINTER_INFO_9)buffer;
+ break;
default:
break;
}
@@ -687,7 +707,6 @@ void print_printer_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
printf("\n");
}
break;
-#if 0
case 3:
for (i=0; i<count; i++) {
print_printer_info_3(&buffer3[i]);
@@ -700,7 +719,6 @@ void print_printer_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
printf("\n");
}
break;
-#endif
case 5:
for (i=0; i<count; i++) {
print_printer_info_5(&buffer5[i]);
@@ -725,6 +743,12 @@ void print_printer_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
printf("\n");
}
break;
+ case 9:
+ for (i=0; i<count; i++) {
+ print_printer_info_9(&buffer9[i]);
+ printf("\n");
+ }
+ break;
default:
break;
}