3 server side AJAJ functions for registry editing. These go along
4 with scripting/client/regedit.js
7 libinclude("winreg.js");
8 libinclude("server_call.js");
11 server side call to return a listing of elements in a winreg path
13 function enum_path(binding, path) {
14 printf("enum_path(%s, %s)\n", binding, path);
15 var reg = winreg_init();
18 reg.credentials = session.authinfo.credentials;
20 var status = reg.connect(binding);
21 if (status.is_ok != true) {
25 var list = winreg_enum_path(reg, path);
29 /* register a call for clients to make */
30 var call = servCallObj();
31 call.add('enum_path', enum_path);
33 /* run the function that was asked for */