From 66c3640366ed17b1bdc445f7e597a2446deeaa14 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Aug 2005 01:40:14 +0000 Subject: r9341: updated the winreg test program to take advantage of the new EnumValue functionality. It now completely enumerates a winreg tree. This would make a good basis for a js version of regshell if someone felt like taking that on. (This used to be commit 75d0cf78ec8c01dee2a6475d4c64417349d9ec3a) --- testprogs/ejs/winreg.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'testprogs/ejs/winreg.js') diff --git a/testprogs/ejs/winreg.js b/testprogs/ejs/winreg.js index 22b20739f2..2febec8010 100755 --- a/testprogs/ejs/winreg.js +++ b/testprogs/ejs/winreg.js @@ -34,12 +34,21 @@ if (status.is_ok != true) { return -1; } -function list_path(path) { - var list = winreg_enum_path(reg, path); +function list_values(path) { + var list = winreg_enum_values(reg, path); var i; if (list == undefined) { return; } + for (i=0;i