[SCM] Samba Shared Repository - branch master updated
Günther Deschner
gd at samba.org
Fri Feb 12 12:46:59 MST 2010
The branch, master has been updated
via 89621d8... testprogs: print all printerinfo levels in spoolss test.
from d5af819... s4:auth/credentials/credentials.c - Initialise the "lm_response" and "nt_response" structures
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 89621d8d19e66130fadcc2f87af90aacbb5935c0
Author: Günther Deschner <gd at samba.org>
Date: Fri Feb 12 20:31:46 2010 +0100
testprogs: print all printerinfo levels in spoolss test.
Guenther
-----------------------------------------------------------------------
Summary of changes:
testprogs/win32/spoolss/printlib.c | 28 ++++++++++++++++++++++++++--
1 files changed, 26 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/testprogs/win32/spoolss/printlib.c b/testprogs/win32/spoolss/printlib.c
index b9198d4..a41a5c1 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;
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list