summaryrefslogtreecommitdiff
path: root/testprogs/ejs/winreg.js
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs/winreg.js')
-rwxr-xr-xtestprogs/ejs/winreg.js13
1 files changed, 11 insertions, 2 deletions
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,13 +34,22 @@ 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<list.length;i++) {
+ printf("\ttype=%2d size=%4d '%s'\n", list[i].type, list[i].size, list[i].name);
+ }
+}
+
+function list_path(path) {
+ var list = winreg_enum_path(reg, path);
+ var i;
+ list_values(path);
+ for (i=0;i<list.length;i++) {
var npath;
if (path) {
npath = path + "\\" + list[i];