VFP and .NET Interop
wwdotnetbridge eventlogs
HI Rick,
Following your examples to look for eventlog entries, how would I search for eventid "4625" which is keyword "Audit Failure"
I tried the following and does not yield a lot of entries...
lcSource = 'Microsoft Windows security auditing'
*lcSource = ''
*loEventLog = loBridge.Createinstance("System.Diagnostics.EventLog","Security",".",lcSource)
loEventLog = loBridge.Createinstance("System.Diagnostics.EventLog")
loEventLog.Source = lcSource
loEventLog.Log = "Security"
*** Turn Eventlog Entries into a ComArray Class
*** Indirect access automatically turns .NET array into ComArray
loEvents = loBridge.GetProperty(loEventLog,"Entries")
Thanks for your help.
Joy