Platform SDK: Debugging and Error Handling |
The GetEventLogInformation function retrieves information about the specified event log.
BOOL GetEventLogInformation( HANDLE hEventLog, // handle to event log DWORD dwInfoLevel, // information to retrieve LPVOID lpBuffer, // buffer for read data DWORD cbBufSize, // size of buffer in bytes LPDWORD pcbBytesNeeded // number of bytes needed );
Currently, no other information levels are defined.
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.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Event Logging Overview, Event Logging Functions, EVENTLOG_FULL_INFORMATION OpenEventLog, RegisterEventSource