summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--AUTHORS3
-rw-r--r--COPYING2
-rw-r--r--README.RELEASE (renamed from README)0
-rw-r--r--help/klog.rtf5
-rw-r--r--help/klog.xml5
-rw-r--r--install/install.cpp16
-rw-r--r--install/install.rc10
-rw-r--r--klog.rc14
8 files changed, 30 insertions, 25 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..a9fb0c7
--- a/dev/null
+++ b/AUTHORS
@@ -0,0 +1,3 @@
1Klever dissected:
2 Michael 'hacker' Krelin <hacker@klever.net>
3 Leonid Ivanov <kamel@klever.net>
diff --git a/COPYING b/COPYING
index 997e508..9abe63f 100644
--- a/COPYING
+++ b/COPYING
@@ -1,19 +1,19 @@
1Copyright (c) 1998, 2002 Klever Group (http://www.klever.net/) 1Copyright (c) 1998-2004 Klever Group (http://www.klever.net/)
2 2
3Permission is hereby granted, free of charge, to any person obtaining a copy of 3Permission is hereby granted, free of charge, to any person obtaining a copy of
4this software and associated documentation files (the "Software"), to deal in 4this software and associated documentation files (the "Software"), to deal in
5the Software without restriction, including without limitation the rights to 5the Software without restriction, including without limitation the rights to
6use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 6use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7of the Software, and to permit persons to whom the Software is furnished to do 7of the Software, and to permit persons to whom the Software is furnished to do
8so, subject to the following conditions: 8so, subject to the following conditions:
9 9
10The above copyright notice and this permission notice shall be included in all 10The above copyright notice and this permission notice shall be included in all
11copies or substantial portions of the Software. 11copies or substantial portions of the Software.
12 12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19SOFTWARE. 19SOFTWARE.
diff --git a/README b/README.RELEASE
index fbdfd9c..fbdfd9c 100644
--- a/README
+++ b/README.RELEASE
diff --git a/help/klog.rtf b/help/klog.rtf
index 587fbcd..9531c73 100644
--- a/help/klog.rtf
+++ b/help/klog.rtf
@@ -1,64 +1,65 @@
1{\rtf1\ansi 1{\rtf1\ansi
2@{\footnote 2@{\footnote
3THIS FILE WAS AUTOMATICALLY GENERATED FROM XML DOCUMENT. 3THIS FILE WAS AUTOMATICALLY GENERATED FROM XML DOCUMENT.
4DO NOT MODIFY THIS FILE DIRECTLY. EDIT XML DOCUMENT INSTEAD 4DO NOT MODIFY THIS FILE DIRECTLY. EDIT XML DOCUMENT INSTEAD
5} 5}
6{\fonttbl{\f0\froman Times New Roman;}{\f1\fswiss Arial;}{\f3\froman Symbol;}}{\colortbl; 6{\fonttbl{\f0\froman Times New Roman;}{\f1\fswiss Arial;}{\f3\froman Symbol;}}{\colortbl;
7 \red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0; 7 \red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;
8 \red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255; 8 \red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;
9 \red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128; 9 \red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;
10 \red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;} 10 \red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
11 11
12\pard\plain\keepn 12\pard\plain\keepn
13#{\footnote About} 13#{\footnote About}
14${\footnote About KLog} 14${\footnote About KLog}
15{ \f1\fs18\b\sb120 Abotu {\b KLog}} 15{ \f1\fs18\b\sb120 Abotu {\b KLog}}
16\par\sa120\sb120\qj\pard \f1\fs18\sb120 {\b KLog} is our {\i Win32} implementation of {\b\cf6 *nix}{\i syslog} daemon to support remote logging of messages from {\b\cf6 unix} servers, routers, terminal servers and other syslog-enabled devices/applications. 16\par\sa120\sb120\qj\pard \f1\fs18\sb120 {\b KLog} is our {\i Win32} implementation of {\b\cf6 *nix}{\i syslog} daemon to support remote logging of messages from {\b\cf6 unix} servers, routers, terminal servers and other syslog-enabled devices/applications.
17\par\sa120\sb120\qj\pard \f1\fs18\sb120 17\par\sa120\sb120\qj\pard \f1\fs18\sb120
18\par\sa120\sb120\qj\pard \f1\fs18\sb120 {\b {\i Enjoy!}} 18\par\sa120\sb120\qj\pard \f1\fs18\sb120 {\b {\i Enjoy!}}
19{ 19{
20\par\pard\plain\sb360\sa120 \f1\fs16 Copyright (c) 1998, 2002 {\uldb\cf0 Klever Group (http://www.klever.net/)}{\v %!ExecFile("http://www.klever.net/")} 20\par\pard\plain\sb360\sa120 \f1\fs16 Copyright (c) 1998-2004 {\uldb\cf0 Klever Group (http://www.klever.net/)}{\v %!ExecFile("http://www.klever.net/")}
21\par\qj\sb120\sa120Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 21\par\qj\sb120\sa120Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
22\par The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 22\par The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
23\par \sa360 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23\par \sa360 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24} 24}
25\par \sa0\sb120\ql \f1\fs16 Author: {\b\uldb\cf11 Michael Krelin ({\i hacker@klever.net})}{\v %!ExecFile("mailto:hacker@klever.net")} 25\par \sa0\sb120\ql \f1\fs16 Author: {\b\uldb\cf11 Michael Krelin ({\i hacker@klever.net})}{\v %!ExecFile("mailto:hacker@klever.net")}
26\par \sa0\sb0 Fan mail send to {\i\uldb gefilte@klever.net}{\v %!ExecFile("mailto:gefilte@klever.net")} 26\par \sa0\sb0 Fan mail send to {\i\uldb gefilte@klever.net}{\v %!ExecFile("mailto:gefilte@klever.net")}
27\page 27\page
28 28
29\pard\plain 29\pard\plain
30#{\footnote News} 30#{\footnote News}
31${\footnote What's New} 31${\footnote What's New}
32\par\pard\plain\f1\fs24\qc\cf2\b 1.00 Beta 2 - August 19th, 2002 32\par\pard\plain\f1\fs24\qc\cf2\b 1.1 - July 11th, 2004
33\par\pard\plain\fi0\li0\f1\fs18 \bullet Change of license and opening the source code 33\par\pard\plain\fi0\li0\f1\fs18 \bullet Change of license and opening the source code
34\par\pard\plain\fi0\li0\f1\fs18 \bullet Minor changes in code, mostly bugfixes
34\page 35\page
35 36
36\pard\plain\keepn 37\pard\plain\keepn
37#{\footnote Using} 38#{\footnote Using}
38${\footnote Using KLog} 39${\footnote Using KLog}
39{ \f1\fs18\b\sb120 Using {\b KLog}} 40{ \f1\fs18\b\sb120 Using {\b KLog}}
40\par\sa120\sb120\qj\pard \f1\fs18\sb120 When you start {\b KLog} for the first time it is set to the configuration in which it will silently catch all incoming messages and display them in the log window. Scroll length in initial configuration is set to 15 lines. To learn how to modify this initial configuration you may want to proceed to the {\uldb Main Window}{\v MainWindow} section. 41\par\sa120\sb120\qj\pard \f1\fs18\sb120 When you start {\b KLog} for the first time it is set to the configuration in which it will silently catch all incoming messages and display them in the log window. Scroll length in initial configuration is set to 15 lines. To learn how to modify this initial configuration you may want to proceed to the {\uldb Main Window}{\v MainWindow} section.
41\page 42\page
42 43
43\pard\plain\keepn 44\pard\plain\keepn
44#{\footnote MainWindow} 45#{\footnote MainWindow}
45${\footnote Main Window} 46${\footnote Main Window}
46{ \f1\fs18\b\sb120 Main Window} 47{ \f1\fs18\b\sb120 Main Window}
47\par\sa120\sb120\qj\pard \f1\fs18\sb120 Essentially, main window is a tabbed collection of 'Destinations'. For each destination you can set the destination itself, events criteria and sound {\b KLog} will produce when triggered by event matching criteria. 48\par\sa120\sb120\qj\pard \f1\fs18\sb120 Essentially, main window is a tabbed collection of 'Destinations'. For each destination you can set the destination itself, events criteria and sound {\b KLog} will produce when triggered by event matching criteria.
48\par\sa120\sb120\qj\pard \f1\fs18\sb120 Each tab consists of following fields:\pard 49\par\sa120\sb120\qj\pard \f1\fs18\sb120 Each tab consists of following fields:\pard
49\par \fi0\li0 \bullet {\b Short description} - short descriptive text appearing on the tab on top of window. 50\par \fi0\li0 \bullet {\b Short description} - short descriptive text appearing on the tab on top of window.
50\par \fi0\li0 \bullet {\b Log to File/Log to Host/Don't Log radio buttons} - let you specify where to forward the events matching criteria below. 51\par \fi0\li0 \bullet {\b Log to File/Log to Host/Don't Log radio buttons} - let you specify where to forward the events matching criteria below.
51\par \fi0\li0 \bullet {\b File/Host name} - Either file name for logging or host name to forward syslog messages to. (note: host address lookups are performed by blocking call, so if you it takes time to resolve host from it's name {\b Klog} may seem to lock up for a while) 52\par \fi0\li0 \bullet {\b File/Host name} - Either file name for logging or host name to forward syslog messages to. (note: host address lookups are performed by blocking call, so if you it takes time to resolve host from it's name {\b Klog} may seem to lock up for a while)
52\par \fi0\li0 \bullet {\b IP/mask pairs list} - lets you enter ip address/netmask pairs to specify access list for this destination. If none are entered \endash all hosts activities are logged into selected destination. 53\par \fi0\li0 \bullet {\b IP/mask pairs list} - lets you enter ip address/netmask pairs to specify access list for this destination. If none are entered \endash all hosts activities are logged into selected destination.
53\par \fi0\li0 \bullet {\b Facility/priority pattern} - may be set in two ways: either by selecting desired facility from the dropdown list and check appropriate priorities and repeat this procedure for every facility or by clicking '{\uldb edit logging pattern}{\v Pattern}' button and use the dialog box to edit logging pattern. If you have experience with logging you don't need any explanation about logging facilities/priorities what are they all about and why do you need them. If you don't, then you, probably, don't need {\b KLog}. 54\par \fi0\li0 \bullet {\b Facility/priority pattern} - may be set in two ways: either by selecting desired facility from the dropdown list and check appropriate priorities and repeat this procedure for every facility or by clicking '{\uldb edit logging pattern}{\v Pattern}' button and use the dialog box to edit logging pattern. If you have experience with logging you don't need any explanation about logging facilities/priorities what are they all about and why do you need them. If you don't, then you, probably, don't need {\b KLog}.
54\par \fi0\li0 \bullet {\b Sound to play when triggered} - whenever event is logged using current destination {\b KLog} may produce the sound to make you aware of its activity. You can select any preset sound or specify your own wave file. 55\par \fi0\li0 \bullet {\b Sound to play when triggered} - whenever event is logged using current destination {\b KLog} may produce the sound to make you aware of its activity. You can select any preset sound or specify your own wave file.
55\par \fi0\li0 \bullet {\b Log window} - shows recent activity.\pard 56\par \fi0\li0 \bullet {\b Log window} - shows recent activity.\pard
56\page 57\page
57 58
58\pard\plain\keepn 59\pard\plain\keepn
59#{\footnote Pattern} 60#{\footnote Pattern}
60${\footnote Edit Logging Pattern} 61${\footnote Edit Logging Pattern}
61{ \f1\fs18\b\sb120 Edit Logging Pattern Dialog} 62{ \f1\fs18\b\sb120 Edit Logging Pattern Dialog}
62\par\sa120\sb120\qj\pard \f1\fs18\sb120 Use this tabbed dialog to edit your logging pattern. Logging facilities are separated into three tabs for your convenience. Use top/left rows of buttons to turn a whole bunch of priorities/facilities, bottom/right rows of buttons to toggle the whole column/row, or simply turn on/off individual facility/priority pairs. 63\par\sa120\sb120\qj\pard \f1\fs18\sb120 Use this tabbed dialog to edit your logging pattern. Logging facilities are separated into three tabs for your convenience. Use top/left rows of buttons to turn a whole bunch of priorities/facilities, bottom/right rows of buttons to toggle the whole column/row, or simply turn on/off individual facility/priority pairs.
63\page 64\page
64} \ No newline at end of file 65} \ No newline at end of file
diff --git a/help/klog.xml b/help/klog.xml
index f566200..830b297 100644
--- a/help/klog.xml
+++ b/help/klog.xml
@@ -1,38 +1,39 @@
1<?xml version="1.0"?> 1<?xml version="1.0"?>
2<winhelp> 2<winhelp>
3 <topic id="About" title="About KLog"> 3 <topic id="About" title="About KLog">
4 <heading scroll="no">Abotu <kin>KLog</kin></heading> 4 <heading scroll="no">Abotu <kin>KLog</kin></heading>
5 <p><kin>KLog</kin> is our <term>Win32</term> implementation of <product>*nix</product> <term>syslog</term> daemon to support remote logging of messages from <product>unix</product> servers, routers, terminal servers and other syslog-enabled devices/applications.</p> 5 <p><kin>KLog</kin> is our <term>Win32</term> implementation of <product>*nix</product> <term>syslog</term> daemon to support remote logging of messages from <product>unix</product> servers, routers, terminal servers and other syslog-enabled devices/applications.</p>
6 <p/> 6 <p/>
7 <p><b><i>Enjoy!</i></b></p> 7 <p><b><i>Enjoy!</i></b></p>
8 <license years="1998, 2002"/> 8 <license years="1998-2004"/>
9 <credits/> 9 <credits/>
10 </topic> 10 </topic>
11 <topic id="News" title="What's New"> 11 <topic id="News" title="What's New">
12 <newsfor version="1.00 Beta 2" date="August 19th, 2002"> 12 <newsfor version="1.1" date="July 11th, 2004">
13 <ni>Change of license and opening the source code</ni> 13 <ni>Change of license and opening the source code</ni>
14 <ni>Minor changes in code, mostly bugfixes</ni>
14 </newsfor> 15 </newsfor>
15 </topic> 16 </topic>
16 <topic id="Using" title="Using KLog"> 17 <topic id="Using" title="Using KLog">
17 <heading scroll="no">Using <kin>KLog</kin></heading> 18 <heading scroll="no">Using <kin>KLog</kin></heading>
18 <p>When you start <kin>KLog</kin> for the first time it is set to the configuration in which it will silently catch all incoming messages and display them in the log window. Scroll length in initial configuration is set to 15 lines. To learn how to modify this initial configuration you may want to proceed to the <a href="#MainWindow">Main Window</a> section.</p> 19 <p>When you start <kin>KLog</kin> for the first time it is set to the configuration in which it will silently catch all incoming messages and display them in the log window. Scroll length in initial configuration is set to 15 lines. To learn how to modify this initial configuration you may want to proceed to the <a href="#MainWindow">Main Window</a> section.</p>
19 </topic> 20 </topic>
20 <topic id="MainWindow" title="Main Window"> 21 <topic id="MainWindow" title="Main Window">
21 <heading scroll="no">Main Window</heading> 22 <heading scroll="no">Main Window</heading>
22 <p>Essentially, main window is a tabbed collection of 'Destinations'. For each destination you can set the destination itself, events criteria and sound <kin>KLog</kin> will produce when triggered by event matching criteria.</p> 23 <p>Essentially, main window is a tabbed collection of 'Destinations'. For each destination you can set the destination itself, events criteria and sound <kin>KLog</kin> will produce when triggered by event matching criteria.</p>
23 <p>Each tab consists of following fields:</p> 24 <p>Each tab consists of following fields:</p>
24 <ul> 25 <ul>
25 <li><b>Short description</b> - short descriptive text appearing on the tab on top of window.</li> 26 <li><b>Short description</b> - short descriptive text appearing on the tab on top of window.</li>
26 <li><b>Log to File/Log to Host/Don't Log radio buttons</b> - let you specify where to forward the events matching criteria below.</li> 27 <li><b>Log to File/Log to Host/Don't Log radio buttons</b> - let you specify where to forward the events matching criteria below.</li>
27 <li><b>File/Host name</b> - Either file name for logging or host name to forward syslog messages to. (note: host address lookups are performed by blocking call, so if you it takes time to resolve host from it's name <kin>Klog</kin> may seem to lock up for a while)</li> 28 <li><b>File/Host name</b> - Either file name for logging or host name to forward syslog messages to. (note: host address lookups are performed by blocking call, so if you it takes time to resolve host from it's name <kin>Klog</kin> may seem to lock up for a while)</li>
28 <li><b>IP/mask pairs list</b> - lets you enter ip address/netmask pairs to specify access list for this destination. If none are entered \endash all hosts activities are logged into selected destination.</li> 29 <li><b>IP/mask pairs list</b> - lets you enter ip address/netmask pairs to specify access list for this destination. If none are entered \endash all hosts activities are logged into selected destination.</li>
29 <li><b>Facility/priority pattern</b> - may be set in two ways: either by selecting desired facility from the dropdown list and check appropriate priorities and repeat this procedure for every facility or by clicking '<a href="#Pattern">edit logging pattern</a>' button and use the dialog box to edit logging pattern. If you have experience with logging you don't need any explanation about logging facilities/priorities what are they all about and why do you need them. If you don't, then you, probably, don't need <kin>KLog</kin>.</li> 30 <li><b>Facility/priority pattern</b> - may be set in two ways: either by selecting desired facility from the dropdown list and check appropriate priorities and repeat this procedure for every facility or by clicking '<a href="#Pattern">edit logging pattern</a>' button and use the dialog box to edit logging pattern. If you have experience with logging you don't need any explanation about logging facilities/priorities what are they all about and why do you need them. If you don't, then you, probably, don't need <kin>KLog</kin>.</li>
30 <li><b>Sound to play when triggered</b> - whenever event is logged using current destination <kin>KLog</kin> may produce the sound to make you aware of its activity. You can select any preset sound or specify your own wave file.</li> 31 <li><b>Sound to play when triggered</b> - whenever event is logged using current destination <kin>KLog</kin> may produce the sound to make you aware of its activity. You can select any preset sound or specify your own wave file.</li>
31 <li><b>Log window</b> - shows recent activity.</li> 32 <li><b>Log window</b> - shows recent activity.</li>
32 </ul> 33 </ul>
33 </topic> 34 </topic>
34 <topic id="Pattern" title="Edit Logging Pattern"> 35 <topic id="Pattern" title="Edit Logging Pattern">
35 <heading scroll="no">Edit Logging Pattern Dialog</heading> 36 <heading scroll="no">Edit Logging Pattern Dialog</heading>
36 <p>Use this tabbed dialog to edit your logging pattern. Logging facilities are separated into three tabs for your convenience. Use top/left rows of buttons to turn a whole bunch of priorities/facilities, bottom/right rows of buttons to toggle the whole column/row, or simply turn on/off individual facility/priority pairs.</p> 37 <p>Use this tabbed dialog to edit your logging pattern. Logging facilities are separated into three tabs for your convenience. Use top/left rows of buttons to turn a whole bunch of priorities/facilities, bottom/right rows of buttons to toggle the whole column/row, or simply turn on/off individual facility/priority pairs.</p>
37 </topic> 38 </topic>
38</winhelp> 39</winhelp>
diff --git a/install/install.cpp b/install/install.cpp
index 212ad40..c0e0bb8 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -1,70 +1,70 @@
1#include "resource.h" 1#include "resource.h"
2#include "../shared-code/install.h" 2#include "../shared-code/install.h"
3 3
4 #define KINAME"KLog 1.00 Beta 2" 4 #define KINAME"KLog 1.1"
5 #define SKINAME"KLog" 5 #define SKINAME"KLog"
6 6
7BOOL Install(void) 7BOOL Install(void)
8{ 8{
9STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.", SKINAME "Path"); 9STRING dPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group", SKINAME "Path");
10STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.","KINPath"); 10STRING kPath = strFETCH_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath");
11LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings"); 11LPCSTR qPath = ((LPCSTR)dPath)?(LPCSTR)dPath:(((LPCSTR)kPath)?(LPSTR)kPath:"C:\\Program Files\\Klever\\Nothings");
12STRING path = REQUESTPATH(" " KINAME,"\nEnter destination path:",qPath); 12STRING path = REQUESTPATH(" " KINAME,"\nEnter destination path:",qPath);
13 if(!path) 13 if(!path)
14 return NULL; 14 return NULL;
15 #ifdefK_ANNED 15 #ifdefK_ANNED
16STRING sysDir(_MAX_PATH); 16STRING sysDir(_MAX_PATH);
17 GetSystemDirectory(sysDir,_MAX_PATH); 17 GetSystemDirectory(sysDir,_MAX_PATH);
18 INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll"); 18 INSTALLFILE("mfc42.dl_",sysDir,"mfc42.dll");
19#endif 19#endif
20 20
21 MAKE_PATH(path); 21 MAKE_PATH(path);
22STRING shortPath = GET_SHORT_PATH(path); 22STRING shortPath = GET_SHORT_PATH(path);
23 if(!shortPath){ 23 if(!shortPath){
24 MessageBox(NULL,"Failed to install " KINAME " in specified directory",NULL,MB_ICONERROR|MB_OK); 24 MessageBox(NULL,"Failed to install " KINAME " in specified directory",NULL,MB_ICONERROR|MB_OK);
25 return FALSE; 25 return FALSE;
26 } 26 }
27 27
28 if(!( 28 if(!(
29 INSTALLFILE(SKINAME ".ex_",path, SKINAME ".exe") && 29 INSTALLFILE(SKINAME ".ex_",path, SKINAME ".exe") &&
30 INSTALLFILE(SKINAME ".hl_",path, SKINAME ".hlp") && 30 INSTALLFILE(SKINAME ".hl_",path, SKINAME ".hlp") &&
31 INSTALLFILE(SKINAME ".cn_",path, SKINAME ".cnt") 31 INSTALLFILE(SKINAME ".cn_",path, SKINAME ".cnt")
32 )){ 32 )){
33 MessageBox(NULL,"Failed to install " KINAME "in specified directory",NULL,MB_ICONERROR|MB_OK); 33 MessageBox(NULL,"Failed to install " KINAME "in specified directory",NULL,MB_ICONERROR|MB_OK);
34 return FALSE; 34 return FALSE;
35 } 35 }
36 36
37 ADDMENU("Accessories\\Klever Co.",SKINAME,path,SKINAME ".exe"); 37 ADDMENU("Klever Group",SKINAME,path,SKINAME ".exe");
38 strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.",SKINAME "Path",path); 38 strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group",SKINAME "Path",path);
39 strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group, Inc.","KINPath",path); 39 strSET_REG_KEY(HKEY_LOCAL_MACHINE,"Software\\Klever Group","KINPath",path);
40 40
41FILE* inf=CREATE_INF_FILE(path,SKINAME ".INF"); 41FILE* inf=CREATE_INF_FILE(path,SKINAME ".INF");
42 if(!inf){ 42 if(!inf){
43 MessageBox(NULL,"Failed to install " KINAME,NULL,MB_ICONERROR|MB_OK); 43 MessageBox(NULL,"Failed to install " KINAME,NULL,MB_ICONERROR|MB_OK);
44 return FALSE; 44 return FALSE;
45 45
46 } 46 }
47 47
48 INF_FILE_HEADER(inf); 48 INF_FILE_HEADER(inf);
49 INF_FILE_SECTION(inf,"Uninstall"); 49 INF_FILE_SECTION(inf,"Uninstall");
50 fprintf(inf,"AddReg=kFiles\nDelReg=kReg\nUpdateInis=kMenu\n"); 50 fprintf(inf,"AddReg=kFiles\nDelReg=kReg\nUpdateInis=kMenu\n");
51 51
52 INF_FILE_SECTION(inf,"kFiles"); 52 INF_FILE_SECTION(inf,"kFiles");
53 INF_REMOVE_ROOT(inf,SKINAME "Files",shortPath); 53 INF_REMOVE_ROOT(inf,SKINAME "Files",shortPath);
54 INF_REMOVE_FILE(inf,SKINAME "Files",SKINAME ".exe"); 54 INF_REMOVE_FILE(inf,SKINAME "Files",SKINAME ".exe");
55 INF_REMOVE_HELP_FILE(inf,SKINAME "Files",SKINAME); 55 INF_REMOVE_HELP_FILE(inf,SKINAME "Files",SKINAME);
56 INF_REMOVE_FILE(inf,SKINAME "Files",SKINAME ".inf"); 56 INF_REMOVE_FILE(inf,SKINAME "Files",SKINAME ".inf");
57 57
58 INF_FILE_SECTION(inf,"kReg"); 58 INF_FILE_SECTION(inf,"kReg");
59 INF_UNINSTALL_REG(inf,SKINAME); 59 INF_UNINSTALL_REG(inf,SKINAME);
60 60
61 INF_FILE_SECTION(inf,"kMenu"); 61 INF_FILE_SECTION(inf,"kMenu");
62 INF_MENU_GROUP(inf,1,"Accessories\\Klever Co."); 62 INF_MENU_GROUP(inf,1,"Klever Group");
63 INF_MENU_ITEM(inf,1,SKINAME); 63 INF_MENU_ITEM(inf,1,SKINAME);
64 fclose(inf); 64 fclose(inf);
65 REG_UNINSTALL_COMMAND(SKINAME,"Klever " KINAME,shortPath,SKINAME ".INF","Uninstall"); 65 REG_UNINSTALL_COMMAND(SKINAME,"Klever " KINAME,shortPath,SKINAME ".INF","Uninstall");
66 66
67 MessageBox(NULL,KINAME " installed successfully, you may now run it from Programs/Accessories/Klever Co. menu, move it to your Startup group or remove it using Control Panel Add/Remove Programs applet."," Rejoice!",MB_ICONINFORMATION|MB_OK); 67 MessageBox(NULL,KINAME " installed successfully, you may now run it from 'Programs/Klever Group' menu, move it to your Startup group or remove it using Control Panel Add/Remove Programs applet."," Rejoice!",MB_ICONINFORMATION|MB_OK);
68 68
69 return TRUE; 69 return TRUE;
70} 70}
diff --git a/install/install.rc b/install/install.rc
index 45bc88b..6a3fd3e 100644
--- a/install/install.rc
+++ b/install/install.rc
@@ -86,97 +86,97 @@ BEGIN
86 BOTTOMMARGIN, 66 86 BOTTOMMARGIN, 66
87 HORZGUIDE, 37 87 HORZGUIDE, 37
88 END 88 END
89END 89END
90#endif // APSTUDIO_INVOKED 90#endif // APSTUDIO_INVOKED
91 91
92 92
93#ifdef APSTUDIO_INVOKED 93#ifdef APSTUDIO_INVOKED
94///////////////////////////////////////////////////////////////////////////// 94/////////////////////////////////////////////////////////////////////////////
95// 95//
96// TEXTINCLUDE 96// TEXTINCLUDE
97// 97//
98 98
991 TEXTINCLUDE DISCARDABLE 991 TEXTINCLUDE DISCARDABLE
100BEGIN 100BEGIN
101 "resource.h\0" 101 "resource.h\0"
102END 102END
103 103
1042 TEXTINCLUDE DISCARDABLE 1042 TEXTINCLUDE DISCARDABLE
105BEGIN 105BEGIN
106 "#include ""afxres.h""\r\n" 106 "#include ""afxres.h""\r\n"
107 "\0" 107 "\0"
108END 108END
109 109
1103 TEXTINCLUDE DISCARDABLE 1103 TEXTINCLUDE DISCARDABLE
111BEGIN 111BEGIN
112 "#include ""custom.rch""\0" 112 "#include ""custom.rch""\0"
113END 113END
114 114
115#endif // APSTUDIO_INVOKED 115#endif // APSTUDIO_INVOKED
116 116
117 117
118///////////////////////////////////////////////////////////////////////////// 118/////////////////////////////////////////////////////////////////////////////
119// 119//
120// Icon 120// Icon
121// 121//
122 122
123// Icon with lowest ID value placed first to ensure application icon 123// Icon with lowest ID value placed first to ensure application icon
124// remains consistent on all systems. 124// remains consistent on all systems.
125IDI_ICON ICON DISCARDABLE "../shared-data/install-icon.ico" 125IDI_ICON ICON DISCARDABLE "../shared-data/install-icon.ico"
126 126
127#ifndef _MAC 127#ifndef _MAC
128///////////////////////////////////////////////////////////////////////////// 128/////////////////////////////////////////////////////////////////////////////
129// 129//
130// Version 130// Version
131// 131//
132 132
133VS_VERSION_INFO VERSIONINFO 133VS_VERSION_INFO VERSIONINFO
134 FILEVERSION 1,0,0,2 134 FILEVERSION 1,1,0,0
135 PRODUCTVERSION 1,0,0,2 135 PRODUCTVERSION 1,1,0,0
136 FILEFLAGSMASK 0x3fL 136 FILEFLAGSMASK 0x3fL
137#ifdef _DEBUG 137#ifdef _DEBUG
138 FILEFLAGS 0x1L 138 FILEFLAGS 0x1L
139#else 139#else
140 FILEFLAGS 0x0L 140 FILEFLAGS 0x0L
141#endif 141#endif
142 FILEOS 0x40004L 142 FILEOS 0x40004L
143 FILETYPE 0x1L 143 FILETYPE 0x1L
144 FILESUBTYPE 0x0L 144 FILESUBTYPE 0x0L
145BEGIN 145BEGIN
146 BLOCK "StringFileInfo" 146 BLOCK "StringFileInfo"
147 BEGIN 147 BEGIN
148 BLOCK "040904b0" 148 BLOCK "040904b0"
149 BEGIN 149 BEGIN
150 VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0" 150 VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0"
151 VALUE "FileDescription", "INSTALL: KLog, logging daemon\0" 151 VALUE "FileDescription", "INSTALL: KLog, logging daemon\0"
152 VALUE "FileVersion", "1, 0, 0, 2\0" 152 VALUE "FileVersion", "1, 1, 0, 0\0"
153 VALUE "InternalName", "INSTALL\0" 153 VALUE "InternalName", "INSTALL\0"
154 VALUE "LegalCopyright", "Copyright © 1998, 2002 Klever Group (http://www.klever.net/)\0" 154 VALUE "LegalCopyright", "Copyright © 1998-2004 Klever Group (http://www.klever.net/)\0"
155 VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0" 155 VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0"
156 VALUE "OriginalFilename", "INSTALL.EXE\0" 156 VALUE "OriginalFilename", "INSTALL.EXE\0"
157 VALUE "ProductName", "KLog\0" 157 VALUE "ProductName", "KLog\0"
158 VALUE "ProductVersion", "1, 0, 0, 2\0" 158 VALUE "ProductVersion", "1, 1, 0, 0\0"
159 END 159 END
160 END 160 END
161 BLOCK "VarFileInfo" 161 BLOCK "VarFileInfo"
162 BEGIN 162 BEGIN
163 VALUE "Translation", 0x409, 1200 163 VALUE "Translation", 0x409, 1200
164 END 164 END
165END 165END
166 166
167#endif // !_MAC 167#endif // !_MAC
168 168
169#endif // English (U.S.) resources 169#endif // English (U.S.) resources
170///////////////////////////////////////////////////////////////////////////// 170/////////////////////////////////////////////////////////////////////////////
171 171
172 172
173 173
174#ifndef APSTUDIO_INVOKED 174#ifndef APSTUDIO_INVOKED
175///////////////////////////////////////////////////////////////////////////// 175/////////////////////////////////////////////////////////////////////////////
176// 176//
177// Generated from the TEXTINCLUDE 3 resource. 177// Generated from the TEXTINCLUDE 3 resource.
178// 178//
179#include "custom.rch" 179#include "custom.rch"
180///////////////////////////////////////////////////////////////////////////// 180/////////////////////////////////////////////////////////////////////////////
181#endif // not APSTUDIO_INVOKED 181#endif // not APSTUDIO_INVOKED
182 182
diff --git a/klog.rc b/klog.rc
index 4b61320..92755ed 100644
--- a/klog.rc
+++ b/klog.rc
@@ -38,99 +38,99 @@ BEGIN
38 "\0" 38 "\0"
39END 39END
40 40
413 TEXTINCLUDE DISCARDABLE 413 TEXTINCLUDE DISCARDABLE
42BEGIN 42BEGIN
43 "#define _AFX_NO_SPLITTER_RESOURCES\r\n" 43 "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
44 "#define _AFX_NO_OLE_RESOURCES\r\n" 44 "#define _AFX_NO_OLE_RESOURCES\r\n"
45 "#define _AFX_NO_TRACKER_RESOURCES\r\n" 45 "#define _AFX_NO_TRACKER_RESOURCES\r\n"
46 "#define _AFX_NO_PROPERTY_RESOURCES\r\n" 46 "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
47 "\r\n" 47 "\r\n"
48 "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" 48 "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
49 "#ifdef _WIN32\r\n" 49 "#ifdef _WIN32\r\n"
50 "LANGUAGE 9, 1\r\n" 50 "LANGUAGE 9, 1\r\n"
51 "#pragma code_page(1252)\r\n" 51 "#pragma code_page(1252)\r\n"
52 "#endif\r\n" 52 "#endif\r\n"
53 "#include ""res\\KLog.rc2"" // non-Microsoft Visual C++ edited resources\r\n" 53 "#include ""res\\KLog.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
54 "#include ""afxres.rc"" // Standard components\r\n" 54 "#include ""afxres.rc"" // Standard components\r\n"
55 "#endif\0" 55 "#endif\0"
56END 56END
57 57
58#endif // APSTUDIO_INVOKED 58#endif // APSTUDIO_INVOKED
59 59
60 60
61///////////////////////////////////////////////////////////////////////////// 61/////////////////////////////////////////////////////////////////////////////
62// 62//
63// Icon 63// Icon
64// 64//
65 65
66// Icon with lowest ID value placed first to ensure application icon 66// Icon with lowest ID value placed first to ensure application icon
67// remains consistent on all systems. 67// remains consistent on all systems.
68IDR_MAINFRAME ICON DISCARDABLE "res\\klog.ico" 68IDR_MAINFRAME ICON DISCARDABLE "res\\klog.ico"
69IDI_BROWSE ICON DISCARDABLE "shared-data/browse-icon.ico" 69IDI_BROWSE ICON DISCARDABLE "shared-data/browse-icon.ico"
70IDI_PREPLAY ICON DISCARDABLE "shared-data/play-icon.ico" 70IDI_PREPLAY ICON DISCARDABLE "shared-data/play-icon.ico"
71IDI_KLOG ICON DISCARDABLE "res\\klog-icon.ico" 71IDI_KLOG ICON DISCARDABLE "res\\klog-icon.ico"
72IDI_KLOG_TRIGGERED ICON DISCARDABLE "res\\klog-triggered-icon.ico" 72IDI_KLOG_TRIGGERED ICON DISCARDABLE "res\\klog-triggered-icon.ico"
73IDI_LOGPATTERN ICON DISCARDABLE "res\\log-pattern.ico" 73IDI_LOGPATTERN ICON DISCARDABLE "res\\log-pattern.ico"
74 74
75///////////////////////////////////////////////////////////////////////////// 75/////////////////////////////////////////////////////////////////////////////
76// 76//
77// Dialog 77// Dialog
78// 78//
79 79
80IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 70 80IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 70
81STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 81STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
82CAPTION "About KLog" 82CAPTION "About KLog"
83FONT 8, "MS Sans Serif" 83FONT 8, "MS Sans Serif"
84BEGIN 84BEGIN
85 ICON IDR_MAINFRAME,IDC_STATIC,7,17,18,20 85 ICON IDR_MAINFRAME,IDC_STATIC,7,17,18,20
86 LTEXT "KLog, Version 1.00 Beta 2",IDC_STATIC,40,16,119,8, 86 LTEXT "KLog, Version 1.1",IDC_STATIC,40,16,119,8,
87 SS_NOPREFIX 87 SS_NOPREFIX
88 LTEXT "Copyright © 1998,2002 Klever Group",IDC_STATIC,40,31,119,8 88 LTEXT "Copyright © 1998-2004 Klever Group",IDC_STATIC,40,31,119,8
89 DEFPUSHBUTTON "OK",IDOK,178,13,32,14,WS_GROUP 89 DEFPUSHBUTTON "OK",IDOK,178,13,32,14,WS_GROUP
90 PUSHBUTTON "http://www.klever.net/",IDC_KLEVERNET,125,49,85,14 90 PUSHBUTTON "http://www.klever.net/",IDC_KLEVERNET,125,49,85,14
91END 91END
92 92
93IDD_KLOG_DIALOG DIALOGEX 0, 0, 291, 286 93IDD_KLOG_DIALOG DIALOGEX 0, 0, 291, 286
94STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 94STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
95EXSTYLE WS_EX_CLIENTEDGE | WS_EX_CONTEXTHELP | WS_EX_APPWINDOW 95EXSTYLE WS_EX_CLIENTEDGE | WS_EX_CONTEXTHELP | WS_EX_APPWINDOW
96CAPTION "KLog" 96CAPTION "KLog"
97FONT 8, "MS Sans Serif", 0, 0, 0x1 97FONT 8, "MS Sans Serif", 0, 0, 0x1
98BEGIN 98BEGIN
99 CTEXT "Short de&scription:",IDC_STATIC,11,48,78,8,SS_NOTIFY 99 CTEXT "Short de&scription:",IDC_STATIC,11,48,78,8,SS_NOTIFY
100 EDITTEXT IDC_DESC,91,46,187,13,ES_AUTOHSCROLL,WS_EX_STATICEDGE 100 EDITTEXT IDC_DESC,91,46,187,13,ES_AUTOHSCROLL,WS_EX_STATICEDGE
101 CONTROL "Log to &File",IDC_TYPE_FILE,"Button",BS_AUTORADIOBUTTON | 101 CONTROL "Log to &File",IDC_TYPE_FILE,"Button",BS_AUTORADIOBUTTON |
102 BS_PUSHLIKE | WS_GROUP,11,60,87,19,WS_EX_STATICEDGE 102 BS_PUSHLIKE | WS_GROUP,11,60,87,19,WS_EX_STATICEDGE
103 CONTROL "Log to &Host",IDC_TYPE_HOST,"Button",BS_AUTORADIOBUTTON | 103 CONTROL "Log to &Host",IDC_TYPE_HOST,"Button",BS_AUTORADIOBUTTON |
104 BS_PUSHLIKE,101,60,87,19,WS_EX_STATICEDGE 104 BS_PUSHLIKE,101,60,87,19,WS_EX_STATICEDGE
105 CONTROL "&Don't Log",IDC_TYPE_NONE,"Button",BS_AUTORADIOBUTTON | 105 CONTROL "&Don't Log",IDC_TYPE_NONE,"Button",BS_AUTORADIOBUTTON |
106 BS_PUSHLIKE,191,60,87,19,WS_EX_STATICEDGE 106 BS_PUSHLIKE,191,60,87,19,WS_EX_STATICEDGE
107 CTEXT "File &name:",IDC_HOSTORFILE,12,84,40,8 107 CTEXT "File &name:",IDC_HOSTORFILE,12,84,40,8
108 EDITTEXT IDC_HOSTFILE,56,82,201,12,ES_AUTOHSCROLL 108 EDITTEXT IDC_HOSTFILE,56,82,201,12,ES_AUTOHSCROLL
109 PUSHBUTTON "...",IDC_BROWSE,262,82,17,13,0,WS_EX_STATICEDGE 109 PUSHBUTTON "...",IDC_BROWSE,262,82,17,13,0,WS_EX_STATICEDGE
110 CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,12,99,13,1 110 CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,12,99,13,1
111 LTEXT "Log data:",IDC_STATIC,27,95,31,8 111 LTEXT "Log data:",IDC_STATIC,27,95,31,8
112 CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,60,99,218,1 112 CONTROL "",IDC_STATIC,"Static",SS_ETCHEDHORZ,60,99,218,1
113 LTEXT "Fa&cility:",IDC_STATIC,19,108,27,8 113 LTEXT "Fa&cility:",IDC_STATIC,19,108,27,8
114 COMBOBOX IDC_FACILITY,48,106,85,104,CBS_DROPDOWNLIST | 114 COMBOBOX IDC_FACILITY,48,106,85,104,CBS_DROPDOWNLIST |
115 CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP 115 CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
116 PUSHBUTTON "[::]",IDC_LOGPATTERN,136,106,23,12,BS_ICON | BS_CENTER | 116 PUSHBUTTON "[::]",IDC_LOGPATTERN,136,106,23,12,BS_ICON | BS_CENTER |
117 BS_VCENTER | BS_NOTIFY,WS_EX_STATICEDGE 117 BS_VCENTER | BS_NOTIFY,WS_EX_STATICEDGE
118 GROUPBOX " &Priorities: ",IDC_STATIC,162,100,92,53,BS_CENTER | 118 GROUPBOX " &Priorities: ",IDC_STATIC,162,100,92,53,BS_CENTER |
119 BS_NOTIFY,WS_EX_TRANSPARENT 119 BS_NOTIFY,WS_EX_TRANSPARENT
120 CONTROL "emerg",IDC_EMERG,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 120 CONTROL "emerg",IDC_EMERG,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
121 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,110,36,10 121 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,110,36,10
122 CONTROL "alert",IDC_ALERT,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 122 CONTROL "alert",IDC_ALERT,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
123 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,120,36,10 123 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,120,36,10
124 CONTROL "crit",IDC_CRIT,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 124 CONTROL "crit",IDC_CRIT,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
125 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,130,36,10 125 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,130,36,10
126 CONTROL "err",IDC_ERR,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT | 126 CONTROL "err",IDC_ERR,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
127 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,140,36,10 127 BS_RIGHT | BS_NOTIFY | WS_TABSTOP,169,140,36,10
128 CONTROL "warn",IDC_WARNING,"Button",BS_AUTOCHECKBOX | BS_LEFT | 128 CONTROL "warn",IDC_WARNING,"Button",BS_AUTOCHECKBOX | BS_LEFT |
129 BS_NOTIFY | WS_TABSTOP,209,110,36,10 129 BS_NOTIFY | WS_TABSTOP,209,110,36,10
130 CONTROL "notice",IDC_NOTICE,"Button",BS_AUTOCHECKBOX | BS_LEFT | 130 CONTROL "notice",IDC_NOTICE,"Button",BS_AUTOCHECKBOX | BS_LEFT |
131 BS_NOTIFY | WS_TABSTOP,209,120,36,10 131 BS_NOTIFY | WS_TABSTOP,209,120,36,10
132 CONTROL "info",IDC_INFO,"Button",BS_AUTOCHECKBOX | BS_LEFT | 132 CONTROL "info",IDC_INFO,"Button",BS_AUTOCHECKBOX | BS_LEFT |
133 BS_NOTIFY | WS_TABSTOP,209,130,36,10 133 BS_NOTIFY | WS_TABSTOP,209,130,36,10
134 CONTROL "debug",IDC_DEBUG,"Button",BS_AUTOCHECKBOX | BS_LEFT | 134 CONTROL "debug",IDC_DEBUG,"Button",BS_AUTOCHECKBOX | BS_LEFT |
135 BS_NOTIFY | WS_TABSTOP,209,140,36,10 135 BS_NOTIFY | WS_TABSTOP,209,140,36,10
136 PUSHBUTTON "all",IDC_ALL,256,105,23,12,0,WS_EX_STATICEDGE 136 PUSHBUTTON "all",IDC_ALL,256,105,23,12,0,WS_EX_STATICEDGE
@@ -759,117 +759,117 @@ BEGIN
759 BS_NOTIFY 759 BS_NOTIFY
760 PUSHBUTTON "debug",IDC_DEBUG_XOR,316,111,25,13,BS_CENTER | 760 PUSHBUTTON "debug",IDC_DEBUG_XOR,316,111,25,13,BS_CENTER |
761 BS_VCENTER | BS_NOTIFY 761 BS_VCENTER | BS_NOTIFY
762 PUSHBUTTON "0",IDC_L0_XOR,76,124,30,13,BS_CENTER | BS_VCENTER | 762 PUSHBUTTON "0",IDC_L0_XOR,76,124,30,13,BS_CENTER | BS_VCENTER |
763 BS_NOTIFY 763 BS_NOTIFY
764 PUSHBUTTON "1",IDC_L1_XOR,106,124,30,13,BS_CENTER | BS_VCENTER | 764 PUSHBUTTON "1",IDC_L1_XOR,106,124,30,13,BS_CENTER | BS_VCENTER |
765 BS_NOTIFY 765 BS_NOTIFY
766 PUSHBUTTON "2",IDC_L2_XOR,136,124,30,13,BS_CENTER | BS_VCENTER | 766 PUSHBUTTON "2",IDC_L2_XOR,136,124,30,13,BS_CENTER | BS_VCENTER |
767 BS_NOTIFY 767 BS_NOTIFY
768 PUSHBUTTON "3",IDC_L3_XOR,166,124,30,13,BS_CENTER | BS_VCENTER | 768 PUSHBUTTON "3",IDC_L3_XOR,166,124,30,13,BS_CENTER | BS_VCENTER |
769 BS_NOTIFY 769 BS_NOTIFY
770 PUSHBUTTON "4",IDC_L4_XOR,196,124,30,13,BS_CENTER | BS_VCENTER | 770 PUSHBUTTON "4",IDC_L4_XOR,196,124,30,13,BS_CENTER | BS_VCENTER |
771 BS_NOTIFY 771 BS_NOTIFY
772 PUSHBUTTON "5",IDC_L5_XOR,226,124,30,13,BS_CENTER | BS_VCENTER | 772 PUSHBUTTON "5",IDC_L5_XOR,226,124,30,13,BS_CENTER | BS_VCENTER |
773 BS_NOTIFY 773 BS_NOTIFY
774 PUSHBUTTON "6",IDC_L6_XOR,256,124,30,13,BS_CENTER | BS_VCENTER | 774 PUSHBUTTON "6",IDC_L6_XOR,256,124,30,13,BS_CENTER | BS_VCENTER |
775 BS_NOTIFY 775 BS_NOTIFY
776 PUSHBUTTON "7",IDC_L7_XOR,286,124,30,13,BS_CENTER | BS_VCENTER | 776 PUSHBUTTON "7",IDC_L7_XOR,286,124,30,13,BS_CENTER | BS_VCENTER |
777 BS_NOTIFY 777 BS_NOTIFY
778 LTEXT "Toggle",IDC_STATIC,317,126,23,8 778 LTEXT "Toggle",IDC_STATIC,317,126,23,8
779 LTEXT "ON",IDC_STATIC,58,9,12,8 779 LTEXT "ON",IDC_STATIC,58,9,12,8
780END 780END
781 781
782IDD_WARNBLOCKING DIALOGEX 0, 0, 195, 88 782IDD_WARNBLOCKING DIALOGEX 0, 0, 195, 88
783STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION 783STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION
784EXSTYLE WS_EX_TOOLWINDOW | WS_EX_CLIENTEDGE 784EXSTYLE WS_EX_TOOLWINDOW | WS_EX_CLIENTEDGE
785CAPTION " Blocking call warning" 785CAPTION " Blocking call warning"
786FONT 8, "MS Sans Serif", 0, 0, 0x1 786FONT 8, "MS Sans Serif", 0, 0, 0x1
787BEGIN 787BEGIN
788 DEFPUSHBUTTON "OK",IDOK,39,67,50,14 788 DEFPUSHBUTTON "OK",IDOK,39,67,50,14
789 PUSHBUTTON "Cancel",IDCANCEL,105,67,50,14 789 PUSHBUTTON "Cancel",IDCANCEL,105,67,50,14
790 LTEXT "WARNING: ",IDC_STATIC,7,7,38,8 790 LTEXT "WARNING: ",IDC_STATIC,7,7,38,8
791 LTEXT "All host address lookups are performed in a blocking mode, so KLog may temporarily stop responding until host address is resolved or operation failed.", 791 LTEXT "All host address lookups are performed in a blocking mode, so KLog may temporarily stop responding until host address is resolved or operation failed.",
792 IDC_STATIC,46,7,142,35 792 IDC_STATIC,46,7,142,35
793 CONTROL "Enough is said, no need to remind me again. Thanks.", 793 CONTROL "Enough is said, no need to remind me again. Thanks.",
794 IDC_WARNBLOCKING,"Button",BS_AUTOCHECKBOX | BS_RIGHT | 794 IDC_WARNBLOCKING,"Button",BS_AUTOCHECKBOX | BS_RIGHT |
795 BS_VCENTER | BS_MULTILINE | WS_TABSTOP,7,42,123,22, 795 BS_VCENTER | BS_MULTILINE | WS_TABSTOP,7,42,123,22,
796 WS_EX_STATICEDGE 796 WS_EX_STATICEDGE
797END 797END
798 798
799 799
800#ifndef _MAC 800#ifndef _MAC
801///////////////////////////////////////////////////////////////////////////// 801/////////////////////////////////////////////////////////////////////////////
802// 802//
803// Version 803// Version
804// 804//
805 805
806VS_VERSION_INFO VERSIONINFO 806VS_VERSION_INFO VERSIONINFO
807 FILEVERSION 1,0,0,2 807 FILEVERSION 1,1,0,0
808 PRODUCTVERSION 1,0,0,2 808 PRODUCTVERSION 1,1,0,0
809 FILEFLAGSMASK 0x3fL 809 FILEFLAGSMASK 0x3fL
810#ifdef _DEBUG 810#ifdef _DEBUG
811 FILEFLAGS 0x1L 811 FILEFLAGS 0x1L
812#else 812#else
813 FILEFLAGS 0x0L 813 FILEFLAGS 0x0L
814#endif 814#endif
815 FILEOS 0x4L 815 FILEOS 0x4L
816 FILETYPE 0x1L 816 FILETYPE 0x1L
817 FILESUBTYPE 0x0L 817 FILESUBTYPE 0x0L
818BEGIN 818BEGIN
819 BLOCK "StringFileInfo" 819 BLOCK "StringFileInfo"
820 BEGIN 820 BEGIN
821 BLOCK "040904b0" 821 BLOCK "040904b0"
822 BEGIN 822 BEGIN
823 VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0" 823 VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0"
824 VALUE "FileDescription", "KLog, logging daemon\0" 824 VALUE "FileDescription", "KLog, logging daemon\0"
825 VALUE "FileVersion", "1, 0, 0, 2\0" 825 VALUE "FileVersion", "1, 1, 0, 0\0"
826 VALUE "InternalName", "KLOG\0" 826 VALUE "InternalName", "KLOG\0"
827 VALUE "LegalCopyright", "Copyright © 1998, 2002 Klever Group (http://www.klever.net/)\0" 827 VALUE "LegalCopyright", "Copyright © 1998-2004 Klever Group (http://www.klever.net/)\0"
828 VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0" 828 VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0"
829 VALUE "OriginalFilename", "KLOG.EXE\0" 829 VALUE "OriginalFilename", "KLOG.EXE\0"
830 VALUE "ProductName", "KLog\0" 830 VALUE "ProductName", "KLog\0"
831 VALUE "ProductVersion", "1, 0, 0, 2\0" 831 VALUE "ProductVersion", "1, 0, 0, 2\0"
832 END 832 END
833 END 833 END
834 BLOCK "VarFileInfo" 834 BLOCK "VarFileInfo"
835 BEGIN 835 BEGIN
836 VALUE "Translation", 0x409, 1200 836 VALUE "Translation", 0x409, 1200
837 END 837 END
838END 838END
839 839
840#endif // !_MAC 840#endif // !_MAC
841 841
842 842
843///////////////////////////////////////////////////////////////////////////// 843/////////////////////////////////////////////////////////////////////////////
844// 844//
845// DESIGNINFO 845// DESIGNINFO
846// 846//
847 847
848#ifdef APSTUDIO_INVOKED 848#ifdef APSTUDIO_INVOKED
849GUIDELINES DESIGNINFO DISCARDABLE 849GUIDELINES DESIGNINFO DISCARDABLE
850BEGIN 850BEGIN
851 IDD_ABOUTBOX, DIALOG 851 IDD_ABOUTBOX, DIALOG
852 BEGIN 852 BEGIN
853 LEFTMARGIN, 7 853 LEFTMARGIN, 7
854 RIGHTMARGIN, 210 854 RIGHTMARGIN, 210
855 TOPMARGIN, 7 855 TOPMARGIN, 7
856 BOTTOMMARGIN, 63 856 BOTTOMMARGIN, 63
857 END 857 END
858 858
859 IDD_KLOG_DIALOG, DIALOG 859 IDD_KLOG_DIALOG, DIALOG
860 BEGIN 860 BEGIN
861 LEFTMARGIN, 7 861 LEFTMARGIN, 7
862 RIGHTMARGIN, 284 862 RIGHTMARGIN, 284
863 VERTGUIDE, 12 863 VERTGUIDE, 12
864 VERTGUIDE, 278 864 VERTGUIDE, 278
865 TOPMARGIN, 7 865 TOPMARGIN, 7
866 BOTTOMMARGIN, 279 866 BOTTOMMARGIN, 279
867 HORZGUIDE, 31 867 HORZGUIDE, 31
868 HORZGUIDE, 192 868 HORZGUIDE, 192
869 END 869 END
870 870
871 IDD_LOG_UNIX, DIALOG 871 IDD_LOG_UNIX, DIALOG
872 BEGIN 872 BEGIN
873 LEFTMARGIN, 7 873 LEFTMARGIN, 7
874 RIGHTMARGIN, 387 874 RIGHTMARGIN, 387
875 VERTGUIDE, 32 875 VERTGUIDE, 32
@@ -1027,97 +1027,97 @@ BEGIN
1027 MENUITEM "&Show KLog Window", ID_TRAY_SHOWKLOGWINDOW 1027 MENUITEM "&Show KLog Window", ID_TRAY_SHOWKLOGWINDOW
1028 MENUITEM SEPARATOR 1028 MENUITEM SEPARATOR
1029 MENUITEM "&Help", ID_TRAY_HELP 1029 MENUITEM "&Help", ID_TRAY_HELP
1030 MENUITEM "&About KLog", ID_TRAY_ABOUTKLOG 1030 MENUITEM "&About KLog", ID_TRAY_ABOUTKLOG
1031 MENUITEM "E&xit", ID_TRAY_EXIT 1031 MENUITEM "E&xit", ID_TRAY_EXIT
1032 END 1032 END
1033END 1033END
1034 1034
1035 1035
1036///////////////////////////////////////////////////////////////////////////// 1036/////////////////////////////////////////////////////////////////////////////
1037// 1037//
1038// String Table 1038// String Table
1039// 1039//
1040 1040
1041STRINGTABLE DISCARDABLE 1041STRINGTABLE DISCARDABLE
1042BEGIN 1042BEGIN
1043 IDS_ABOUTBOX "&About KLog..." 1043 IDS_ABOUTBOX "&About KLog..."
1044 IDS_LOGTO_HOST "Host &name:" 1044 IDS_LOGTO_HOST "Host &name:"
1045 IDP_SOCKETS_INIT_FAILED "Windows sockets initialization failed." 1045 IDP_SOCKETS_INIT_FAILED "Windows sockets initialization failed."
1046 IDS_LOGTO_FILE "File &name:" 1046 IDS_LOGTO_FILE "File &name:"
1047 IDS_SOUND_MEOW "(meow)" 1047 IDS_SOUND_MEOW "(meow)"
1048 IDS_SOUND_GLASS "(glass)" 1048 IDS_SOUND_GLASS "(glass)"
1049 IDS_SOUND_FEAR "(fear)" 1049 IDS_SOUND_FEAR "(fear)"
1050 IDS_SOUND_KICK "(kick)" 1050 IDS_SOUND_KICK "(kick)"
1051 IDS_WAVFILTER "Wave files (*.wav)|*.wav|All files (*.*)|*.*|" 1051 IDS_WAVFILTER "Wave files (*.wav)|*.wav|All files (*.*)|*.*|"
1052 IDS_SOUND_SELECT "Select sound" 1052 IDS_SOUND_SELECT "Select sound"
1053 IDS_LOGFILTER "Log files (*.log)|*.log|All files (*.*)|*.*|" 1053 IDS_LOGFILTER "Log files (*.log)|*.log|All files (*.*)|*.*|"
1054END 1054END
1055 1055
1056STRINGTABLE DISCARDABLE 1056STRINGTABLE DISCARDABLE
1057BEGIN 1057BEGIN
1058 ID_FILES_EXPORT "Save current configuration." 1058 ID_FILES_EXPORT "Save current configuration."
1059 ID_FILES_IMPORT "Load configuration from file" 1059 ID_FILES_IMPORT "Load configuration from file"
1060 ID_FILES_RESET "Reset to initial configuration" 1060 ID_FILES_RESET "Reset to initial configuration"
1061 ID_TRAY_SHOWKLOGWINDOW "Show/Hide KLog wondow" 1061 ID_TRAY_SHOWKLOGWINDOW "Show/Hide KLog wondow"
1062 ID_TRAY_HELP "Help" 1062 ID_TRAY_HELP "Help"
1063 ID_TRAY_ABOUTKLOG "About KLog" 1063 ID_TRAY_ABOUTKLOG "About KLog"
1064 ID_TRAY_EXIT "Terminate KLog" 1064 ID_TRAY_EXIT "Terminate KLog"
1065END 1065END
1066 1066
1067STRINGTABLE DISCARDABLE 1067STRINGTABLE DISCARDABLE
1068BEGIN 1068BEGIN
1069 IDS_LOG_SELECT "Log To" 1069 IDS_LOG_SELECT "Log To"
1070 IDS_LOG_EXT ".log" 1070 IDS_LOG_EXT ".log"
1071 IDS_KLOGFILTER "KLog files (*.klg)|*.klg|All files (*.*)|*.*|" 1071 IDS_KLOGFILTER "KLog files (*.klg)|*.klg|All files (*.*)|*.*|"
1072 IDS_KLOG_EXPORT "Export to" 1072 IDS_KLOG_EXPORT "Export to"
1073 IDS_KLOG_IMPORT "Import from" 1073 IDS_KLOG_IMPORT "Import from"
1074 IDS_KLOG_EXT ".klg" 1074 IDS_KLOG_EXT ".klg"
1075 IDS_REGISTRYKEY "Klever Group, Inc." 1075 IDS_REGISTRYKEY "Klever Group"
1076 IDS_KLEVERNET_URL "http://www.klever.net/" 1076 IDS_KLEVERNET_URL "http://www.klever.net/"
1077 IDS_TIP_LOG "%s [%s] %s.%s" 1077 IDS_TIP_LOG "%s [%s] %s.%s"
1078 IDS_LOGTIMEFORMAT "%H:%M:%S %B %d" 1078 IDS_LOGTIMEFORMAT "%H:%M:%S %B %d"
1079 IDS_LOGPATTERN_TITLE "Logging pattern" 1079 IDS_LOGPATTERN_TITLE "Logging pattern"
1080 IDS_LOGFILETIMEFORMAT "%c " 1080 IDS_LOGFILETIMEFORMAT "%c "
1081 IDS_TIP_FACILITY_ON "Turn on logging for given facility" 1081 IDS_TIP_FACILITY_ON "Turn on logging for given facility"
1082 IDS_TIP_FACILITY_XOR "Invert logging for given facility" 1082 IDS_TIP_FACILITY_XOR "Invert logging for given facility"
1083 IDS_TIP_PRIORITY_ON "Turn on all logging for given priority" 1083 IDS_TIP_PRIORITY_ON "Turn on all logging for given priority"
1084 IDS_TIP_PRIORITY_XOR "Invert logging for given priority" 1084 IDS_TIP_PRIORITY_XOR "Invert logging for given priority"
1085END 1085END
1086 1086
1087STRINGTABLE DISCARDABLE 1087STRINGTABLE DISCARDABLE
1088BEGIN 1088BEGIN
1089 IDC_ADD "Add new logging destination" 1089 IDC_ADD "Add new logging destination"
1090 IDC_REMOVE "Remove logging destination" 1090 IDC_REMOVE "Remove logging destination"
1091 IDC_EXIT "Terminate KLog" 1091 IDC_EXIT "Terminate KLog"
1092 IDC_TYPE_FILE "Log to file on disk" 1092 IDC_TYPE_FILE "Log to file on disk"
1093 IDC_TYPE_HOST "Log to remote host" 1093 IDC_TYPE_HOST "Log to remote host"
1094 IDC_TYPE_NONE "Don't log anywhere but log window" 1094 IDC_TYPE_NONE "Don't log anywhere but log window"
1095END 1095END
1096 1096
1097STRINGTABLE DISCARDABLE 1097STRINGTABLE DISCARDABLE
1098BEGIN 1098BEGIN
1099 IDC_LOGLENGTH "Number of lines to keep in log window" 1099 IDC_LOGLENGTH "Number of lines to keep in log window"
1100 IDC_FILES "Import/Export KLog settings" 1100 IDC_FILES "Import/Export KLog settings"
1101END 1101END
1102 1102
1103STRINGTABLE DISCARDABLE 1103STRINGTABLE DISCARDABLE
1104BEGIN 1104BEGIN
1105 IDC_LOG "Recent activity" 1105 IDC_LOG "Recent activity"
1106 IDC_HOSTS "Hosts access list for given destination" 1106 IDC_HOSTS "Hosts access list for given destination"
1107END 1107END
1108 1108
1109STRINGTABLE DISCARDABLE 1109STRINGTABLE DISCARDABLE
1110BEGIN 1110BEGIN
1111 IDC_LOGPATTERN "Edit logging pattern" 1111 IDC_LOGPATTERN "Edit logging pattern"
1112END 1112END
1113 1113
1114STRINGTABLE DISCARDABLE 1114STRINGTABLE DISCARDABLE
1115BEGIN 1115BEGIN
1116 IDS_LOGFILEPRIFACEFORMAT "(%s.%s) " 1116 IDS_LOGFILEPRIFACEFORMAT "(%s.%s) "
1117 IDS_LOGFILESOURCEFORMAT "[%s] " 1117 IDS_LOGFILESOURCEFORMAT "[%s] "
1118 IDS_LOGHOSTSOURCEFORMAT "[%s] " 1118 IDS_LOGHOSTSOURCEFORMAT "[%s] "
1119 IDS_MSG_LOOKUPFAILED "Host address lookup for '%s' failed." 1119 IDS_MSG_LOOKUPFAILED "Host address lookup for '%s' failed."
1120 IDS_MSG_FAILEDTOEXPORT "Unable to create file." 1120 IDS_MSG_FAILEDTOEXPORT "Unable to create file."
1121 IDS_MSG_FAILEDTOIMPORT "Unable to read file." 1121 IDS_MSG_FAILEDTOIMPORT "Unable to read file."
1122 IDS_MSG_FAILEDTOSTORE "Database is too big to store as system default." 1122 IDS_MSG_FAILEDTOSTORE "Database is too big to store as system default."
1123END 1123END