BackupEventLog

[DllImport("Advapi32.dll", SetLastError = true)]
public static extern bool BackupEventLog(
   IntPtr hEventLog,
   string lpBackupFileName
);

Microsoft documentation: Link

Last updated