summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-12-01 23:10:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:41 -0500
commit15615dc1f6d3578fc4f14a19babb265be37bf576 (patch)
tree55646101106f3e9ec51a0fa35977190a72e27eb5 /source3
parentbd21ee68e5af675a4cd9cfcfb2301ad260c116d5 (diff)
downloadsamba-15615dc1f6d3578fc4f14a19babb265be37bf576.tar.gz
samba-15615dc1f6d3578fc4f14a19babb265be37bf576.tar.bz2
samba-15615dc1f6d3578fc4f14a19babb265be37bf576.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
(This used to be commit 270fef5175559ba6345bb2c3e264c527a6a084c5)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_eventlog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/registry/reg_eventlog.c b/source3/registry/reg_eventlog.c
index d802b18aca..1c65c9b217 100644
--- a/source3/registry/reg_eventlog.c
+++ b/source3/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 );
}