|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| advapi32.lib
| Header File
| winbase.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
BackupEventLog
The BackupEventLog function saves the specified event log to a backup file. The function does
not clear the event log.
BOOL BackupEventLog(
HANDLE hEventLog,
| // handle to event log
| LPCTSTR lpBackupFileName
| // name of backup file
| );
|
|
Parameters
hEventLog
Identifies the open event log. This handle is returned by the OpenEventLog or OpenBackupEventLog function.
lpBackupFileName
Pointer to a null-terminated string that names the backup file. The backup
filename may contain a server name to save the backup file on a remote server.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
If the backup filename specifies a remote server, the event log handle must
identify a log on the local computer. You cannot back up an event logfile from a
remote server to a file on a remote server (even if the backup file and the
original log are on the same server).
See Also
OpenBackupEventLog, OpenEventLog
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|