mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +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 used to be commit 75d0cf78ec8c01dee2a6475d4c64417349d9ec3a)
This commit is contained in:
parent
bc6d35135d
commit
66c3640366
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user