ComputerDictionaries.org      Computer terms spelled out...
Home -› Software -› Win32 API Glossary -› ClearEventLog
Online dictionary
From all Dictionaries     Only from this Category     Only from this Dictionary
 

Dictionaries by Category


High-Tech News

Definition Of:

ClearEventLog

Win32 API GlossaryWin32 API Glossary
The ClearEventLog function clears the specified event log, and optionally saves the current copy of the logfile to a backup file.

BOOL ClearEventLog(

HANDLE hEventLog, // handle to event log
LPCTSTR lpBackupFileName // name of backup file
);


Parameters

hEventLog

Identifies the event log to be cleared. This handle is returned by the OpenEventLog function.

lpBackupFileName

Points to the null-terminated string specifying the name of a file in which a current copy of the event logfile will be placed. If this file already exists, the function fails.
The backup filename may contain a server name to save the backup file on a remote server.
If the lpBackupFileName parameter is NULL, the current event logfile is not backed up.



Return Values

If the function succeeds, the return value is nonzero. The specified event log has been backed up (if lpBackupFileName is not NULL) and then cleared.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The ClearEventLog function fails if the event log is empty.
After this function returns, any handles that reference the cleared event log cannot be used to read the log.
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).
The ClearEventLog function is used to optionally back up an existing logfile of the module represented by hEventLog. The function backs up the logfile to another file, and then clears the existing logfile. The caller must have write permission for the path specified, and must also have permission to move the current logfile. If a file already exists with the same name as lpBackupFileName, ClearEventLog fails.

See Also

OpenEventLog

 

Win32 API Glossary INDEX:

List of Terms: Terms beginning with "A", Page 1

A B C D E F G H I K L S W
1 2 3 4 5 6 7 8

A: Page 1 of 8.

ABC
ABCFLOAT
AbnormalTermination
AbortDoc
AbortPath
AbortPrinter
AbortProc
AbortSystemShutdown
ACCEL
AccelTableEntry...

Other Resources

Online Dictionary

WhatIs.com - Tech Dictionary & Encyclopedia

Webopedia

FOLDOC Computing Dictionary

IBM Terminology

Microsoft Glossary

HP Computing glossary

Oracle Glossary

Computer History Museum

FILExt - The File Extension Source

ComputerUser Dictionary


Home   |   Translation  |   Dictionary   |   About Us   |   Contact Us
ComputerDictionaries.org
  Powered by Babylon - Translation Software
Copyright 2008, ComputerDictionaries.org. All rights reserved.