The information in this article applies to:
SYMPTOMSThe ReadEventLog() Win32 API function might fail and GetLastError() returns 87 (ERROR_INVALID_PARAMETERS) while having all valid parameters passed to ReadEventLog(). CAUSEThe Event Logging Service fails to process the read operation when an application uses the ReadEventLog() function with the EVENTLOG_SEEK_READ flag to read large event log file. RESOLUTIONThe calling application should not use the EVENTLOG_SEEK_READ flag with ReadEventLog if the size of the event log file is not determined. Instead, use the EVENTLOG_SEQUENTIAL_READ flag and use repeated calls to ReadEventLog to implement code to scan to the record of interest. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
This problem is only encountered when the .EVT file is 2MB in size or
larger. The event log file is found in the %SystemRoot%\system32\config
directory. For example, the .EVT file for the Application log is
AppEvent.evt.
REFERENCES
For more information about ReadEventLog see:
Additional query words:
Keywords : kbAPI kbEventLog kbKernBase kbDSupport kbGrpKernBase |
Last Reviewed: December 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |