mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r9115: using #define for reg paths rather than typing the string
(This used to be commit e9427912a763b0e4bb47724f835b91c2252105e8)
This commit is contained in:
parent
e93b4cedc3
commit
30865196bf
@ -45,12 +45,16 @@ static const char *builtin_registry_paths[] = {
|
|||||||
KEY_PRINTING,
|
KEY_PRINTING,
|
||||||
KEY_SHARES,
|
KEY_SHARES,
|
||||||
KEY_EVENTLOG,
|
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\\Print\\Monitors",
|
||||||
"HKLM\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
|
"HKLM\\SYSTEM\\CurrentControlSet\\Control\\ProductOptions",
|
||||||
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\TcpIp\\Parameters",
|
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\TcpIp\\Parameters",
|
||||||
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters",
|
"HKLM\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters",
|
||||||
"HKU",
|
"HKU",
|
||||||
"HKCR",
|
"HKCR",
|
||||||
|
"HKPD",
|
||||||
|
"HKPT",
|
||||||
NULL };
|
NULL };
|
||||||
|
|
||||||
struct builtin_regkey_value {
|
struct builtin_regkey_value {
|
||||||
@ -64,12 +68,14 @@ struct builtin_regkey_value {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct builtin_regkey_value builtin_registry_values[] = {
|
static struct builtin_regkey_value builtin_registry_values[] = {
|
||||||
{ "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion",
|
{ KEY_PRINTING_PORTS,
|
||||||
"SystemRoot", REG_SZ, { "c:\\Windows" } },
|
|
||||||
{ "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Ports",
|
|
||||||
SAMBA_PRINTER_PORT_NAME, REG_SZ, { "" } },
|
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" } },
|
"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 } }
|
{ NULL, NULL, 0, { NULL } }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user