I think you'll have to use PInvoke and OpenBackupEventLog.

[DllImport("advapi32.dll", EntryPoint="OpenBackupEventLog")] public static
extern int OpenBackupEventLogA(string lpUNCServerName, string lpFileName)

I believe the log name that you would use with EventLog is "Backup of
application", or something of that nature.

I haven't tried it; so, I don't knof if it will even work.  You may have to
avoid EventLog altogether.

Let us know if that works.

-- Peter
http://www.peterRitchie.com/

On Fri, 22 Apr 2005 06:07:40 -0400, Pete Lutwyche
<[EMAIL PROTECTED]> wrote:

>I've seen lots of examples where the System.Diagnostics.EventLog class is
>used to read from the current Application, Security or System log on a
>machine.
>
>What I need to do is loop over several hundred saved log files (*.evt file
>extension, saved in some folder or other) looking for certain information.
>I wanted to use System.Diagnostics.EventLog to do this, but can't see how.
>Does anyone have any experience of solving a similar problem?

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to