summaryrefslogtreecommitdiff
path: root/testprogs/win32/spoolss/printlib.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-01-11 15:40:16 +0100
committerGünther Deschner <gd@samba.org>2010-01-12 12:12:05 +0100
commit3c1b51795dcf6b6e85701a49ea9d862b9ae610bd (patch)
tree2a0281b67625816914e3b1ee16e1a9fce05eee68 /testprogs/win32/spoolss/printlib.c
parent13dad3893085dfe2fc01f88b3bb46a0645ab22fb (diff)
downloadsamba-3c1b51795dcf6b6e85701a49ea9d862b9ae610bd.tar.gz
samba-3c1b51795dcf6b6e85701a49ea9d862b9ae610bd.tar.bz2
samba-3c1b51795dcf6b6e85701a49ea9d862b9ae610bd.zip
testprogs: add EnumPrinterKey test to spoolss test.
Guenther
Diffstat (limited to 'testprogs/win32/spoolss/printlib.c')
-rw-r--r--testprogs/win32/spoolss/printlib.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/testprogs/win32/spoolss/printlib.c b/testprogs/win32/spoolss/printlib.c
index c40ca6c2e1..9fc9d046f2 100644
--- a/testprogs/win32/spoolss/printlib.c
+++ b/testprogs/win32/spoolss/printlib.c
@@ -606,3 +606,17 @@ void print_printer_enum_values(PRINTER_ENUM_VALUES *info)
return;
}
+
+void print_printer_keys(LPSTR buffer)
+{
+ LPSTR p = NULL;
+
+ p = buffer;
+
+ while (p && *p) {
+ printf("%s\n", p);
+ for (; *p; p = CharNext(p)) {
+ p = CharNext(p);
+ }
+ }
+}