1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

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 commit is contained in:
Andrew Tridgell 2005-08-17 01:40:14 +00:00 committed by Gerald (Jerry) Carter
parent a7a1752ca4
commit 75d0cf78ec

View File

@ -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<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) {