diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-24 06:42:09 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-24 06:42:09 +0000 |
commit | c808cc3643f06c72f870d0b14a37c7a46627e2fa (patch) | |
tree | ba307c845f17a592388770b115322855d56fe888 /source3/registry/reg_db.c | |
parent | 84f2875d7bac30e75397bbf89d3d5e79ba790ddc (diff) | |
download | samba-c808cc3643f06c72f870d0b14a37c7a46627e2fa.tar.gz samba-c808cc3643f06c72f870d0b14a37c7a46627e2fa.tar.bz2 samba-c808cc3643f06c72f870d0b14a37c7a46627e2fa.zip |
several changes in this checkin
* added REG_OPEN_HKCR for supporting regedit.exe
* All data n a REGISTRY_VALUE is stored to a pointer now
* fixed REG_INFO to correctly display data when double clicking on
and entry in the registry editor
* Will now enumerate installed driver_info_3 data
* fixed numerous bugs related to pointer offsets, memory issues, etc..
in the registry routines
* added a simple caching mechanism to fetch_reg_[keys|values]_specific()
All that is left now is to enumerate PrinterData and I will have finished
what I started out to do....
(This used to be commit 419d7208e8384e4ad2c4dd328ad5e630971bc76c)
Diffstat (limited to 'source3/registry/reg_db.c')
-rw-r--r-- | source3/registry/reg_db.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c index 714e14e48b..773a4f7fb5 100644 --- a/source3/registry/reg_db.c +++ b/source3/registry/reg_db.c @@ -106,6 +106,12 @@ static BOOL init_registry_data( void ) if ( !regdb_store_reg_keys( keyname, &subkeys ) ) return False; + /* HKEY_CLASSES_ROOT*/ + + pstrcpy( keyname, KEY_HKCR ); + if ( !regdb_store_reg_keys( keyname, &subkeys ) ) + return False; + return True; } @@ -233,6 +239,7 @@ int regdb_fetch_reg_keys( char* key, REGSUBKEY_CTR *ctr ) int i; fstring subkeyname; + DEBUG(10,("regdb_fetch_reg_keys: Enter key => [%s]\n", key ? key : "NULL")); pstrcpy( path, key ); @@ -258,6 +265,8 @@ int regdb_fetch_reg_keys( char* key, REGSUBKEY_CTR *ctr ) SAFE_FREE( dbuf.dptr ); + DEBUG(10,("regdb_fetch_reg_keys: Exit [%d] items\n", num_items)); + return num_items; } |