summaryrefslogtreecommitdiff
path: root/source3/registry/reg_db.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-01 19:15:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:10 -0500
commit8e3445c804c139860d3eda3f4a8a688c06a26252 (patch)
treefb4fa5b5663c283940039f41f0eb55acfc340dc5 /source3/registry/reg_db.c
parent065d7e82a74166d06cb99678109d6de5d25e2298 (diff)
downloadsamba-8e3445c804c139860d3eda3f4a8a688c06a26252.tar.gz
samba-8e3445c804c139860d3eda3f4a8a688c06a26252.tar.bz2
samba-8e3445c804c139860d3eda3f4a8a688c06a26252.zip
r8061: * mostly cleanup and refactoring for better readability
* move to registry.tdb for port listing (at least via the winreg ops) If no one opposes on the samba list, we'll move to a registry lookup for enumerating ports rather than the 'enumports command'. This means that there is a bit of a disconnect between EnumPorts() and RegEnumKey('hklm\software\microsoft\windows nt\currentversion\ports'). (This used to be commit 6f654c5741e98abf00c010c5dd38038092c0f7a3)
Diffstat (limited to 'source3/registry/reg_db.c')
-rw-r--r--source3/registry/reg_db.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index 4bb605ade0..82548483d4 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -63,7 +63,8 @@ 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", "SystemRoot", REG_SZ, { "c:\\Windows" } },
+ { "HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Ports", "Samba Printer Port", REG_SZ, { "" } },
{ NULL, NULL, 0, { NULL } }
};