summaryrefslogtreecommitdiffstats
path: root/source/registry/reg_db.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-01 22:24:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:10 -0500
commit89f17b41cee633838b8cbd0d1bf8119a4b8d707e (patch)
tree9137dc0df8a79a96fd51de1114108ee96e713a71 /source/registry/reg_db.c
parentfa6cc0bdefe272ec538a71a2b6ba72a724411764 (diff)
downloadsamba-89f17b41cee633838b8cbd0d1bf8119a4b8d707e.tar.gz
samba-89f17b41cee633838b8cbd0d1bf8119a4b8d707e.tar.xz
samba-89f17b41cee633838b8cbd0d1bf8119a4b8d707e.zip
r8064: * add the REG_XXX error codes to the pretty error messages
* more work on the store_values() functions for the Printers key * add Control\Print\Monitors key to list for reg_db
Diffstat (limited to 'source/registry/reg_db.c')
-rw-r--r--source/registry/reg_db.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/registry/reg_db.c b/source/registry/reg_db.c
index 82548483d4d..cfc8b854fca 100644
--- a/source/registry/reg_db.c
+++ b/source/registry/reg_db.c
@@ -45,6 +45,7 @@ static const char *builtin_registry_paths[] = {
KEY_PRINTING,
KEY_SHARES,
KEY_EVENTLOG,
+ "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors",
"HKLM\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\TcpIp\\Parameters",
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters",
@@ -63,8 +64,12 @@ struct builtin_regkey_value {
};
static struct builtin_regkey_value builtin_registry_values[] = {
- { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "SystemRoot", REG_SZ, { "c:\\Windows" } },
- { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Ports", "Samba Printer Port", REG_SZ, { "" } },
+ { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",
+ "SystemRoot", REG_SZ, { "c:\\Windows" } },
+ { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Ports",
+ "Samba Printer Port", REG_SZ, { "" } },
+ { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print\\Printers",
+ "DefaultSpoolDirectory", REG_SZ, { "c:\\windows\\system32\\spool\\printers" } },
{ NULL, NULL, 0, { NULL } }
};