Defines |
| #define | EVENT_MESSAGE_EVENTTEXT_BUFFER 1024*10 |
| #define | EVENT_MESSAGE_FILE_BUFFER 1024*10 |
| #define | EVENT_DLL_SEPARATOR L";" |
| #define | EVENT_MESSAGE_FILE L"EventMessageFile" |
| #define | EVENT_CATEGORY_MESSAGE_FILE L"CategoryMessageFile" |
| #define | EVENT_PARAMETER_MESSAGE_FILE L"ParameterMessageFile" |
| #define | MAX_LOADSTRING 255 |
Functions |
| ATOM | MyRegisterClass (HINSTANCE hInstance) |
| BOOL | InitInstance (HINSTANCE, int) |
| LRESULT CALLBACK | WndProc (HWND, UINT, WPARAM, LPARAM) |
| INT_PTR CALLBACK | About (HWND, UINT, WPARAM, LPARAM) |
| INT_PTR CALLBACK | EventDetails (HWND, UINT, WPARAM, LPARAM) |
| static INT_PTR CALLBACK | StatusMessageWindowProc (HWND, UINT, WPARAM, LPARAM) |
| int APIENTRY | wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) |
| static void | FreeRecords (void) |
| VOID | EventTimeToSystemTime (DWORD EventTime, SYSTEMTIME *pSystemTime) |
| void | TrimNulls (LPWSTR s) |
| BOOL | GetEventMessageFileDLL (IN LPCWSTR lpLogName, IN LPCWSTR SourceName, IN LPCWSTR EntryName, OUT LPWSTR ExpandedName) |
| BOOL | GetEventCategory (IN LPCWSTR KeyName, IN LPCWSTR SourceName, IN EVENTLOGRECORD *pevlr, OUT LPWSTR CategoryName) |
| BOOL | GetEventMessage (IN LPCWSTR KeyName, IN LPCWSTR SourceName, IN EVENTLOGRECORD *pevlr, OUT LPWSTR EventText) |
| VOID | GetEventType (IN WORD dwEventType, OUT LPWSTR eventTypeText) |
| BOOL | GetEventUserName (EVENTLOGRECORD *pelr, OUT LPWSTR pszUser) |
| static DWORD WINAPI | ShowStatusMessageThread (IN LPVOID lpParameter) |
| BOOL | QueryEventMessages (LPWSTR lpMachineName, LPWSTR lpLogName) |
| VOID | Refresh (VOID) |
| VOID | DisplayEvent (HWND hDlg) |
| static INT_PTR CALLBACK | StatusMessageWindowProc (IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam) |
Variables |
| static const LPWSTR | EVENT_SOURCE_APPLICATION = "Application" |
| static const LPWSTR | EVENT_SOURCE_SECURITY = "Security" |
| static const LPWSTR | EVENT_SOURCE_SYSTEM = "System" |
| static const WCHAR | szWindowClass [] = "EVENTVWR" |
| HINSTANCE | hInst |
| WCHAR | szTitle [MAX_LOADSTRING] |
| HWND | hwndMainWindow |
| HWND | hwndListView |
| HWND | hwndStatus |
| PEVENTLOGRECORD * | g_RecordPtrs = NULL |
| DWORD | g_TotalRecords = 0 |
| LPWSTR | lpSourceLogName = NULL |
| LPWSTR | lpComputerName = NULL |