Add an Event Log Viewer coded by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)

The icons were taken from the comctl32.dll.
I did not add it to the "reactos.dff" as ReactOS doesn't support Event Logs yet.
See issue #2602 for more details.

svn path=/trunk/; revision=29547
This commit is contained in:
Colin Finck 2007-10-13 10:15:37 +00:00
parent bdd694ff41
commit 3b9ccf3f7d
12 changed files with 1461 additions and 10 deletions

View file

@ -4,6 +4,9 @@
<directory name="devmgmt">
<xi:include href="devmgmt/devmgmt.rbuild" />
</directory>
<directory name="eventvwr">
<xi:include href="eventvwr/eventvwr.rbuild" />
</directory>
<directory name="servman">
<xi:include href="servman/servman.rbuild" />
</directory>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
#pragma once
#include "resource.h"

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?>
<rbuild xmlns:xi="http://www.w3.org/2001/XInclude">
<module name="eventvwr" type="win32gui" installbase="system32" installname="eventvwr.exe" allowwarnings="true">
<include base="eventvwr">.</include>
<define name="__REACTOS__" />
<define name="__USE_W32API" />
<define name="_WIN32_IE">0x600</define>
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>user32</library>
<library>comctl32</library>
<library>advapi32</library>
<file>eventvwr.c</file>
<file>eventvwr.rc</file>
</module>
</rbuild>

View file

@ -0,0 +1,13 @@
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Event Log Viewer\0"
#define REACTOS_STR_INTERNAL_NAME "eventvwr\0"
#define REACTOS_STR_ORIGINAL_FILENAME "eventvwr.exe\0"
#include <reactos/version.rc>
#include "rsrc.rc"

View file

@ -0,0 +1,211 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_EVENTVWR ICON "res\\eventvwr.ico"
IDI_WARNINGICON ICON "res\\warning.ico"
IDI_INFORMATIONICON ICON "res\\info.ico"
IDI_ERRORICON ICON "res\\error.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDC_EVENTVWR MENU
BEGIN
POPUP "&Log"
BEGIN
MENUITEM "&Aplication", ID_LOG_APPLICATION, CHECKED
MENUITEM "&Security", ID_LOG_SECURITY
MENUITEM "&System", ID_LOG_SYSTEM
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&View"
BEGIN
MENUITEM "&Refresh", IDM_REFRESH
END
MENUITEM "&Options", ID_OPTIONS
POPUP "&Help"
BEGIN
MENUITEM "H&elp", IDM_HELP
MENUITEM SEPARATOR
MENUITEM "&About ...", IDM_ABOUT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
IDC_EVENTVWR ACCELERATORS
BEGIN
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 230, 75
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_CAPTION | WS_SYSMENU
CAPTION "About"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
ICON IDI_EVENTVWR,IDC_MYICON,14,9,21,20
LTEXT "ReactOS Event Viewer Version 1.0",IDC_STATIC,49,10,119,8,SS_NOPREFIX
LTEXT "Copyright (C) 2007 Marc Piulachs (marc.piulachs@codexchange.net)",IDC_STATIC,49,20,119,22
DEFPUSHBUTTON "OK",IDOK,90,48,42,16,WS_GROUP
END
IDD_PROGRESSBOX DIALOGEX 0, 0, 230, 40
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER
CAPTION "Wait.."
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
LTEXT "Loading Event Logs. Please wait ...",IDC_STATIC,49,15,119,8,SS_NOPREFIX
END
IDD_EVENTDETAILDIALOG DIALOGEX 0, 0, 276, 282
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_CONTEXTHELP
CAPTION "Event Detail"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "&Close",IDOK,12,258,50,14
PUSHBUTTON "&Previous",IDPREVIOUS,78,258,50,14
PUSHBUTTON "&Next",IDNEXT,144,258,50,14
PUSHBUTTON "&Help",IDHELP,210,258,50,14
EDITTEXT IDC_EVENTTEXTEDIT,14,81,247,108,ES_MULTILINE | ES_READONLY
LTEXT "&Description:",IDC_STATIC,15,70,39,8
LTEXT "Date:",IDC_STATIC,14,14,36,8
LTEXT "Static",IDC_EVENTDATESTATIC,56,14,72,8
LTEXT "Time:",IDC_STATIC,14,27,36,8
LTEXT "Static",IDC_EVENTTIMESTATIC,56,27,72,8
LTEXT "&User:",IDC_STATIC,14,41,36,8
LTEXT "Static",IDC_EVENTUSERSTATIC,56,41,72,8
LTEXT "&Computer:",IDC_STATIC,14,54,36,8
LTEXT "Static",IDC_EVENTCOMPUTERSTATIC,56,54,72,8
LTEXT "EventID :",IDC_STATIC,133,15,36,8
LTEXT "Static",IDC_EVENTIDSTATIC,175,15,87,8
LTEXT "Source:",IDC_STATIC,133,28,36,8
LTEXT "Static",IDC_EVENTSOURCESTATIC,175,28,87,8
LTEXT "Type:",IDC_STATIC,133,42,36,8
LTEXT "Static",IDC_EVENTTYPESTATIC,175,42,87,8
LTEXT "Category:",IDC_STATIC,133,55,36,8
LTEXT "Static",IDC_EVENTCATEGORYSTATIC,175,55,87,8
EDITTEXT IDC_EVENTDATAEDIT,14,204,247,44,ES_MULTILINE | ES_READONLY
LTEXT "D&ata",IDC_STATIC,14,194,16,8
CONTROL "&Bytes",IDC_BYTESRADIO,"Button",BS_AUTORADIOBUTTON,39,194,34,10
CONTROL "&Word",IDC_WORDRADIO,"Button",BS_AUTORADIOBUTTON,77,194,33,10
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_EVENTDETAILDIALOG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 269
TOPMARGIN, 7
BOTTOMMARGIN, 275
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_APP_TITLE "Event Viewer"
IDC_EVENTVWR "EVENTVWR"
IDC_EVENTSTRINGIDNOTFOUND "The description for Event ID ( %lu ) in Source ( %s ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer."
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

View file

@ -0,0 +1,62 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by eventvwr.rc
//
#define IDC_MYICON 2
#define IDNEXT 3
#define IDHELP 4
#define IDD_EVENTVWR_DIALOG 102
#define IDD_PROGRESSBOX 150
#define IDS_APP_TITLE 103
#define IDD_ABOUTBOX 103
#define IDM_ABOUT 104
#define IDM_EXIT 105
#define IDI_EVENTVWR 107
#define IDI_SMALL 108
#define IDC_EVENTVWR 109
#define IDC_EVENTSTRINGIDNOTFOUND 209
#define IDC_PROCESSPROGRESS 250
#define IDR_MAINFRAME 128
#define IDI_WARNINGICON 129
#define IDI_INFORMATIONICON 130
#define IDI_ERRORICON 131
#define IDD_EVENTDETAILDIALOG 132
#define IDC_EVENTTEXTEDIT 1000
#define IDC_EVENTDATESTATIC 1001
#define IDC_EVENTTIMESTATIC 1002
#define IDC_EVENTUSERSTATIC 1003
#define IDC_EVENTCOMPUTERSTATIC 1004
#define IDC_EVENTIDSTATIC 1005
#define IDC_EVENTSOURCESTATIC 1006
#define IDC_EVENTTYPESTATIC 1007
#define IDC_EVENTCATEGORYSTATIC 1008
#define IDPREVIOUS 1009
#define IDC_EVENTTEXTEDIT2 1010
#define IDC_BYTESRADIO 1011
#define IDC_WORDRADIO 1013
#define IDC_EVENTDATAEDIT 1014
#define ID_LOG_APLICATION 32771
#define ID_LOG_SECURITY 32772
#define ID_LOG_SYSTEM 32773
#define ID_LOG_APPLICATION 32774
#define ID_HELP_HELP 32775
#define ID_HELP 32776
#define ID_OPTIONS 32777
#define ID_VIEW 32778
#define IDM_HELP 32779
#define ID_VIEW_REFRESH 32780
#define ID_REFRESH 32781
#define IDM_REFRESH 32782
#define IDC_STATIC -1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 133
#define _APS_NEXT_COMMAND_VALUE 32783
#define _APS_NEXT_CONTROL_VALUE 1012
#define _APS_NEXT_SYMED_VALUE 110
#endif
#endif

View file

@ -0,0 +1,6 @@
#include <windows.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "lang/en-US.rc"