summaryrefslogtreecommitdiffstats
path: root/source/registry
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-12-01 23:10:27 +0000
committerGerald Carter <jerry@samba.org>2005-12-01 23:10:27 +0000
commitb6fcad513d72939b3ed0e100f8bad2221586ee13 (patch)
tree2e2a05cc42ac2c51616c28c7607246bb6c093e24 /source/registry
parent6bb9f48b28e03ad1710d784b3300007803c4a6b6 (diff)
downloadsamba-b6fcad513d72939b3ed0e100f8bad2221586ee13.tar.gz
samba-b6fcad513d72939b3ed0e100f8bad2221586ee13.tar.xz
samba-b6fcad513d72939b3ed0e100f8bad2221586ee13.zip
r12002: patch from marcin to allow for the creation of a File value in the eventlog registry keys so that file properties can be displayed
Diffstat (limited to 'source/registry')
-rw-r--r--source/registry/reg_eventlog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/registry/reg_eventlog.c b/source/registry/reg_eventlog.c
index d802b18aca2..1c65c9b2178 100644
--- a/source/registry/reg_eventlog.c
+++ b/source/registry/reg_eventlog.c
@@ -33,6 +33,7 @@ BOOL eventlog_init_keys( void )
/* Find all of the eventlogs, add keys for each of them */
const char **elogs = lp_eventlog_list( );
pstring evtlogpath;
+ pstring evtfilepath;
REGSUBKEY_CTR *subkeys;
REGVAL_CTR *values;
uint32 uiDisplayNameId;
@@ -98,10 +99,12 @@ BOOL eventlog_init_keys( void )
regval_ctr_addvalue( values, "MaxSize", REG_DWORD,
( char * ) &uiMaxSize,
sizeof( uint32 ) );
+
regval_ctr_addvalue( values, "Retention", REG_DWORD,
( char * ) &uiRetention,
sizeof( uint32 ) );
init_unistr2( &data, *elogs, UNI_STR_TERMINATE );
+
regval_ctr_addvalue( values, "PrimaryModule", REG_SZ,
( char * ) data.buffer,
data.uni_str_len *
@@ -112,6 +115,11 @@ BOOL eventlog_init_keys( void )
( char * ) data.buffer,
data.uni_str_len *
sizeof( uint16 ) );
+
+ pstr_sprintf( evtfilepath, "%%SystemRoot%%\\system32\\config\\%s.tdb", *elogs );
+ init_unistr2( &data, evtfilepath, UNI_STR_TERMINATE );
+ regval_ctr_addvalue( values, "File", REG_EXPAND_SZ, ( char * ) data.buffer,
+ data.uni_str_len * sizeof( uint16 ) );
regdb_store_values( evtlogpath, values );
}