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 keys in a winreg path
13 function enum_keys(binding, path) {
14 printf("enum_keys(%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 return winreg_enum_path(reg, path);
29 server side call to return a listing of values in a winreg path
31 function enum_values(binding, path) {
32 printf("enum_values(%s, %s)\n", binding, path);
33 var reg = winreg_init();
36 reg.credentials = session.authinfo.credentials;
38 var status = reg.connect(binding);
39 if (status.is_ok != true) {
43 return winreg_enum_values(reg, path);
46 /* register a call for clients to make */
47 var call = servCallObj();
48 call.add('enum_keys', enum_keys);
49 call.add('enum_values', enum_values);
51 /* run the function that was asked for */