ReactOS 0.4.16-dev-981-g80eb313
|
#include "eventvwr.h"
#include "evtdetctl.h"
#include <sddl.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <pseh/pseh2.h>
Go to the source code of this file.
Classes | |
struct | _SETTINGS |
struct | param_strings_format_data |
Macros | |
#define | LVM_PROGRESS (WM_APP + 1) |
#define | EVENT_MESSAGE_EVENTTEXT_BUFFER (1024*10) |
#define | EVENT_MESSAGE_FILE_BUFFER (1024*10) |
#define | EVENT_DLL_SEPARATOR L";" |
#define | EVENT_CATEGORY_MESSAGE_FILE L"CategoryMessageFile" |
#define | EVENT_MESSAGE_FILE L"EventMessageFile" |
#define | EVENT_PARAMETER_MESSAGE_FILE L"ParameterMessageFile" |
#define | MAX_LOADSTRING 255 |
#define | SPLIT_WIDTH 4 |
Typedefs | |
typedef struct _SETTINGS | SETTINGS |
typedef struct _SETTINGS * | PSETTINGS |
#define EVENT_CATEGORY_MESSAGE_FILE L"CategoryMessageFile" |
Definition at line 39 of file eventvwr.c.
#define EVENT_DLL_SEPARATOR L";" |
Definition at line 38 of file eventvwr.c.
#define EVENT_MESSAGE_EVENTTEXT_BUFFER (1024*10) |
Definition at line 36 of file eventvwr.c.
#define EVENT_MESSAGE_FILE L"EventMessageFile" |
Definition at line 40 of file eventvwr.c.
#define EVENT_MESSAGE_FILE_BUFFER (1024*10) |
Definition at line 37 of file eventvwr.c.
#define EVENT_PARAMETER_MESSAGE_FILE L"ParameterMessageFile" |
Definition at line 41 of file eventvwr.c.
Definition at line 21 of file eventvwr.c.
#define MAX_LOADSTRING 255 |
Definition at line 43 of file eventvwr.c.
#define SPLIT_WIDTH 4 |
Definition at line 45 of file eventvwr.c.
Definition at line 1338 of file eventvwr.c.
Referenced by AllocEventLogFilter().
Definition at line 1283 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), and OpenUserEventLogFile().
PEVENTLOGFILTER AllocEventLogFilter | ( | IN BOOL | Information, |
IN BOOL | Warning, | ||
IN BOOL | Error, | ||
IN BOOL | AuditSuccess, | ||
IN BOOL | AuditFailure, | ||
IN PCWSTR Sources | OPTIONAL, | ||
IN PCWSTR Users | OPTIONAL, | ||
IN PCWSTR ComputerNames | OPTIONAL, | ||
IN ULONG | NumOfEventLogs, | ||
IN PEVENTLOG * | EventLogs | ||
) |
Definition at line 1359 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), and OpenUserEventLogFile().
DWORD ApplyParameterStringsToMessage | ( | IN LPCWSTR | lpMessageDllList, |
IN BOOL | bMessagePreFormatted, | ||
IN CONST LPCWSTR | pMessage, | ||
OUT LPWSTR * | pFinalMessage | ||
) |
Definition at line 903 of file eventvwr.c.
Referenced by GetEventMessage().
Definition at line 2793 of file eventvwr.c.
Referenced by wWinMain().
BOOL ClearEvents | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 2616 of file eventvwr.c.
Referenced by EventLogPropProc(), and WndProc().
VOID CloseUserEventLog | ( | IN PEVENTLOGFILTER | EventLogFilter, |
IN HTREEITEM | hti | ||
) |
Definition at line 2581 of file eventvwr.c.
Referenced by WndProc().
Definition at line 164 of file eventvwr.c.
Referenced by ProcessCmdLine().
VOID EnumEvents | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 2426 of file eventvwr.c.
HACK!!
Definition at line 1962 of file eventvwr.c.
Referenced by StartStopEnumEventsThread().
Definition at line 4280 of file eventvwr.c.
Referenced by WndProc().
Definition at line 1322 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), FreeLogList(), and OpenUserEventLogFile().
LONG EventLogFilter_AddRef | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 1416 of file eventvwr.c.
Referenced by ClearEvents(), EnumEventsThread(), EventLogProperties(), SaveEventLog(), and WndProc().
VOID EventLogFilter_Free | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 1402 of file eventvwr.c.
Referenced by EventLogFilter_Release(), and FreeLogFilterList().
LONG EventLogFilter_Release | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
RemoveEntryList(&EventLogFilter->ListEntry);
Definition at line 1422 of file eventvwr.c.
Referenced by ClearEvents(), CloseUserEventLog(), EnumEventsThread(), EventLogProperties(), SaveEventLog(), and WndProc().
INT_PTR EventLogProperties | ( | HINSTANCE | hInstance, |
HWND | hWndParent, | ||
PEVENTLOGFILTER | EventLogFilter | ||
) |
Definition at line 4214 of file eventvwr.c.
Referenced by WndProc().
Definition at line 4093 of file eventvwr.c.
Referenced by EventLogProperties().
VOID EventTimeToSystemTime | ( | IN DWORD | EventTime, |
OUT PSYSTEMTIME | pSystemTime | ||
) |
Definition at line 713 of file eventvwr.c.
Referenced by EnumEventsThread().
Definition at line 1905 of file eventvwr.c.
Referenced by EnumEventsThread().
BOOL FilterByType | ( | IN PEVENTLOGFILTER | EventLogFilter, |
IN PEVENTLOGRECORD | pevlr | ||
) |
Definition at line 1889 of file eventvwr.c.
Referenced by EnumEventsThread().
Definition at line 1161 of file eventvwr.c.
Referenced by FormatFileSizeWithBytes().
LPWSTR FormatFileSizeWithBytes | ( | const PULARGE_INTEGER | lpQwSize, |
LPWSTR | pwszResult, | ||
UINT | cchResultMax | ||
) |
Definition at line 1184 of file eventvwr.c.
Referenced by InitPropertiesDlg().
Definition at line 1101 of file eventvwr.c.
Referenced by FormatByteSize().
Definition at line 3019 of file eventvwr.c.
Referenced by wWinMain().
Definition at line 3003 of file eventvwr.c.
Referenced by wWinMain().
Definition at line 1871 of file eventvwr.c.
Referenced by EnumEventsThread(), and StartStopEnumEventsThread().
BOOL GetDisplayNameFileAndID | ( | IN LPCWSTR | lpLogName, |
OUT PWCHAR | lpModuleName, | ||
OUT PDWORD | pdwMessageID | ||
) |
Definition at line 2713 of file eventvwr.c.
Referenced by BuildLogListAndFilterList().
BOOL GetEventCategory | ( | IN LPCWSTR | KeyName, |
IN LPCWSTR | SourceName, | ||
IN PEVENTLOGRECORD | pevlr, | ||
OUT PWCHAR | CategoryName | ||
) |
Definition at line 1589 of file eventvwr.c.
Referenced by EnumEventsThread().
BOOL GetEventMessage | ( | IN LPCWSTR | KeyName, |
IN LPCWSTR | SourceName, | ||
IN PEVENTLOGRECORD | pevlr, | ||
OUT PWCHAR | EventText | ||
) |
Definition at line 1639 of file eventvwr.c.
Referenced by DisplayEvent().
BOOL GetEventMessageFileDLL | ( | IN LPCWSTR | lpLogName, |
IN LPCWSTR | SourceName, | ||
IN LPCWSTR | EntryName, | ||
OUT PWCHAR | lpModuleName | ||
) |
Definition at line 1528 of file eventvwr.c.
Referenced by GetEventCategory(), and GetEventMessage().
Definition at line 1770 of file eventvwr.c.
Referenced by EnumEventsThread().
Definition at line 1800 of file eventvwr.c.
Referenced by EnumEventsThread().
DWORD GetExpandedFilePathName | ( | IN LPCWSTR ComputerName | OPTIONAL, |
IN LPCWSTR | lpFileName, | ||
OUT LPWSTR lpFullFileName | OPTIONAL, | ||
IN DWORD | nSize | ||
) |
Definition at line 1455 of file eventvwr.c.
Referenced by GetDisplayNameFileAndID(), GetEventMessageFileDLL(), and InitPropertiesDlg().
BOOL GetFileTimeString | ( | LPFILETIME | lpFileTime, |
LPWSTR | pwszResult, | ||
UINT | cchResult | ||
) |
Definition at line 1218 of file eventvwr.c.
Referenced by InitPropertiesDlg().
LPWSTR GetMessageStringFromDll | ( | IN LPCWSTR | lpMessageDll, |
IN DWORD | dwFlags, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | nSize, | ||
IN va_list *Arguments | OPTIONAL | ||
) |
Definition at line 738 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), and GetMessageStringFromDllList().
LPWSTR GetMessageStringFromDllList | ( | IN LPCWSTR | lpMessageDllList, |
IN DWORD | dwFlags, | ||
IN DWORD | dwMessageId, | ||
IN DWORD | nSize, | ||
IN va_list *Arguments | OPTIONAL | ||
) |
Definition at line 842 of file eventvwr.c.
Referenced by ApplyParameterStringsToMessage(), GetEventCategory(), and GetEventMessage().
PEVENTLOGFILTER GetSelectedFilter | ( | OUT HTREEITEM *phti | OPTIONAL | ) |
Definition at line 2436 of file eventvwr.c.
Referenced by EventLogPropProc(), and WndProc().
Definition at line 3037 of file eventvwr.c.
Referenced by wWinMain().
Definition at line 3844 of file eventvwr.c.
Referenced by EventLogPropProc().
Definition at line 347 of file eventvwr.c.
Definition at line 2686 of file eventvwr.c.
Referenced by wWinMain().
Definition at line 2526 of file eventvwr.c.
Referenced by WndProc().
Definition at line 2462 of file eventvwr.c.
Referenced by OpenUserEventLog(), and wWinMain().
Definition at line 184 of file eventvwr.c.
Referenced by regdump(), and wWinMain().
VOID Refresh | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 2674 of file eventvwr.c.
Definition at line 3231 of file eventvwr.c.
Referenced by LoadSettings(), and WndProc().
VOID SaveEventLog | ( | IN PEVENTLOGFILTER | EventLogFilter | ) |
Definition at line 2543 of file eventvwr.c.
Referenced by WndProc().
Definition at line 4034 of file eventvwr.c.
Referenced by EventLogPropProc().
Definition at line 498 of file eventvwr.c.
Definition at line 140 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), ClearEvents(), EnumEventsThread(), GetDisplayNameFileAndID(), InitPropertiesDlg(), OpenUserEventLogFile(), ProcessCmdLine(), SaveEventLog(), SavePropertiesDlg(), ShutDown_Hibernate(), ShutDown_LockComputer(), ShutDown_LogOffUser(), ShutDown_PowerOff(), ShutDown_Reboot(), and ShutDown_StandBy().
Definition at line 2315 of file eventvwr.c.
Referenced by wWinMain().
HTREEITEM TreeViewAddItem | ( | IN HWND | hTreeView, |
IN HTREEITEM | hParent, | ||
IN LPWSTR | lpText, | ||
IN INT | Image, | ||
IN INT | SelectedImage, | ||
IN LPARAM | lParam | ||
) |
Definition at line 1253 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), InitInstance(), and OpenUserEventLogFile().
Definition at line 1441 of file eventvwr.c.
Referenced by GetEventCategory(), and GetEventMessage().
FIXME: Reenable this check once menu items are correctly disabled when no event is selected, etc. MessageBoxW(hWnd, L"No selected items!", szTitle, MB_OK | MB_ICONERROR);
Definition at line 3301 of file eventvwr.c.
Referenced by MyRegisterClass().
int APIENTRY wWinMain | ( | HINSTANCE | hInstance, |
HINSTANCE | hPrevInstance, | ||
LPWSTR | lpCmdLine, | ||
int | nShowCmd | ||
) |
This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER.PD within this package.
Definition at line 559 of file eventvwr.c.
PEVENTLOGFILTER ActiveFilter = NULL |
Definition at line 87 of file eventvwr.c.
Referenced by CloseUserEventLog(), EnumEventsThread(), FreeLogFilterList(), and StartStopEnumEventsThread().
BYTE bSplit = 0 |
Definition at line 58 of file eventvwr.c.
Referenced by WndProc().
SIZE_T cbUserLogsSize = 0 |
Definition at line 76 of file eventvwr.c.
Referenced by ProcessCmdLine(), and wWinMain().
|
static |
Definition at line 4276 of file eventvwr.c.
Referenced by EventDetails(), LISTVIEW_SetColumnWidth(), TextTool::OnButtonUp(), and OnSize().
|
static |
Definition at line 4277 of file eventvwr.c.
Referenced by AdjustStatusMessageWindow(), and EventDetails().
|
static |
Definition at line 4276 of file eventvwr.c.
Referenced by EventDetails(), TextTool::OnButtonUp(), and OnSize().
|
static |
Definition at line 4277 of file eventvwr.c.
Referenced by AdjustStatusMessageWindow(), and EventDetails().
PEVENTLOGFILTER EnumFilter = NULL |
Definition at line 96 of file eventvwr.c.
Referenced by CloseUserEventLog(), EnumEvents(), and StartStopEnumEventsThread().
Definition at line 24 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), GetDisplayNameFileAndID(), GetEventMessageFileDLL(), InitPropertiesDlg(), and SavePropertiesDlg().
LIST_ENTRY EventLogFilterList |
Definition at line 86 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), FreeLogFilterList(), OpenUserEventLogFile(), and wWinMain().
LIST_ENTRY EventLogList |
Definition at line 85 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), FreeLogList(), OpenUserEventLogFile(), and wWinMain().
Definition at line 23 of file eventvwr.c.
Referenced by InitInstance(), and MyRegisterClass().
|
static |
Definition at line 25 of file eventvwr.c.
Referenced by LoadSettings(), and SaveSettings().
PEVENTLOGRECORD* g_RecordPtrs = NULL |
Definition at line 82 of file eventvwr.c.
Referenced by EnumEventsThread(), and FreeRecords().
DWORD g_TotalRecords = 0 |
Definition at line 81 of file eventvwr.c.
Referenced by EnumEventsThread(), and FreeRecords().
Definition at line 89 of file eventvwr.c.
Referenced by StartStopEnumEventsThread().
HINSTANCE hInst |
Definition at line 48 of file eventvwr.c.
Referenced by ClearEvents(), DisplayUsage(), EnumEventsThread(), EventDetails(), EventLogPropProc(), FormatByteSize(), GetEventMessage(), GetEventType(), InitInstance(), InitPropertiesDlg(), WndProc(), and wWinMain().
Definition at line 78 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), GetDisplayNameFileAndID(), GetEventMessageFileDLL(), InitPropertiesDlg(), SavePropertiesDlg(), and wWinMain().
HMENU hMainMenu |
Definition at line 70 of file eventvwr.c.
Referenced by EnumEventsThread(), and WndProc().
Definition at line 98 of file eventvwr.c.
Referenced by CloseUserEventLog(), EnumEvents(), StartStopEnumEventsThread(), and wWinMain().
Definition at line 97 of file eventvwr.c.
Referenced by StartStopEnumEventsThread(), and wWinMain().
Definition at line 90 of file eventvwr.c.
Referenced by EnumEventsThread(), and StartStopEnumEventsThread().
Definition at line 72 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), InitInstance(), and WndProc().
Definition at line 72 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), InitInstance(), and WndProc().
Definition at line 72 of file eventvwr.c.
Referenced by InitInstance(), OpenUserEventLogFile(), and WndProc().
Definition at line 4274 of file eventvwr.c.
Referenced by EventDetails().
HWND hwndEventDetails |
Definition at line 67 of file eventvwr.c.
Referenced by EnumEventsThread(), InitInstance(), ResizeWnd(), and WndProc().
Definition at line 4275 of file eventvwr.c.
Referenced by EventDetails().
HWND hwndListView |
Definition at line 66 of file eventvwr.c.
Referenced by CDesktopBrowser::_Resize(), AddEmptyItem(), AddUserProfile(), AddUserProfiles(), AddValuesToList(), AdvProcDetailsDlgProc(), BrowseRequiredFolder(), ChangeUserProfileType(), CopyUserProfile(), DeleteUserProfile(), DisplayClassCoinstallers(), DisplayClassProperties(), DisplayCsFlags(), DisplayCurrentPowerState(), DisplayDeviceCoinstallers(), DisplayDeviceProperties(), DisplayDevicePropertyText(), DisplayDeviceRelations(), DisplayDevNodeEnumerator(), DisplayDevNodeFlags(), DisplayEvent(), DisplayEventData(), DisplayMatchingDeviceId(), DisplayPowerCapabilities(), DisplayPowerStateMappings(), EditVariableDlgProc(), EnumEventsThread(), EventDetailsCtrl(), GatherDataFromListView(), GetEnvironmentVariables(), GetSelectedListViewItem(), CDesktopBrowser::Initialize(), InitInstance(), MoveListItem(), NtUserSetShellWindowEx(), OnDeleteVariable(), OnEditVariable(), OnGroupsPageInitDialog(), OnInitDialog(), OnInitEnvironmentDialog(), OnNewVariable(), ReleaseListViewItems(), ResizeWnd(), SetAllVars(), SetEnvironmentDialogListViewColumns(), SetGroupsListColumns(), SetListViewColumns(), SetUsersListColumns(), StartStopEnumEventsThread(), UpdateButtonState(), UpdateDetailsDlg(), UpdateGroupsList(), UpdateUsersList(), and WndProc().
Definition at line 64 of file eventvwr.c.
Referenced by ClearEvents(), EnumEventsThread(), InitInstance(), ShowWin32Error(), WndProc(), and wWinMain().
HWND hwndStatus |
Definition at line 68 of file eventvwr.c.
Referenced by EnumEventsThread(), InitInstance(), ResizeWnd(), and WndProc().
HWND hwndStatusProgress |
Definition at line 69 of file eventvwr.c.
Referenced by EnumEventsThread(), InitInstance(), and ResizeWnd().
HWND hwndTreeView |
Definition at line 65 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), Child_WndProc(), CloseUserEventLog(), GetSelectedFilter(), InitInstance(), OpenUserEventLogFile(), ResizeWnd(), ShowContextMenu(), TreeView_GetItemData(), ViewDlg_OnInitDialog(), ViewDlg_OnTreeViewClick(), ViewDlg_OnTreeViewKeyDown(), ViewDlg_RestoreDefaults(), ViewDlg_ToggleCheckItem(), ViewTree_InsertAll(), ViewTree_InsertEntry(), and WndProc().
Definition at line 74 of file eventvwr.c.
Referenced by BuildLogListAndFilterList(), DeleteProfileA(), DeleteProfileW(), GetDisplayNameFileAndID(), GetEventMessageFileDLL(), GetEventUserName(), IsValidComputerName(), ProcessCmdLine(), SetComputerNameA(), SetComputerNameW(), and wWinMain().
Definition at line 75 of file eventvwr.c.
Referenced by ProcessCmdLine(), and wWinMain().
INT nHSplitPos |
Definition at line 57 of file eventvwr.c.
Referenced by InitInstance(), ResizeWnd(), SaveSettings(), and WndProc().
INT nVSplitPos |
Definition at line 56 of file eventvwr.c.
Referenced by InitInstance(), ResizeWnd(), SaveSettings(), and WndProc().
Definition at line 116 of file eventvwr.c.
OPENFILENAMEW sfn |
Definition at line 101 of file eventvwr.c.
Referenced by ClearEvents(), create_name(), DialogSaveFile(), CMainWindow::GetSaveFileName(), InitInstance(), OpenUserEventLog(), Preview_pSaveImageAs(), SaveClipboardToFile(), and SaveEventLog().
Definition at line 28 of file eventvwr.c.
Referenced by BuildLogListAndFilterList().
WCHAR szEmptyList[MAX_LOADSTRING] |
Definition at line 53 of file eventvwr.c.
Referenced by wWinMain().
WCHAR szLoadingWait[MAX_LOADSTRING] |
Definition at line 52 of file eventvwr.c.
Referenced by wWinMain().
WCHAR szSaveFilter[MAX_LOADSTRING] |
Definition at line 54 of file eventvwr.c.
Referenced by InitInstance().
WCHAR szStatusBarTemplate[MAX_LOADSTRING] |
Definition at line 51 of file eventvwr.c.
Referenced by EnumEventsThread(), and wWinMain().
WCHAR szTitle[MAX_LOADSTRING] |
Definition at line 49 of file eventvwr.c.
Referenced by ClearEvents(), DisplayUsage(), EnumEventsThread(), EventDetails(), EventLogPropProc(), InitInstance(), ShowWin32Error(), WndProc(), and wWinMain().
WCHAR szTitleTemplate[MAX_LOADSTRING] |
Definition at line 50 of file eventvwr.c.
Referenced by EnumEventsThread(), and wWinMain().