summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-29 16:24:11 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-29 16:24:11 +0000
commit3d096e1b8f5a253b61cbfa6155b0a16a5394c847 (patch)
tree14d6ab4f91467f5f9ff10f82dc7d18f36ee938d5 /source3/lib/util.c
parent97993e4973333b504abd2de7a23b1a554841d547 (diff)
downloadsamba-3d096e1b8f5a253b61cbfa6155b0a16a5394c847.tar.gz
samba-3d096e1b8f5a253b61cbfa6155b0a16a5394c847.tar.bz2
samba-3d096e1b8f5a253b61cbfa6155b0a16a5394c847.zip
added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supported
in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test. (This used to be commit b0aa933ef4c0b58840430cf3b3cb3cbeb5c7f704)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 8afa2f8c01..bd93b01341 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3139,7 +3139,15 @@ BOOL reg_split_key(char *full_keyname, uint32 *reg_type, char *key_name)
DEBUG(10, ("reg_split_key: hive %s\n", tmp));
- if (strequal(tmp, "HKLM") || strequal(tmp, "HKEY_LOCAL_MACHINE"))
+ if (strequal(tmp, "HKCR") || strequal(tmp, "HKEY_CLASSES_ROOT"))
+ {
+ (*reg_type) = HKEY_CLASSES_ROOT;
+ }
+ else if (strequal(tmp, "HKCU") || strequal(tmp, "HKEY_CURRENT_USER"))
+ {
+ (*reg_type) = HKEY_CURRENT_USER;
+ }
+ else if (strequal(tmp, "HKLM") || strequal(tmp, "HKEY_LOCAL_MACHINE"))
{
(*reg_type) = HKEY_LOCAL_MACHINE;
}