术语 | backupeventlog |
释义 | BackupEventLog 语法: C++ BOOL BackupEventLog( __in HANDLE hEventLog, __in LPCTSTR lpBackupFileName ); BackupEventLog功能 保存指定的事件日志备份文件。该函数不清除事件日志。 参数 hEventLog [in] 句柄到打开事件日志。该OpenEventLog函数返回此句柄。 lpBackupFileName [in] 在备份文件的绝对或相对路径。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 该BackupEventLog函数失败如果用户没有SE_BACKUP_NAME特权与ERROR_PRIVILEGE_NOT_HELD错误。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryAdvapi32.lib DLLAdvapi32.dll Unicode和ANSI namesBackupEventLogW(Unicode)和BackupEventLogA(ANSI)的 参见 OpenBackupEventLog OpenEventLog 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月6日 ==英文原文==BackupEventLog Function Saves the specified event log to a backup file. The function does not clear the event log. Syntax C++ BOOL BackupEventLog( __in HANDLE hEventLog, __in LPCTSTR lpBackupFileName ); Parameters hEventLog [in] A handle to the open event log. The OpenEventLog function returns this handle. lpBackupFileName [in] The absolute or relative path of the backup file. Return Value 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 The BackupEventLog function fails with the ERROR_PRIVILEGE_NOT_HELD error if the user does not have the SE_BACKUP_NAME privilege. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryAdvapi32.lib DLLAdvapi32.dll Unicode and ANSI namesBackupEventLogW (Unicode) and BackupEventLogA (ANSI) See Also OpenBackupEventLog OpenEventLog Send comments about this topic to Microsoft Build date: 8/6/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa363635(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。