VFP and .NET Interop
wwdotnetbridge eventlogs
Gravatar is a globally recognized avatar based on your email address. wwdotnetbridge eventlogs
  n/a
  All
  Dec 17, 2014 @ 01:57pm
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

© 1996-2024