W_ERROR_IS_OK(werr);
count++)
{
- print_registry_value(valname, valvalue);
+ print_registry_value_with_name(valname, valvalue);
}
if (!W_ERROR_EQUAL(WERR_NO_MORE_ITEMS, werr)) {
goto done;
d_printf("\n");
}
-void print_registry_value(const char *valname,
- const struct registry_value *valvalue)
+void print_registry_value(const struct registry_value *valvalue)
{
- d_printf("Valuename = %s\n", valname);
d_printf("Type = %s\n",
reg_type_lookup(valvalue->type));
switch(valvalue->type) {
d_printf("Value = <unprintable>\n");
break;
}
+}
+
+void print_registry_value_with_name(const char *valname,
+ const struct registry_value *valvalue)
+{
+ d_printf("Valuename = %s\n", valname);
+ print_registry_value(valvalue);
d_printf("\n");
}
void print_registry_key(const char *keyname, NTTIME *modtime);
-void print_registry_value(const char *valname,
- const struct registry_value *valvalue);
+void print_registry_value(const struct registry_value *valvalue);
+
+void print_registry_value_with_name(const char *valname,
+ const struct registry_value *valvalue);
/**
* Split path into hive name and subkeyname
}
for (i=0; i<num_values; i++) {
- print_registry_value(names[i], values[i]);
+ print_registry_value_with_name(names[i], values[i]);
}
rpccli_winreg_CloseKey(pipe_hnd, mem_ctx, &pol_key, NULL);