From bd509a81cb6c295988a1626adfe394c9778c005e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sat, 25 Jun 2005 17:31:40 +0000 Subject: r7908: * change REGISTRY_HOOK api to use const (fix compiler warning in init_registry_data() * Add means of storing registry values in registry.tdb * add builtin_registry_values[] array for REG_DWORD and REG_SZ values needed during startup * Finish up RegDeleteValue() and RegSetValue() * Finish up regdb_store_reg_values() and regdb_fetch_reg_values() I can now create and retrieve values using regedit.exe on Win2k. bin/net -S rain -U% rpc registry enumerate 'hklm\software\samba' Valuename = Version Type = REG_SZ Data = 3.0.20 Next is to do the virtual writes in reg_printing.c and I'll be done with Print Migrator (yeah! finally) (This used to be commit 3d837e58db9ded64d6b85f047012c7d487be4627) --- source3/include/rpc_reg.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source3/include') diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h index 7ef2696228..7d6469bc8e 100644 --- a/source3/include/rpc_reg.h +++ b/source3/include/rpc_reg.h @@ -92,10 +92,10 @@ typedef struct { /* functions for enumerating subkeys and values */ - int (*fetch_subkeys)( char *key, REGSUBKEY_CTR *subkeys); - int (*fetch_values) ( char *key, REGVAL_CTR *val ); - BOOL (*store_subkeys)( char *key, REGSUBKEY_CTR *subkeys ); - BOOL (*store_values)( char *key, REGVAL_CTR *val ); + int (*fetch_subkeys)( const char *key, REGSUBKEY_CTR *subkeys); + int (*fetch_values) ( const char *key, REGVAL_CTR *val ); + BOOL (*store_subkeys)( const char *key, REGSUBKEY_CTR *subkeys ); + BOOL (*store_values)( const char *key, REGVAL_CTR *val ); BOOL (*reg_access_check)( const char *keyname, uint32 requested, uint32 *granted, NT_USER_TOKEN *token ); } REGISTRY_OPS; @@ -252,7 +252,6 @@ typedef struct { } REG_Q_DELETE_VALUE; typedef struct { - POLICY_HND key_pol; WERROR status; } REG_R_DELETE_VALUE; -- cgit