Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML DIR="LTR"><HEAD> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> <STYLE TYPE="text/css"> <!--
BODY { font: normal 8pt Tahoma; background-color: #FFFFFF; } P { font: normal 8pt Tahoma; } .showhide { color: blue; text-decoration: underline; cursor: hand; } .callout { font: normal 8pt Tahoma; background-color: #E0E0E0; padding: 10pt; } .code { font: normal 8pt Courier New; } UL { font: normal 8pt Tahoma; list-style: square outside; margin-left: 0.25in; } OL { font: normal 8pt Tahoma; list-style: decimal outside; margin-left: 0.25in; } H1 { font: bold 12pt Tahoma; margin-bottom: -12pt; } H2 { font: bold 10pt Tahoma; margin-bottom: -12pt; } H3 { font: bold 8pt Tahoma; margin-bottom: -12pt; } H4 { font: italic 8pt Tahoma; margin-bottom: -12pt; } TABLE { font: normal 8pt Tahoma; text-align: left; padding: 2px; } CAPTION { font: bold 8pt Tahoma; text-align: left; padding: 2px; } THEAD { font: bold 8pt Tahoma; text-align: left; padding: 2px; background-color: #F0F0F0 } TH { font: bold 8pt Tahoma; text-align: left; padding: 2px; background-color: #F0F0F0 } TBODY { font: normal 8pt Tahoma; text-align: left; padding: 2px; } TD { font: normal 8pt Tahoma; text-align: left; padding: 2px; } TR { font: normal 8pt Tahoma; text-align: left; padding: 2px; } CODE { font-family: Courier New; } TT { font-family: Courier New; } KBD { font-family: Courier New; font-weight: bold; } VAR { font-family: Courier New; font-style: italic; } EM { font-style: italic; } I { font-style: italic; } STRONG { font-weight: bold; } B { font-weight: bold; } --> </STYLE></HEAD> <BODY TOPMARGIN="0"> <H1>Event Log</H1>
<P>The Event Log component is a dynamic-link library (.dll) that runs as part of Services.exe. Event Log stores and retrieves events that can be viewed through the event viewer. By default, there are three types of logs: Security, System, and Application. </P>
<H2>Component Configuration</H2>
<P>There are no configuration requirements for this component.</P>
<H2>Special Notes</H2>
<P>The event log service implements the following APIs:</P>
<P class="fineprint"></P>
<TABLE>
<TR VALIGN="top"> <TH width=50%>Function</TH> <TH width=50%>Description</TH> </TR>
<TR VALIGN="top"> <TD width=50%><B>BackupEventLog</B></TD> <TD width=50%>Saves the specified event log to a backup file.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>ClearEventLog</B></TD> <TD width=50%>Clears the specified event log, and optionally saves the current copy of the logfile to a backup file.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>CloseEventLog</B></TD> <TD width=50%>Closes a read handle to the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>DeregisterEventSource</B></TD> <TD width=50%>Closes a write handle to the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>GetEventLogInformation</B></TD> <TD width=50%>Retrieves information about the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>GetNumberOfEventLogRecords</B></TD> <TD width=50%>Retrieves the number of records in the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>GetOldestEventLogRecord</B></TD> <TD width=50%>Retrieves the absolute record number of the oldest record in the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>NotifyChangeEventLog</B></TD> <TD width=50%>Enables an application to receive notification when an event is written to the specified event logfile.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>OpenBackupEventLog</B></TD> <TD width=50%>Opens a handle to a backup event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>OpenEventLog</B></TD> <TD width=50%>Opens a handle to an event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>ReadEventLog</B></TD> <TD width=50%>Reads a whole number of entries from the specified event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>RegisterEventSource</B></TD> <TD width=50%>Retrieves a registered handle to an event log.</TD> </TR>
<TR VALIGN="top"> <TD width=50%><B>ReportEvent</B></TD> <TD width=50%>Writes an entry at the end of the specified event log.</TD> </TR> </TABLE><BR>
<P class="fineprint"></P>
<H2>For More Information</H2>
<P>For more information on this component, see the chapter on Debugging and Error Handling in the Platform Software Development Kit (SDK) at this <A HREF="http://msdn.microsoft.com">Microsoft Web site</A>.</P>
</BODY> </HTML>
|