diff options
author | Gerald Carter <jerry@samba.org> | 2005-08-05 14:34:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:26 -0500 |
commit | 30865196bf08fa7a8cda8e7305b911067fb84fab (patch) | |
tree | 896a7b924cd6aeb862b5201689425ac478c48825 /source3 | |
parent | e93b4cedc339154e63dbde3a09503c7930339e26 (diff) | |
download | samba-30865196bf08fa7a8cda8e7305b911067fb84fab.tar.gz samba-30865196bf08fa7a8cda8e7305b911067fb84fab.tar.bz2 samba-30865196bf08fa7a8cda8e7305b911067fb84fab.zip |
r9115: using #define for reg paths rather than typing the string
(This used to be commit e9427912a763b0e4bb47724f835b91c2252105e8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_db.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c index 6e3a989972..77525e884f 100644 --- a/source3/registry/reg_db.c +++ b/source3/registry/reg_db.c @@ -45,12 +45,16 @@ static const char *builtin_registry_paths[] = { KEY_PRINTING, KEY_SHARES, KEY_EVENTLOG, + "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib", + "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib\\009", "HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors", "HKLM\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions", "HKLM\\SYSTEM\\CurrentControlSet\\Services\\TcpIp\\Parameters", "HKLM\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters", "HKU", "HKCR", + "HKPD", + "HKPT", NULL }; struct builtin_regkey_value { @@ -64,12 +68,14 @@ 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", + { KEY_PRINTING_PORTS, SAMBA_PRINTER_PORT_NAME, REG_SZ, { "" } }, - { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print\\Printers", + { KEY_PRINTING_2K, "DefaultSpoolDirectory", REG_SZ, { "C:\\Windows\\System32\\Spool\\Printers" } }, + { KEY_EVENTLOG, + "DisplayName", REG_SZ, { "Event Log" } }, + { KEY_EVENTLOG, + "ErrorControl", REG_DWORD, { (char*)0x00000001 } }, { NULL, NULL, 0, { NULL } } }; |