Changeset 202


Ignore:
Timestamp:
11/01/09 11:06:01 (2 years ago)
Author:
mickem
Message:

Refactored service into its own project

Location:
trunk
Files:
2 added
11 deleted
28 edited
17 moved

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11NSC.ini 
        22AutoBuild.wxs 
         3bin 
         4bjam-tmp-build 
         5stage 
         6tmp 
         7win32 
         8x64 
  • trunk/AutoBuild.h

    r201 r202  
    33// change the FALSE to TRUE for autoincrement of build number 
    44#define INCREMENT_VERSION TRUE 
    5 #define FILEVER        0,3,7,486 
    6 #define PRODUCTVER     0,3,7,486 
    7 #define STRFILEVER     _T("0.3.7.486") 
    8 #define STRPRODUCTVER  _T("0.3.7.486") 
    9 #define STRPRODUCTDATE  _T("2009-10-12") 
     5#define FILEVER        0,4,0,21 
     6#define PRODUCTVER     0,4,0,21 
     7#define STRFILEVER     _T("0.4.0.21") 
     8#define STRPRODUCTVER  _T("0.4.0.21") 
     9#define STRPRODUCTDATE  _T("2009-11-01") 
    1010#endif // AUTOBUILD_H 
  • trunk/Jamroot

    r201 r202  
    66import common ; 
    77import option ; 
    8  
    9 include user-config.jam ; 
    108 
    119feature character-set : unicode ansi multibyte : composite ; 
     
    2725import bjam/zip ; 
    2826 
    29 local target = NSClient++ ; 
    3027local target-config = nsc.ini ; 
    3128local target-readme = readme.txt ; 
     
    9289    echo "Plattform SDK not avaliable! Various features wont work (enable with --with-psdk)" ;  
    9390  } 
    94    
    95   notfile update_version : @update_version ; 
    96   actions update_version 
    97   { 
    98     XAutobuild.exe -f $(TOP)  
    99   } 
    100 } 
    101  
    102  
     91} 
    10392 
    10493project master 
    10594  : requirements 
    106   <include>include  
     95  <include>$(TOP)/include  
    10796  <find-static-library>advapi32 
    10897  <find-static-library>user32 
     
    117106  ; 
    118107 
    119 make $(target).exe.manifest : NSClient++.manifest : common.copy ; 
    120 explicit $(target).exe.manifest ; 
    121  
    122  
    123 exe $(target) 
    124  
    125   : # sources 
    126   NSClient++.cpp 
    127   NSCPlugin.cpp 
    128   include/NSCHelper.cpp 
    129   include/arrayBuffer.cpp 
    130   include/ServiceCmd.cpp 
    131   include/Socket.cpp 
    132   include/b64/b64.c 
    133  
    134   : # requirements 
    135   <dependency>$(target).exe.manifest 
    136   #<runtime-link>static 
    137   <find-static-library>ws2_32 
    138   <find-static-library>Userenv 
    139   <find-static-library>ole32 
    140   <variant>release:<dependency>update_version  
    141   : # default build 
    142  
    143   : # usage requirements 
    144 # depends $(target).manifest 
    145   ; 
    146 explicit $(target) ; 
    147  
    148108# 
    149109# Copy various files 
    150110# 
    151 make $(target-config) : nsc.dist : common.copy ; 
     111make $(target-config) : files/nsc.dist : common.copy ; 
    152112explicit $(target-config) ; 
    153113 
     
    171131    [ MATCH .*modules/(.*)/.* : [ glob modules/*/Jamfile ] ] 
    172132    ; 
    173  
    174 # all-modules = NSCAAgent ; 
    175133 
    176134all-scripts = 
     
    216174      : # default build 
    217175      : # usage requirements 
    218       <dependency>$(target) 
     176      #<dependency>$(target) 
    219177      ; 
    220178    explicit $(l) ; 
     
    261219explicit all-scripts-targets ; 
    262220 
    263 alias all-root-targets : $(target) $(target-config) $(target-readme) $(target-guide) $(target-refman) $(target-license) $(target-changelog) $(target-counters) helpers/systray_helper ; 
     221alias all-root-targets : service $(target-config) $(target-readme) $(target-guide) $(target-refman) $(target-license) $(target-changelog) $(target-counters) helpers/systray_helper ; 
    264222explicit all-root-targets ; 
    265223 
     
    309267} 
    310268 
    311 install dist : all-root-targets : <conditional>@generate-binary-location ; 
    312 explicit dist ; 
     269install dist-root : all-root-targets : <conditional>@generate-binary-location ; 
     270explicit dist-root ; 
    313271 
    314272install dist-modules : all-modules-targets : <conditional>@generate-module-location ; 
     
    321279explicit dist-scripts ; 
    322280 
    323 alias build-binaries : dist dist-modules dist-helpers dist-scripts ; 
     281# alias build-binaries : dist-root dist-modules dist-helpers dist-scripts ; 
     282alias build-binaries : dist-root dist-modules dist-scripts ; 
    324283explicit build-binaries ; 
    325  
    326284 
    327285alias build-archives : all-archive-targets : <location>$(BOOST_STAGE_LOCATE)/archive ; 
  • trunk/NSClient++-2005.sln

    r201 r202  
    22# Visual Studio 2005 
    33Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NSClient++", "NSClient++-2005.vcproj", "{2286162D-7571-4735-BAC8-4A8D33A4F42D}" 
     4  ProjectSection(WebsiteProperties) = preProject 
     5    Debug.AspNetCompiler.Debug = "True" 
     6    Release.AspNetCompiler.Debug = "False" 
     7  EndProjectSection 
     8EndProject 
     9Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SysTray", "modules\SysTray\SysTray-2005.vcproj", "{BBFF8362-C626-4838-B0A2-F695D638AD24}" 
     10  ProjectSection(WebsiteProperties) = preProject 
     11    Debug.AspNetCompiler.Debug = "True" 
     12    Release.AspNetCompiler.Debug = "False" 
     13  EndProjectSection 
     14EndProject 
     15Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FileLogger", "modules\FileLogger\FileLogger-2005.vcproj", "{62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}" 
     16  ProjectSection(WebsiteProperties) = preProject 
     17    Debug.AspNetCompiler.Debug = "True" 
     18    Release.AspNetCompiler.Debug = "False" 
     19  EndProjectSection 
     20EndProject 
     21Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckEventLog", "modules\CheckEventLog\CheckEventLog-2005.vcproj", "{BA246C01-063A-4548-8957-32D5CC76171B}" 
     22  ProjectSection(WebsiteProperties) = preProject 
     23    Debug.AspNetCompiler.Debug = "True" 
     24    Release.AspNetCompiler.Debug = "False" 
     25  EndProjectSection 
     26EndProject 
     27Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckDisk", "modules\CheckDisk\CheckDisk-2005.vcproj", "{E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45}" 
     28  ProjectSection(WebsiteProperties) = preProject 
     29    Debug.AspNetCompiler.Debug = "True" 
     30    Release.AspNetCompiler.Debug = "False" 
     31  EndProjectSection 
     32EndProject 
     33Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NRPEListener", "modules\NRPEListener\NRPEListener-2005.vcproj", "{2FF60AF6-09AA-49AB-B414-2E8FD01655C6}" 
     34  ProjectSection(WebsiteProperties) = preProject 
     35    Debug.AspNetCompiler.Debug = "True" 
     36    Release.AspNetCompiler.Debug = "False" 
     37  EndProjectSection 
     38EndProject 
     39Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NSClientListener", "modules\NSClientListener\NSClientListener-2005.vcproj", "{08D6246D-1B4A-47A3-965D-296DCC54A4E8}" 
     40  ProjectSection(WebsiteProperties) = preProject 
     41    Debug.AspNetCompiler.Debug = "True" 
     42    Release.AspNetCompiler.Debug = "False" 
     43  EndProjectSection 
     44EndProject 
     45Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckSystem", "modules\CheckSystem\CheckSystem-2005.vcproj", "{2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D}" 
     46  ProjectSection(WebsiteProperties) = preProject 
     47    Debug.AspNetCompiler.Debug = "True" 
     48    Release.AspNetCompiler.Debug = "False" 
     49  EndProjectSection 
     50EndProject 
     51Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckHelpers", "modules\CheckHelpers\CheckHelpers-2005.vcproj", "{8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}" 
     52  ProjectSection(WebsiteProperties) = preProject 
     53    Debug.AspNetCompiler.Debug = "True" 
     54    Release.AspNetCompiler.Debug = "False" 
     55  EndProjectSection 
     56EndProject 
     57Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckWMI", "modules\CheckWMI\CheckWMI-2005.vcproj", "{05DE66AC-E55C-43B3-849F-7EC695D8B8D0}" 
     58  ProjectSection(WebsiteProperties) = preProject 
     59    Debug.AspNetCompiler.Debug = "True" 
     60    Release.AspNetCompiler.Debug = "False" 
     61  EndProjectSection 
     62EndProject 
     63Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RemoteConfiguration", "modules\RemoteConfiguration\RemoteConfiguration-2005.vcproj", "{626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}" 
     64  ProjectSection(WebsiteProperties) = preProject 
     65    Debug.AspNetCompiler.Debug = "True" 
     66    Release.AspNetCompiler.Debug = "False" 
     67  EndProjectSection 
     68EndProject 
     69Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XAutobuild-2005", "helpers\XAutoBuild\XAutobuild-2005.csproj", "{0E2B21D9-F432-4127-8E92-7716B1072510}" 
     70  ProjectSection(WebsiteProperties) = preProject 
     71    Debug.AspNetCompiler.Debug = "True" 
     72    Release.AspNetCompiler.Debug = "False" 
     73  EndProjectSection 
     74EndProject 
     75Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NSCAAgent", "modules\NSCAAgent\NSCAAgent-2005.vcproj", "{6F55C9BF-57F6-4A15-A058-C83A52F539EE}" 
     76  ProjectSection(WebsiteProperties) = preProject 
     77    Debug.AspNetCompiler.Debug = "True" 
     78    Release.AspNetCompiler.Debug = "False" 
     79  EndProjectSection 
     80EndProject 
     81Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LUAScript", "modules\LUAScript\LUAScript-2005.vcproj", "{26B84883-BE52-40E6-9BEE-55AD056D5751}" 
     82  ProjectSection(WebsiteProperties) = preProject 
     83    Debug.AspNetCompiler.Debug = "True" 
     84    Release.AspNetCompiler.Debug = "False" 
     85  EndProjectSection 
     86EndProject 
     87Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NRPEClient", "modules\NRPEClient\NRPEClient-2005.vcproj", "{4241C6CF-EC01-4AD9-89B0-B75EBA8A5996}" 
     88  ProjectSection(WebsiteProperties) = preProject 
     89    Debug.AspNetCompiler.Debug = "True" 
     90    Release.AspNetCompiler.Debug = "False" 
     91  EndProjectSection 
     92EndProject 
     93Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{9757464B-C125-4307-A84A-F4181AE6A081}" 
     94  ProjectSection(WebsiteProperties) = preProject 
     95    Debug.AspNetCompiler.Debug = "True" 
     96    Release.AspNetCompiler.Debug = "False" 
     97  EndProjectSection 
     98EndProject 
     99Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "helpers", "helpers", "{9A087442-7BB2-4CF0-9F58-5D1BC3C32CD2}" 
     100  ProjectSection(WebsiteProperties) = preProject 
     101    Debug.AspNetCompiler.Debug = "True" 
     102    Release.AspNetCompiler.Debug = "False" 
     103  EndProjectSection 
     104EndProject 
     105Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "helpers\installer\installer.wixproj", "{A3CF4E23-1D1B-4D93-A16A-48C52D118560}" 
     106  ProjectSection(WebsiteProperties) = preProject 
     107    Debug.AspNetCompiler.Debug = "True" 
     108    Release.AspNetCompiler.Debug = "False" 
     109  EndProjectSection 
    4110  ProjectSection(ProjectDependencies) = postProject 
     111    {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} = {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} 
     112    {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} = {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} 
     113    {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} = {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} 
     114    {6F55C9BF-57F6-4A15-A058-C83A52F539EE} = {6F55C9BF-57F6-4A15-A058-C83A52F539EE} 
     115    {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
     116    {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
     117    {26B84883-BE52-40E6-9BEE-55AD056D5751} = {26B84883-BE52-40E6-9BEE-55AD056D5751} 
     118    {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
     119    {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
    5120    {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
     121    {BBFF8362-C626-4838-B0A2-F695D638AD24} = {BBFF8362-C626-4838-B0A2-F695D638AD24} 
     122    {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} = {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} 
     123    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} 
     124    {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
    6125    {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} = {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} 
    7     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} 
    8     {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} = {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} 
    9     {BBFF8362-C626-4838-B0A2-F695D638AD24} = {BBFF8362-C626-4838-B0A2-F695D638AD24} 
    10     {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
    11     {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {53FB9872-5E74-4E62-892D-AD82C2ED67CE} 
    12     {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
    13     {26B84883-BE52-40E6-9BEE-55AD056D5751} = {26B84883-BE52-40E6-9BEE-55AD056D5751} 
    14     {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
    15     {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
    16     {6F55C9BF-57F6-4A15-A058-C83A52F539EE} = {6F55C9BF-57F6-4A15-A058-C83A52F539EE} 
    17     {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} = {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} 
    18     {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} = {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} 
    19     {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} = {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} 
     126    {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
     127    {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
     128    {743B2362-DF6A-4C28-A6C9-0F970D8E1B66} = {743B2362-DF6A-4C28-A6C9-0F970D8E1B66} 
     129  EndProjectSection 
     130EndProject 
     131Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UploadInstaller", "helpers\UploadInstaller\UploadInstaller.vcproj", "{6206F046-3D36-4258-BB03-3291A7070117}" 
     132  ProjectSection(WebsiteProperties) = preProject 
     133    Debug.AspNetCompiler.Debug = "True" 
     134    Release.AspNetCompiler.Debug = "False" 
     135  EndProjectSection 
     136  ProjectSection(ProjectDependencies) = postProject 
     137    {A3CF4E23-1D1B-4D93-A16A-48C52D118560} = {A3CF4E23-1D1B-4D93-A16A-48C52D118560} 
    20138    {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
    21     {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
    22   EndProjectSection 
    23   ProjectSection(WebsiteProperties) = preProject 
    24     Debug.AspNetCompiler.Debug = "True" 
    25     Release.AspNetCompiler.Debug = "False" 
    26   EndProjectSection 
    27 EndProject 
    28 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SysTray", "modules\SysTray\SysTray-2005.vcproj", "{BBFF8362-C626-4838-B0A2-F695D638AD24}" 
    29   ProjectSection(WebsiteProperties) = preProject 
    30     Debug.AspNetCompiler.Debug = "True" 
    31     Release.AspNetCompiler.Debug = "False" 
    32   EndProjectSection 
    33 EndProject 
    34 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FileLogger", "modules\FileLogger\FileLogger-2005.vcproj", "{62B685D7-3A2E-4F3E-B2B8-B17F20C0217F}" 
    35   ProjectSection(WebsiteProperties) = preProject 
    36     Debug.AspNetCompiler.Debug = "True" 
    37     Release.AspNetCompiler.Debug = "False" 
    38   EndProjectSection 
    39 EndProject 
    40 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckEventLog", "modules\CheckEventLog\CheckEventLog-2005.vcproj", "{BA246C01-063A-4548-8957-32D5CC76171B}" 
    41   ProjectSection(WebsiteProperties) = preProject 
    42     Debug.AspNetCompiler.Debug = "True" 
    43     Release.AspNetCompiler.Debug = "False" 
    44   EndProjectSection 
    45 EndProject 
    46 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckDisk", "modules\CheckDisk\CheckDisk-2005.vcproj", "{E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45}" 
    47   ProjectSection(WebsiteProperties) = preProject 
    48     Debug.AspNetCompiler.Debug = "True" 
    49     Release.AspNetCompiler.Debug = "False" 
    50   EndProjectSection 
    51 EndProject 
    52 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NRPEListener", "modules\NRPEListener\NRPEListener-2005.vcproj", "{2FF60AF6-09AA-49AB-B414-2E8FD01655C6}" 
    53   ProjectSection(WebsiteProperties) = preProject 
    54     Debug.AspNetCompiler.Debug = "True" 
    55     Release.AspNetCompiler.Debug = "False" 
    56   EndProjectSection 
    57 EndProject 
    58 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NSClientListener", "modules\NSClientListener\NSClientListener-2005.vcproj", "{08D6246D-1B4A-47A3-965D-296DCC54A4E8}" 
    59   ProjectSection(WebsiteProperties) = preProject 
    60     Debug.AspNetCompiler.Debug = "True" 
    61     Release.AspNetCompiler.Debug = "False" 
    62   EndProjectSection 
    63 EndProject 
    64 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckSystem", "modules\CheckSystem\CheckSystem-2005.vcproj", "{2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D}" 
    65   ProjectSection(WebsiteProperties) = preProject 
    66     Debug.AspNetCompiler.Debug = "True" 
    67     Release.AspNetCompiler.Debug = "False" 
    68   EndProjectSection 
    69 EndProject 
    70 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckHelpers", "modules\CheckHelpers\CheckHelpers-2005.vcproj", "{8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F}" 
    71   ProjectSection(WebsiteProperties) = preProject 
    72     Debug.AspNetCompiler.Debug = "True" 
    73     Release.AspNetCompiler.Debug = "False" 
    74   EndProjectSection 
    75 EndProject 
    76 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckWMI", "modules\CheckWMI\CheckWMI-2005.vcproj", "{05DE66AC-E55C-43B3-849F-7EC695D8B8D0}" 
    77   ProjectSection(WebsiteProperties) = preProject 
    78     Debug.AspNetCompiler.Debug = "True" 
    79     Release.AspNetCompiler.Debug = "False" 
    80   EndProjectSection 
    81 EndProject 
    82 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RemoteConfiguration", "modules\RemoteConfiguration\RemoteConfiguration-2005.vcproj", "{626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4}" 
    83   ProjectSection(WebsiteProperties) = preProject 
    84     Debug.AspNetCompiler.Debug = "True" 
    85     Release.AspNetCompiler.Debug = "False" 
    86   EndProjectSection 
    87 EndProject 
    88 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XAutobuild-2005", "helpers\XAutoBuild\XAutobuild-2005.csproj", "{0E2B21D9-F432-4127-8E92-7716B1072510}" 
    89   ProjectSection(WebsiteProperties) = preProject 
    90     Debug.AspNetCompiler.Debug = "True" 
    91     Release.AspNetCompiler.Debug = "False" 
    92   EndProjectSection 
    93 EndProject 
    94 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NSCAAgent", "modules\NSCAAgent\NSCAAgent-2005.vcproj", "{6F55C9BF-57F6-4A15-A058-C83A52F539EE}" 
    95   ProjectSection(WebsiteProperties) = preProject 
    96     Debug.AspNetCompiler.Debug = "True" 
    97     Release.AspNetCompiler.Debug = "False" 
    98   EndProjectSection 
    99 EndProject 
    100 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LUAScript", "modules\LUAScript\LUAScript-2005.vcproj", "{26B84883-BE52-40E6-9BEE-55AD056D5751}" 
    101   ProjectSection(WebsiteProperties) = preProject 
    102     Debug.AspNetCompiler.Debug = "True" 
    103     Release.AspNetCompiler.Debug = "False" 
    104   EndProjectSection 
    105 EndProject 
    106 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckExternalScripts", "modules\CheckExternalScripts\CheckExternalScripts-2005.vcproj", "{0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}" 
    107   ProjectSection(WebsiteProperties) = preProject 
    108     Debug.AspNetCompiler.Debug = "True" 
    109     Release.AspNetCompiler.Debug = "False" 
    110   EndProjectSection 
    111 EndProject 
    112 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NRPEClient", "modules\NRPEClient\NRPEClient-2005.vcproj", "{4241C6CF-EC01-4AD9-89B0-B75EBA8A5996}" 
    113   ProjectSection(WebsiteProperties) = preProject 
    114     Debug.AspNetCompiler.Debug = "True" 
    115     Release.AspNetCompiler.Debug = "False" 
    116   EndProjectSection 
    117 EndProject 
    118 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "modules", "modules", "{9757464B-C125-4307-A84A-F4181AE6A081}" 
    119   ProjectSection(WebsiteProperties) = preProject 
    120     Debug.AspNetCompiler.Debug = "True" 
    121     Release.AspNetCompiler.Debug = "False" 
    122   EndProjectSection 
    123 EndProject 
    124 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "helpers", "helpers", "{9A087442-7BB2-4CF0-9F58-5D1BC3C32CD2}" 
    125   ProjectSection(WebsiteProperties) = preProject 
    126     Debug.AspNetCompiler.Debug = "True" 
    127     Release.AspNetCompiler.Debug = "False" 
    128   EndProjectSection 
    129 EndProject 
    130 Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "helpers\installer\installer.wixproj", "{A3CF4E23-1D1B-4D93-A16A-48C52D118560}" 
     139    {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
     140  EndProjectSection 
     141EndProject 
     142Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UploadBinaries", "helpers\UploadBinaries\UploadBinaries.vcproj", "{D96F7075-F6CD-4921-B5D8-8488E2D24BDB}" 
     143  ProjectSection(WebsiteProperties) = preProject 
     144    Debug.AspNetCompiler.Debug = "True" 
     145    Release.AspNetCompiler.Debug = "False" 
     146  EndProjectSection 
    131147  ProjectSection(ProjectDependencies) = postProject 
    132     {743B2362-DF6A-4C28-A6C9-0F970D8E1B66} = {743B2362-DF6A-4C28-A6C9-0F970D8E1B66} 
    133148    {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
    134149    {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
     
    140155    {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
    141156    {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
     157    {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {53FB9872-5E74-4E62-892D-AD82C2ED67CE} 
    142158    {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
    143     {26B84883-BE52-40E6-9BEE-55AD056D5751} = {26B84883-BE52-40E6-9BEE-55AD056D5751} 
    144159    {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
    145160    {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
     
    149164    {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} = {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} 
    150165  EndProjectSection 
    151   ProjectSection(WebsiteProperties) = preProject 
    152     Debug.AspNetCompiler.Debug = "True" 
    153     Release.AspNetCompiler.Debug = "False" 
    154   EndProjectSection 
    155 EndProject 
    156 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UploadInstaller", "helpers\UploadInstaller\UploadInstaller.vcproj", "{6206F046-3D36-4258-BB03-3291A7070117}" 
     166EndProject 
     167Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckTaskSched", "modules\CheckTaskSched\CheckTaskSched-2005.vcproj", "{F3401E75-60FB-4A0E-A18C-6505587D5B1A}" 
     168  ProjectSection(WebsiteProperties) = preProject 
     169    Debug.AspNetCompiler.Debug = "True" 
     170    Release.AspNetCompiler.Debug = "False" 
     171  EndProjectSection 
     172EndProject 
     173Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "systray_helper", "helpers\systray_helper\systray_helper.vcproj", "{43718644-173B-42D8-8AD1-E359BFB2BB20}" 
     174  ProjectSection(WebsiteProperties) = preProject 
     175    Debug.AspNetCompiler.Debug = "True" 
     176    Release.AspNetCompiler.Debug = "False" 
     177  EndProjectSection 
     178EndProject 
     179Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsharpSamplePlugin", "modules\CsharpSamplePlugin\CsharpSamplePlugin.csproj", "{1D9DEE38-BBDC-49DE-A6F3-BAC26E114C1D}" 
     180  ProjectSection(WebsiteProperties) = preProject 
     181    Debug.AspNetCompiler.Debug = "True" 
     182    Release.AspNetCompiler.Debug = "False" 
     183  EndProjectSection 
     184EndProject 
     185Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SampleManagedPlugin", "modules\SampleManagedPlugin\SampleManagedPlugin.vcproj", "{D367E76D-9485-4DCB-A9D0-3D3C0E190648}" 
     186  ProjectSection(WebsiteProperties) = preProject 
     187    Debug.AspNetCompiler.Debug = "True" 
     188    Release.AspNetCompiler.Debug = "False" 
     189  EndProjectSection 
     190EndProject 
     191Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".NET", ".NET", "{BBE9A5E7-A16B-443C-A349-823DED5A9FF3}" 
     192  ProjectSection(WebsiteProperties) = preProject 
     193    Debug.AspNetCompiler.Debug = "True" 
     194    Release.AspNetCompiler.Debug = "False" 
     195  EndProjectSection 
     196EndProject 
     197Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "custom-installers", "custom-installers", "{FC917E21-188A-44EE-9EF2-7C1274C2D719}" 
     198  ProjectSection(WebsiteProperties) = preProject 
     199    Debug.AspNetCompiler.Debug = "True" 
     200    Release.AspNetCompiler.Debug = "False" 
     201  EndProjectSection 
     202EndProject 
     203Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "helpers\op5-installer\installer.wixproj", "{10A0052D-542B-47AD-85C3-1A3DD45BF2ED}" 
     204  ProjectSection(WebsiteProperties) = preProject 
     205    Debug.AspNetCompiler.Debug = "True" 
     206    Release.AspNetCompiler.Debug = "False" 
     207  EndProjectSection 
    157208  ProjectSection(ProjectDependencies) = postProject 
     209    {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {53FB9872-5E74-4E62-892D-AD82C2ED67CE} 
     210    {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
     211    {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
    158212    {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
    159     {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
    160     {A3CF4E23-1D1B-4D93-A16A-48C52D118560} = {A3CF4E23-1D1B-4D93-A16A-48C52D118560} 
    161   EndProjectSection 
    162   ProjectSection(WebsiteProperties) = preProject 
    163     Debug.AspNetCompiler.Debug = "True" 
    164     Release.AspNetCompiler.Debug = "False" 
    165   EndProjectSection 
    166 EndProject 
    167 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UploadBinaries", "helpers\UploadBinaries\UploadBinaries.vcproj", "{D96F7075-F6CD-4921-B5D8-8488E2D24BDB}" 
    168   ProjectSection(ProjectDependencies) = postProject 
    169     {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} = {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} 
    170     {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} = {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} 
    171     {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} = {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} 
    172     {6F55C9BF-57F6-4A15-A058-C83A52F539EE} = {6F55C9BF-57F6-4A15-A058-C83A52F539EE} 
    173     {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
    174     {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
    175     {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
    176     {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {53FB9872-5E74-4E62-892D-AD82C2ED67CE} 
    177     {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
    178     {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
    179     {BBFF8362-C626-4838-B0A2-F695D638AD24} = {BBFF8362-C626-4838-B0A2-F695D638AD24} 
    180     {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} = {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} 
    181     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} 
    182     {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
    183     {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} = {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} 
    184     {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
    185     {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
    186   EndProjectSection 
    187   ProjectSection(WebsiteProperties) = preProject 
    188     Debug.AspNetCompiler.Debug = "True" 
    189     Release.AspNetCompiler.Debug = "False" 
    190   EndProjectSection 
    191 EndProject 
    192 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckTaskSched", "modules\CheckTaskSched\CheckTaskSched-2005.vcproj", "{F3401E75-60FB-4A0E-A18C-6505587D5B1A}" 
    193   ProjectSection(WebsiteProperties) = preProject 
    194     Debug.AspNetCompiler.Debug = "True" 
    195     Release.AspNetCompiler.Debug = "False" 
    196   EndProjectSection 
    197 EndProject 
    198 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "systray_helper", "helpers\systray_helper\systray_helper.vcproj", "{43718644-173B-42D8-8AD1-E359BFB2BB20}" 
    199   ProjectSection(WebsiteProperties) = preProject 
    200     Debug.AspNetCompiler.Debug = "True" 
    201     Release.AspNetCompiler.Debug = "False" 
    202213    {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} = {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} 
    203214    {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
     
    205216    {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} = {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} 
    206217    {BBFF8362-C626-4838-B0A2-F695D638AD24} = {BBFF8362-C626-4838-B0A2-F695D638AD24} 
    207     {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
    208218    {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
    209219    {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
    210     {26B84883-BE52-40E6-9BEE-55AD056D5751} = {26B84883-BE52-40E6-9BEE-55AD056D5751} 
    211220    {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
    212221    {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
     
    217226  EndProjectSection 
    218227EndProject 
    219 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsharpSamplePlugin", "modules\CsharpSamplePlugin\CsharpSamplePlugin.csproj", "{1D9DEE38-BBDC-49DE-A6F3-BAC26E114C1D}" 
    220   ProjectSection(WebsiteProperties) = preProject 
    221     Debug.AspNetCompiler.Debug = "True" 
    222     Release.AspNetCompiler.Debug = "False" 
    223   EndProjectSection 
    224 EndProject 
    225 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SampleManagedPlugin", "modules\SampleManagedPlugin\SampleManagedPlugin.vcproj", "{D367E76D-9485-4DCB-A9D0-3D3C0E190648}" 
    226   ProjectSection(WebsiteProperties) = preProject 
    227     Debug.AspNetCompiler.Debug = "True" 
    228     Release.AspNetCompiler.Debug = "False" 
    229   EndProjectSection 
    230 EndProject 
    231 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".NET", ".NET", "{BBE9A5E7-A16B-443C-A349-823DED5A9FF3}" 
    232   ProjectSection(WebsiteProperties) = preProject 
    233     Debug.AspNetCompiler.Debug = "True" 
    234     Release.AspNetCompiler.Debug = "False" 
    235   EndProjectSection 
    236 EndProject 
    237 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "custom-installers", "custom-installers", "{FC917E21-188A-44EE-9EF2-7C1274C2D719}" 
    238   ProjectSection(WebsiteProperties) = preProject 
    239     Debug.AspNetCompiler.Debug = "True" 
    240     Release.AspNetCompiler.Debug = "False" 
    241   EndProjectSection 
    242 EndProject 
    243 Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "helpers\op5-installer\installer.wixproj", "{10A0052D-542B-47AD-85C3-1A3DD45BF2ED}" 
    244   ProjectSection(ProjectDependencies) = postProject 
    245     {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} = {2FF60AF6-09AA-49AB-B414-2E8FD01655C6} 
    246     {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} = {62B685D7-3A2E-4F3E-B2B8-B17F20C0217F} 
    247     {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} = {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} 
    248     {6F55C9BF-57F6-4A15-A058-C83A52F539EE} = {6F55C9BF-57F6-4A15-A058-C83A52F539EE} 
    249     {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} = {05DE66AC-E55C-43B3-849F-7EC695D8B8D0} 
    250     {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} = {E6E588AB-EFEF-481C-9AF7-DCDCB95CFF45} 
    251     {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {F3401E75-60FB-4A0E-A18C-6505587D5B1A} 
    252     {08D6246D-1B4A-47A3-965D-296DCC54A4E8} = {08D6246D-1B4A-47A3-965D-296DCC54A4E8} 
    253     {BBFF8362-C626-4838-B0A2-F695D638AD24} = {BBFF8362-C626-4838-B0A2-F695D638AD24} 
    254     {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} = {2FCAF54B-AAD3-4F59-895A-8F9CEAFDC65D} 
    255     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} 
    256     {43718644-173B-42D8-8AD1-E359BFB2BB20} = {43718644-173B-42D8-8AD1-E359BFB2BB20} 
    257     {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} = {8F1C3E39-D6C6-4414-AAD2-FE03C9A8655F} 
    258     {2286162D-7571-4735-BAC8-4A8D33A4F42D} = {2286162D-7571-4735-BAC8-4A8D33A4F42D} 
    259     {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} = {626EB00E-A4D2-4B02-9BF4-4C655CA2B7E4} 
    260     {BA246C01-063A-4548-8957-32D5CC76171B} = {BA246C01-063A-4548-8957-32D5CC76171B} 
    261     {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {53FB9872-5E74-4E62-892D-AD82C2ED67CE} 
    262   EndProjectSection 
    263   ProjectSection(WebsiteProperties) = preProject 
    264     Debug.AspNetCompiler.Debug = "True" 
    265     Release.AspNetCompiler.Debug = "False" 
    266   EndProjectSection 
    267 EndProject 
    268228Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DebugLogMetrics", "modules\DebugLogMetrics\DebugLogMetrics-2005.vcproj", "{53FB9872-5E74-4E62-892D-AD82C2ED67CE}" 
    269229  ProjectSection(WebsiteProperties) = preProject 
     
    284244  EndProjectSection 
    285245EndProject 
    286 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "systray_helper", "helpers\systray_helper\systray_helper.vcproj", "{43718644-173B-42D8-8AD1-E359BFB2BB20}" 
    287   ProjectSection(WebsiteProperties) = preProject 
    288     Debug.AspNetCompiler.Debug = "True" 
    289     Release.AspNetCompiler.Debug = "False" 
    290   EndProjectSection 
    291 EndProject 
    292 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CsharpSamplePlugin", "modules\CsharpSamplePlugin\CsharpSamplePlugin.csproj", "{1D9DEE38-BBDC-49DE-A6F3-BAC26E114C1D}" 
    293   ProjectSection(WebsiteProperties) = preProject 
    294     Debug.AspNetCompiler.Debug = "True" 
    295     Release.AspNetCompiler.Debug = "False" 
    296   EndProjectSection 
    297 EndProject 
    298 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SampleManagedPlugin", "modules\SampleManagedPlugin\SampleManagedPlugin.vcproj", "{D367E76D-9485-4DCB-A9D0-3D3C0E190648}" 
    299   ProjectSection(WebsiteProperties) = preProject 
    300     Debug.AspNetCompiler.Debug = "True" 
    301     Release.AspNetCompiler.Debug = "False" 
    302   EndProjectSection 
    303 EndProject 
    304 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".NET", ".NET", "{BBE9A5E7-A16B-443C-A349-823DED5A9FF3}" 
    305   ProjectSection(WebsiteProperties) = preProject 
    306     Debug.AspNetCompiler.Debug = "True" 
    307     Release.AspNetCompiler.Debug = "False" 
    308   EndProjectSection 
    309 EndProject 
    310 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "custom-installers", "custom-installers", "{FC917E21-188A-44EE-9EF2-7C1274C2D719}" 
    311   ProjectSection(WebsiteProperties) = preProject 
    312     Debug.AspNetCompiler.Debug = "True" 
    313     Release.AspNetCompiler.Debug = "False" 
    314   EndProjectSection 
    315 EndProject 
    316 Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "..\..\..\..\..\..\source\NSCP-stable\helpers\op5-installer\installer.wixproj", "{10A0052D-542B-47AD-85C3-1A3DD45BF2ED}" 
     246Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".NET", ".NET", "{09A7A94B-264F-4C14-938D-C562971969FB}" 
     247  ProjectSection(WebsiteProperties) = preProject 
     248    Debug.AspNetCompiler.Debug = "True" 
     249    Release.AspNetCompiler.Debug = "False" 
     250  EndProjectSection 
     251EndProject 
     252Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "custom-installers", "custom-installers", "{9C4AC46F-D142-4B22-BE22-104ADC3C3731}" 
     253  ProjectSection(WebsiteProperties) = preProject 
     254    Debug.AspNetCompiler.Debug = "True" 
     255    Release.AspNetCompiler.Debug = "False" 
     256  EndProjectSection 
     257EndProject 
     258Project("{A49CE20D-CE64-4A08-9F24-92A6443D6699}") = "installer", "..\..\NSCP-stable\helpers\op5-installer\installer.wixproj", "{B6A2BD0C-9633-4DD4-A350-D98ACE660937}" 
     259  ProjectSection(WebsiteProperties) = preProject 
     260    Debug.AspNetCompiler.Debug = "True" 
     261    Release.AspNetCompiler.Debug = "False" 
     262  EndProjectSection 
     263EndProject 
     264Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CheckExternalScripts", "modules\CheckExternalScripts\CheckExternalScripts-2005.vcproj", "{0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}" 
    317265  ProjectSection(WebsiteProperties) = preProject 
    318266    Debug.AspNetCompiler.Debug = "True" 
     
    1013961    {26B84883-BE52-40E6-9BEE-55AD056D5751}.Release|x64.ActiveCfg = Release|x64 
    1014962    {26B84883-BE52-40E6-9BEE-55AD056D5751}.Release|x64.Build.0 = Release|x64 
    1015     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Any CPU.ActiveCfg = Debug|x64 
    1016     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Itanium.ActiveCfg = Debug|x64 
    1017     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Mixed Platforms.ActiveCfg = Debug|x64 
    1018     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Mixed Platforms.Build.0 = Debug|x64 
    1019     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Win32.ActiveCfg = Debug|Win32 
    1020     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Win32.Build.0 = Debug|Win32 
    1021     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|x64.ActiveCfg = Debug|x64 
    1022     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|x64.Build.0 = Debug|x64 
    1023     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Any CPU.ActiveCfg = Debug-MemCheck|x64 
    1024     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Itanium.ActiveCfg = Debug-MemCheck|x64 
    1025     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Mixed Platforms.ActiveCfg = Debug-MemCheck|x64 
    1026     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Mixed Platforms.Build.0 = Debug-MemCheck|x64 
    1027     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Win32.ActiveCfg = Debug-MemCheck|Win32 
    1028     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Win32.Build.0 = Debug-MemCheck|Win32 
    1029     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|x64.ActiveCfg = Debug-MemCheck|x64 
    1030     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|x64.Build.0 = Debug-MemCheck|x64 
    1031     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Any CPU.ActiveCfg = Distribution|x64 
    1032     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Itanium.ActiveCfg = Distribution|x64 
    1033     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Mixed Platforms.ActiveCfg = Distribution|x64 
    1034     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Mixed Platforms.Build.0 = Distribution|x64 
    1035     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Win32.ActiveCfg = Distribution|Win32 
    1036     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Win32.Build.0 = Distribution|Win32 
    1037     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|x64.ActiveCfg = Distribution|x64 
    1038     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|x64.Build.0 = Distribution|x64 
    1039     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Any CPU.ActiveCfg = Nightly|x64 
    1040     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Itanium.ActiveCfg = Nightly|x64 
    1041     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Mixed Platforms.ActiveCfg = Nightly|x64 
    1042     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Mixed Platforms.Build.0 = Nightly|x64 
    1043     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Win32.ActiveCfg = Nightly|Win32 
    1044     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Win32.Build.0 = Nightly|Win32 
    1045     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|x64.ActiveCfg = Nightly|x64 
    1046     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|x64.Build.0 = Nightly|x64 
    1047     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Any CPU.ActiveCfg = OP5|x64 
    1048     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Itanium.ActiveCfg = OP5|x64 
    1049     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Mixed Platforms.ActiveCfg = OP5|x64 
    1050     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Mixed Platforms.Build.0 = OP5|x64 
    1051     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Win32.ActiveCfg = Nightly|Win32 
    1052     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Win32.Build.0 = Nightly|Win32 
    1053     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|x64.ActiveCfg = Nightly|x64 
    1054     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|x64.Build.0 = Nightly|x64 
    1055     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Any CPU.ActiveCfg = Release|x64 
    1056     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Itanium.ActiveCfg = Release|x64 
    1057     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Mixed Platforms.ActiveCfg = Release|x64 
    1058     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Mixed Platforms.Build.0 = Release|x64 
    1059     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Win32.ActiveCfg = Release|Win32 
    1060     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Win32.Build.0 = Release|Win32 
    1061     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|x64.ActiveCfg = Release|x64 
    1062     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|x64.Build.0 = Release|x64 
    1063963    {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996}.Debug|Any CPU.ActiveCfg = Debug|x64 
    1064964    {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996}.Debug|Itanium.ActiveCfg = Debug|x64 
     
    16061506    {DF1DB6FB-0448-46D6-AE82-9901495E5F1A}.Release|x64.ActiveCfg = Release|x64 
    16071507    {DF1DB6FB-0448-46D6-AE82-9901495E5F1A}.Release|x64.Build.0 = Release|x64 
     1508    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Any CPU.ActiveCfg = Debug 
     1509    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Any CPU.Build.0 = Debug 
     1510    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Itanium.ActiveCfg = Debug 
     1511    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Itanium.Build.0 = Debug 
     1512    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Mixed Platforms.ActiveCfg = Debug 
     1513    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Mixed Platforms.Build.0 = Debug 
     1514    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Win32.ActiveCfg = Debug 
     1515    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|Win32.Build.0 = Debug 
     1516    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|x64.ActiveCfg = Debug 
     1517    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug|x64.Build.0 = Debug 
     1518    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Any CPU.ActiveCfg = Debug 
     1519    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Any CPU.Build.0 = Debug 
     1520    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Itanium.ActiveCfg = Debug 
     1521    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Itanium.Build.0 = Debug 
     1522    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Mixed Platforms.ActiveCfg = Debug 
     1523    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Mixed Platforms.Build.0 = Debug 
     1524    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Win32.ActiveCfg = Debug 
     1525    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|Win32.Build.0 = Debug 
     1526    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|x64.ActiveCfg = Debug 
     1527    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Debug-MemCheck|x64.Build.0 = Debug 
     1528    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Any CPU.ActiveCfg = Debug 
     1529    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Any CPU.Build.0 = Debug 
     1530    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Itanium.ActiveCfg = Debug 
     1531    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Itanium.Build.0 = Debug 
     1532    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Mixed Platforms.ActiveCfg = Debug 
     1533    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Mixed Platforms.Build.0 = Debug 
     1534    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Win32.ActiveCfg = Debug 
     1535    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|Win32.Build.0 = Debug 
     1536    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|x64.ActiveCfg = Debug 
     1537    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Distribution|x64.Build.0 = Debug 
     1538    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Any CPU.ActiveCfg = Release 
     1539    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Any CPU.Build.0 = Release 
     1540    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Itanium.ActiveCfg = Release 
     1541    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Itanium.Build.0 = Release 
     1542    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Mixed Platforms.ActiveCfg = Release 
     1543    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Mixed Platforms.Build.0 = Release 
     1544    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Win32.ActiveCfg = Release 
     1545    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|Win32.Build.0 = Release 
     1546    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|x64.ActiveCfg = Release 
     1547    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Nightly|x64.Build.0 = Release 
     1548    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Any CPU.ActiveCfg = OP5 
     1549    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Any CPU.Build.0 = OP5 
     1550    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Itanium.ActiveCfg = OP5 
     1551    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Itanium.Build.0 = OP5 
     1552    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Mixed Platforms.ActiveCfg = OP5 
     1553    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Mixed Platforms.Build.0 = OP5 
     1554    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Win32.ActiveCfg = OP5 
     1555    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|Win32.Build.0 = OP5 
     1556    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|x64.ActiveCfg = OP5 
     1557    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.OP5|x64.Build.0 = OP5 
     1558    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Any CPU.ActiveCfg = Release 
     1559    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Any CPU.Build.0 = Release 
     1560    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Itanium.ActiveCfg = Release 
     1561    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Itanium.Build.0 = Release 
     1562    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Mixed Platforms.ActiveCfg = Release 
     1563    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Mixed Platforms.Build.0 = Release 
     1564    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Win32.ActiveCfg = Release 
     1565    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|Win32.Build.0 = Release 
     1566    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|x64.ActiveCfg = Release 
     1567    {B6A2BD0C-9633-4DD4-A350-D98ACE660937}.Release|x64.Build.0 = Release 
     1568    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Any CPU.ActiveCfg = Release|x64 
     1569    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Itanium.ActiveCfg = Release|x64 
     1570    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Mixed Platforms.ActiveCfg = Release|x64 
     1571    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Mixed Platforms.Build.0 = Release|x64 
     1572    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Win32.ActiveCfg = Release|Win32 
     1573    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|Win32.Build.0 = Release|Win32 
     1574    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|x64.ActiveCfg = Release|x64 
     1575    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug|x64.Build.0 = Release|x64 
     1576    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Any CPU.ActiveCfg = Release|x64 
     1577    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Itanium.ActiveCfg = Release|x64 
     1578    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Mixed Platforms.ActiveCfg = Release|x64 
     1579    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Mixed Platforms.Build.0 = Release|x64 
     1580    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|Win32.ActiveCfg = Release|x64 
     1581    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|x64.ActiveCfg = Release|x64 
     1582    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Debug-MemCheck|x64.Build.0 = Release|x64 
     1583    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Any CPU.ActiveCfg = Release|x64 
     1584    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Itanium.ActiveCfg = Release|x64 
     1585    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Mixed Platforms.ActiveCfg = Release|x64 
     1586    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Mixed Platforms.Build.0 = Release|x64 
     1587    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|Win32.ActiveCfg = Release|x64 
     1588    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|x64.ActiveCfg = Release|x64 
     1589    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Distribution|x64.Build.0 = Release|x64 
     1590    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Any CPU.ActiveCfg = Release|x64 
     1591    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Itanium.ActiveCfg = Release|x64 
     1592    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Mixed Platforms.ActiveCfg = Release|x64 
     1593    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Mixed Platforms.Build.0 = Release|x64 
     1594    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|Win32.ActiveCfg = Release|x64 
     1595    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|x64.ActiveCfg = Release|x64 
     1596    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Nightly|x64.Build.0 = Release|x64 
     1597    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Any CPU.ActiveCfg = Release|x64 
     1598    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Itanium.ActiveCfg = Release|x64 
     1599    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Mixed Platforms.ActiveCfg = Release|x64 
     1600    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Mixed Platforms.Build.0 = Release|x64 
     1601    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|Win32.ActiveCfg = Release|x64 
     1602    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|x64.ActiveCfg = Release|x64 
     1603    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.OP5|x64.Build.0 = Release|x64 
     1604    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Any CPU.ActiveCfg = Release|x64 
     1605    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Itanium.ActiveCfg = Release|x64 
     1606    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Mixed Platforms.ActiveCfg = Release|x64 
     1607    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Mixed Platforms.Build.0 = Release|x64 
     1608    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Win32.ActiveCfg = Release|Win32 
     1609    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|Win32.Build.0 = Release|Win32 
     1610    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|x64.ActiveCfg = Release|x64 
     1611    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129}.Release|x64.Build.0 = Release|x64 
    16081612  EndGlobalSection 
    16091613  GlobalSection(SolutionProperties) = preSolution 
     
    16221626    {6F55C9BF-57F6-4A15-A058-C83A52F539EE} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16231627    {26B84883-BE52-40E6-9BEE-55AD056D5751} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    1624     {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16251628    {4241C6CF-EC01-4AD9-89B0-B75EBA8A5996} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16261629    {BBFF8362-C626-4838-B0A2-F695D638AD24} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16271630    {F3401E75-60FB-4A0E-A18C-6505587D5B1A} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16281631    {53FB9872-5E74-4E62-892D-AD82C2ED67CE} = {9757464B-C125-4307-A84A-F4181AE6A081} 
     1632    {0BEEC749-0E3E-4FB2-82DA-AC8D4730A129} = {9757464B-C125-4307-A84A-F4181AE6A081} 
    16291633    {0E2B21D9-F432-4127-8E92-7716B1072510} = {9A087442-7BB2-4CF0-9F58-5D1BC3C32CD2} 
    16301634    {A3CF4E23-1D1B-4D93-A16A-48C52D118560} = {9A087442-7BB2-4CF0-9F58-5D1BC3C32CD2} 
     
    16381642    {1D9DEE38-BBDC-49DE-A6F3-BAC26E114C1D} = {BBE9A5E7-A16B-443C-A349-823DED5A9FF3} 
    16391643    {10A0052D-542B-47AD-85C3-1A3DD45BF2ED} = {FC917E21-188A-44EE-9EF2-7C1274C2D719} 
    1640     {D367E76D-9485-4DCB-A9D0-3D3C0E190648} = {BBE9A5E7-A16B-443C-A349-823DED5A9FF3} 
    1641     {1D9DEE38-BBDC-49DE-A6F3-BAC26E114C1D} = {BBE9A5E7-A16B-443C-A349-823DED5A9FF3} 
    1642     {10A0052D-542B-47AD-85C3-1A3DD45BF2ED} = {FC917E21-188A-44EE-9EF2-7C1274C2D719} 
    1643   EndGlobalSection 
    1644   GlobalSection(SubversionScc) = preSolution 
    1645     Svn-Managed = True 
    1646     Manager = AnkhSVN - Subversion Support for Visual Studio 
    16471644  EndGlobalSection 
    16481645  GlobalSection(DPCodeReviewSolutionGUID) = preSolution 
  • trunk/env.bat

    r201 r202  
    55rem # 
    66rem SET jam=C:\src\tools\boost-jam-3.1.17\bin.ntx86\bjam.exe 
    7 rem SET jam=D:\source\tools\bjam.exe 
    8 set jam=C:\src\tools\nightly\boost-build\jam_src\bin.ntx86\bjam.exe 
     7SET jam=D:\source\tools\bjam.exe 
     8rem set jam=C:\src\tools\nightly\boost-build\jam_src\bin.ntx86\bjam.exe 
    99 
    1010rem # 
     
    1414rem # 
    1515rem SET BOOST_BUILD_PATH=D:\tools\boost-build 
    16  SET BOOST_BUILD_PATH=C:\src\lib-src\boost_1_39_0\tools\build\v2 
    17 rem  SET BOOST_BUILD_PATH=C:\src\tools\beta\boost-build 
    18 rem set BOOST_BUILD_PATH=D:\source\boost-build 
    19 rem set BOOST_BUILD_PATH=C:\src\tools\nightly\boost-build\ 
    20  
     16rem SET BOOST_BUILD_PATH=C:\src\lib-src\boost_1_39_0\tools\build\v2 
     17rem SET BOOST_BUILD_PATH=D:\source\boost-build 
     18SET BOOST_BUILD_PATH=D:\source\boost-build-39 
     19rem SET BOOST_BUILD_PATH=D:\source\boost-build-nightly 
    2120rem # 
    2221rem ######################## 
     
    2423rem # Set the path to your extra include directpy (openssl/boost/*) 
    2524rem # 
    26 SET TARGET_INC_DIR=C:\src\include 
    27 rem set TARGET_INC_DIR=d:\source\include 
     25rem SET TARGET_INC_DIR=C:\src\include 
     26SET TARGET_INC_DIR=d:\source\include 
    2827SET NSCP_INCLUDE=%TARGET_INC_DIR% 
    2928rem # 
     
    3231rem # Set the path to your extra library directory (openssl/boost/*) 
    3332rem # 
    34 SET TARGET_LIB_DIR=c:\src\lib 
    35 rem SET TARGET_LIB_DIR=D:\source\lib 
     33rem SET TARGET_LIB_DIR=c:\src\lib 
     34SET TARGET_LIB_DIR=D:\source\lib 
    3635rem # 
    3736rem # Setup various relative paths (might need to tweak) 
     
    4544rem # Set the path to your Lua sources 
    4645rem # 
    47 rem set LUA_SOURCE=D:\source\NSCP-stable\lib-source\LUA\src\lua-5.1.2 
    48 set LUA_SOURCE=C:\src\lib-src\lua-5.1.4 
     46rem SET LUA_SOURCE=D:\source\NSCP-stable\lib-source\LUA\src\lua-5.1.2 
     47rem SET LUA_SOURCE=C:\src\lib-src\lua-5.1.4 
     48SET LUA_SOURCE=D:\source\libs-c\lua-5.1.2 
    4949rem # 
    5050rem ######################## 
     
    5252rem # Set the path to your Platform SDK 
    5353rem # 
    54 rem SET PLATTFORM_SDK=D:\Program\Microsoft Platform SDK for Windows Server 2003 R2 
    55 SET PLATTFORM_SDK=c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2 
     54SET PLATTFORM_SDK=D:\Program\Microsoft Platform SDK for Windows Server 2003 R2 
     55rem SET PLATTFORM_SDK=c:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2 
    5656rem # 
    5757rem # Setup various relative paths (might need to tweak) 
     
    6767rem # Set the path to your WiX installation 
    6868rem # 
    69 SET WIX_PATH=C:\Program Files\Windows Installer XML 
     69rem SET WIX_PATH=C:\Program Files\Windows Installer XML 
     70SET WIX_PATH=d:\Program\Windows Installer XML 
    7071rem # 
    7172rem ######################## 
     
    7374rem # Set the path to your Crypt++ sources 
    7475rem # 
    75 rem SET CRYPTOPP_SOURCE=D:\source\libs-c\crypto++-5.6.0 
    76 SET CRYPTOPP_SOURCE="C:\src\lib-src\Crypto++5.6.0" 
     76SET CRYPTOPP_SOURCE=D:\source\libs-c\crypto++-5.6.0 
     77rem SET CRYPTOPP_SOURCE="C:\src\lib-src\Crypto++5.6.0" 
    7778rem ######################## 
    7879rem # 
     
    8081rem # 
    8182 
    82 SET TOOLS_DIR=c:\src\tools\;%ProgramFiles%\7-Zip\ 
     83SET XAUTOBUILD=D:\source\tools\XAutobuild.exe 
     84 
     85SET TOOLS_DIR=c:\src\tools\;%ProgramFiles%\7-Zip\;d:\source\tools\ 
    8386 
    8487 
  • trunk/include/EnumNtSrv.cpp

    r201 r202  
    199199    delete [] buf; 
    200200    sh = ::OpenService(scman,short_name.c_str(),SERVICE_QUERY_STATUS); 
    201     if (bufLen >= SC_BUF_LEN) { 
    202       ::CloseServiceHandle(scman); 
    203       throw NTServiceException(name, "Service name to long to handle", GetLastError()); 
    204     } 
    205     buf[bufLen] = 0; 
    206     */ 
    207     sh = ::OpenService(scman,buf,SERVICE_QUERY_STATUS); 
    208     delete [] buf; 
    209201    if (sh == NULL) { 
    210202      DWORD dwErr = GetLastError(); 
  • trunk/include/NSCHelper.cpp

    r201 r202  
    160160  lpNSAPIReleaseAllCommandNamessBuffer fNSAPIReleaseAllCommandNamessBuffer= NULL; 
    161161  lpNSAPIRegisterCommand fNSAPIRegisterCommand= NULL; 
    162   lpNSAPISettingsAddPathMapping fNSAPISettingsAddPathMapping = NULL; 
    163   lpNSAPISettingsAddKeyMapping fNSAPISettingsAddKeyMapping = NULL; 
    164162  lpNSAPISettingsRegKey fNSAPISettingsRegKey = NULL; 
    165163  lpNSAPISettingsRegPath fNSAPISettingsRegPath = NULL; 
     
    437435} 
    438436 
    439 void NSCModuleHelper::settings_add_mapping(std::wstring src_path, std::wstring src_key, std::wstring dst_path, std::wstring dst_key) { 
    440   if (!fNSAPISettingsAddKeyMapping) 
    441     throw NSCMHExcpetion(_T("NSCore has not been initiated...")); 
    442   fNSAPISettingsAddKeyMapping(src_path.c_str(), src_key.c_str(), dst_path.c_str(), dst_key.c_str()); 
    443 } 
    444 void NSCModuleHelper::settings_add_mapping(std::wstring src, std::wstring dst) { 
    445   if (!fNSAPISettingsAddPathMapping) 
    446     throw NSCMHExcpetion(_T("NSCore has not been initiated...")); 
    447   fNSAPISettingsAddPathMapping(src.c_str(), dst.c_str()); 
    448 } 
    449  
    450437void NSCModuleHelper::settings_register_key(std::wstring path, std::wstring key, NSCAPI::settings_type type, std::wstring title, std::wstring description, std::wstring defaultValue, bool advanced) { 
    451438  if (!fNSAPISettingsRegKey) 
     
    751738  NSCModuleHelper::fNSAPIRegisterCommand = (NSCModuleHelper::lpNSAPIRegisterCommand)f(_T("NSAPIRegisterCommand")); 
    752739 
    753   NSCModuleHelper::fNSAPISettingsAddKeyMapping = (NSCModuleHelper::lpNSAPISettingsAddKeyMapping)f(_T("NSAPISettingsAddKeyMapping")); 
    754   NSCModuleHelper::fNSAPISettingsAddPathMapping = (NSCModuleHelper::lpNSAPISettingsAddPathMapping)f(_T("NSAPISettingsAddPathMapping")); 
    755  
    756740  NSCModuleHelper::fNSAPISettingsRegKey = (NSCModuleHelper::lpNSAPISettingsRegKey)f(_T("NSAPISettingsRegKey")); 
    757741  NSCModuleHelper::fNSAPISettingsRegPath = (NSCModuleHelper::lpNSAPISettingsRegPath)f(_T("NSAPISettingsRegPath")); 
  • trunk/include/NSCHelper.h

    r201 r202  
    132132  typedef NSCAPI::errorReturn (*lpNSAPIReleaseAllCommandNamessBuffer)(arrayBuffer::arrayBuffer*, unsigned int *); 
    133133  typedef NSCAPI::errorReturn (*lpNSAPIRegisterCommand)(const TCHAR*,const TCHAR*); 
    134   typedef NSCAPI::errorReturn (*lpNSAPISettingsAddKeyMapping)(const TCHAR*, const TCHAR*, const TCHAR*, const TCHAR*); 
    135   typedef NSCAPI::errorReturn (*lpNSAPISettingsAddPathMapping)(const TCHAR*, const TCHAR*); 
    136134  typedef NSCAPI::errorReturn (*lpNSAPISettingsRegKey)(const TCHAR*, const TCHAR*, int, const TCHAR*, const TCHAR*, const TCHAR*, int); 
    137135  typedef NSCAPI::errorReturn (*lpNSAPISettingsRegPath)(const TCHAR*, const TCHAR*, const TCHAR*, int); 
     
    147145  std::wstring getSettingsString(std::wstring section, std::wstring key, std::wstring defaultValue); 
    148146  int getSettingsInt(std::wstring section, std::wstring key, int defaultValue); 
    149   void settings_add_mapping(std::wstring src_path, std::wstring src_key, std::wstring dst_path, std::wstring dst_key); 
    150   void settings_add_mapping(std::wstring src, std::wstring dst); 
    151147  void settings_register_key(std::wstring path, std::wstring key, NSCAPI::settings_type type, std::wstring title, std::wstring description, std::wstring defaultValue, bool advanced); 
    152148  void settings_register_path(std::wstring path, std::wstring title, std::wstring description, bool advanced); 
     
    446442#define SETTINGS_REG_PATH(key) \ 
    447443  NSCModuleHelper::settings_register_path(settings::key ## _PATH, settings::key ## _TITLE, settings::key ## _DESC, settings::key ## _ADVANCED); 
    448 #define SETTINGS_MAP_KEY_A(name, section, key) \ 
    449   NSCModuleHelper::settings_add_mapping(settings::name ## _PATH, settings::name, section, key); 
    450 #define SETTINGS_MAP_SECTION_A(name, section) \ 
    451   NSCModuleHelper::settings_add_mapping(settings::name ## _PATH, section); 
  • trunk/include/config.h

    r201 r202  
    3030#define SZBETATAG _T(" ") 
    3131//#define SZBETATAG _T(" BETA ")  
    32 #define SZBETATAG _T(" BETA ")  
     32//#define SZBETATAG _T(" BETA ")  
    3333#define SZVERSION STRPRODUCTVER SZBETATAG STRPRODUCTDATE 
    3434//FILEVER[0] 
     
    183183    DEFINE_SETTING_S(OBFUSCATED_PWD, NSCLIENT_SECTION, GENERIC_KEY_OBFUSCATED_PWD, ""); 
    184184    DESCRIBE_SETTING(OBFUSCATED_PWD, "OBFUSCATED PASSWORD", "This is the same as the password option but here you can store the password in an obfuscated manner. *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the password. Its just a bit harder to do it at first glance."); 
     185 
     186    DEFINE_SETTING_S(SYSTRAY_EXE, NSCLIENT_SECTION, "systray_exe", "nstray.exe"); 
     187    DESCRIBE_SETTING(SYSTRAY_EXE, "TODO", "TODO"); 
    185188  } 
    186189 
     
    212215    DESCRIBE_SETTING_ADVANCED(CACHE_ALLOWED, "ALLOWED HOSTS CACHING", "Used to cache looked up hosts if you check dynamic/changing hosts set this to false."); 
    213216 
    214     DEFINE_SETTING_B(USE_SSL, NRPE_SECTION_PROTOCOL, GENERIC_KEY_USE_SSL, true); 
    215     DESCRIBE_SETTING(USE_SSL, "USE SSL SOCKET", "This option controls if SSL should be used on the socket."); 
     217    DEFINE_SETTING_B(KEYUSE_SSL, NRPE_SECTION_PROTOCOL, GENERIC_KEY_USE_SSL, true); 
     218    DESCRIBE_SETTING(KEYUSE_SSL, "USE SSL SOCKET", "This option controls if SSL should be used on the socket."); 
    216219 
    217220    DEFINE_SETTING_I(PAYLOAD_LENGTH, NRPE_SECTION_PROTOCOL, "payload length", 1024); 
     
    406409    DEFINE_PATH(CMD_SECTION, NSCA_CMD_SECTION); 
    407410    DESCRIBE_SETTING(CMD_SECTION, "NSCA COMMAND SECTION", "Commands to check and report to the NSCA server"); 
     411 
     412    DEFINE_SETTING_S(REPORT_MODE, NSCA_SERVER_SECTION, "report", "all"); 
     413    DESCRIBE_SETTING(REPORT_MODE, "REPORT MODE", "What to report to the server (any of the following: all, critical, warning, unknown, ok)"); 
     414 
     415    DEFINE_SETTING_S(TIME_DELTA_DEFAULT, NSCA_SECTION, "delay", "0"); 
     416    DESCRIBE_SETTING(TIME_DELTA_DEFAULT, "TODO", "TODO"); 
     417     
     418    DEFINE_SETTING_I(PAYLOAD_LENGTH, NSCA_SECTION, "payload length", 512); 
     419    DESCRIBE_SETTING_ADVANCED(PAYLOAD_LENGTH, "PAYLOAD LENGTH", "Length of payload to/from the NSCA agent. This is a hard specific value so you have to \"configure\" (read recompile) your NSCA server to use the same value for it to work."); 
     420 
     421    DEFINE_SETTING_I(READ_TIMEOUT, NSCA_SERVER_SECTION, GENERIC_KEY_SOCK_READ_TIMEOUT, 30); 
     422    DESCRIBE_SETTING(READ_TIMEOUT, "SOCKET TIMEOUT", "Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out."); 
     423 
    408424  } 
    409425 
  • trunk/include/file_helpers.hpp

    r201 r202  
    55  public: 
    66    static bool is_directory(std::wstring path) { 
    7       DWORD dwAtt = ::GetFileAttributes(path.c_str()); 
     7      return is_directory(::GetFileAttributes(path.c_str())); 
     8    } 
     9    static bool is_directory(DWORD dwAtt) { 
    810      if (dwAtt == INVALID_FILE_ATTRIBUTES) { 
    911        return false; 
  • trunk/include/file_logger.hpp

    r169 r202  
    66#include <string> 
    77 
    8 namespace logging { 
     8 
     9namespace simple_file { 
    910 
    1011#ifndef CSIDL_COMMON_APPDATA  
     
    1314#endif 
    1415  typedef BOOL (WINAPI *fnSHGetSpecialFolderPath)(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate); 
     16    static BOOL WINAPI _SHGetSpecialFolderPath(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate) { 
     17      static fnSHGetSpecialFolderPath __SHGetSpecialFolderPath = NULL; 
     18      if (!__SHGetSpecialFolderPath) { 
     19        HMODULE hDLL = LoadLibrary(_T("shell32.dll")); 
     20        if (hDLL != NULL) {  
     21          __SHGetSpecialFolderPath = (fnSHGetSpecialFolderPath)GetProcAddress(hDLL,"SHGetSpecialFolderPathW"); 
     22        } 
     23      } 
     24      if(__SHGetSpecialFolderPath) 
     25        return __SHGetSpecialFolderPath(hwndOwner, lpszPath, nFolder, fCreate); 
     26      return FALSE; 
     27    } 
    1528 
    16   __inline BOOL WINAPI _SHGetSpecialFolderPath(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate) { 
    17     static fnSHGetSpecialFolderPath __SHGetSpecialFolderPath = NULL; 
    18     if (!__SHGetSpecialFolderPath) { 
    19       HMODULE hDLL = LoadLibrary(_T("shell32.dll")); 
    20       if (hDLL != NULL) 
    21         __SHGetSpecialFolderPath = (fnSHGetSpecialFolderPath)GetProcAddress(hDLL,"SHGetSpecialFolderPathW"); 
    22     } 
    23     if(__SHGetSpecialFolderPath) 
    24       return __SHGetSpecialFolderPath(hwndOwner, lpszPath, nFolder, fCreate); 
    25     return FALSE; 
    26   } 
    2729 
    28   class file_logger { 
     30  class file_appender { 
    2931    std::wstring file_; 
    30     std::wstring datemask_; 
    3132    std::wstring path_; 
    3233    std::wstring filename_; 
    3334  public: 
    34     file_logger(std::wstring path, std::wstring filename) : path_(path), filename_(filename), datemask_(_T("%Y-%m-%d %H:%M:%S")) { 
    35       _tzset(); 
     35    file_appender(std::wstring path, std::wstring filename) : path_(path), filename_(filename) {} 
     36    file_appender() {} 
     37 
     38    void set_file(std::wstring path, std::wstring filename) { 
     39      path_ = path; 
     40      filename_ = filename; 
    3641    } 
    3742 
     
    5156      } 
    5257      return file_; 
     58    } 
     59  private: 
     60    inline std::wstring getFolder() { 
     61      TCHAR buf[MAX_PATH+1]; 
     62      if (!_SHGetSpecialFolderPath(NULL, buf, CSIDL_LOCAL_APPDATA, FALSE)) { 
     63        return _T("") + error::lookup::last_error(); 
     64      } 
     65      return buf; 
     66    } 
     67    bool directoryExists(std::wstring path) { 
     68      DWORD dwAtt = ::GetFileAttributes(path.c_str()); 
     69      if (dwAtt == INVALID_FILE_ATTRIBUTES) { 
     70        return false; 
     71      } else if ((dwAtt&FILE_ATTRIBUTE_DIRECTORY)==FILE_ATTRIBUTE_DIRECTORY) { 
     72        return true; 
     73      } 
     74      return false; 
     75    } 
     76 
     77    HANDLE openAppendOrNew(std::wstring file) { 
     78      DWORD numberOfBytesWritten = 0; 
     79      HANDLE hFile = ::CreateFile(file.c_str(), GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); 
     80      if (hFile == INVALID_HANDLE_VALUE) { 
     81        hFile = ::CreateFile(file.c_str(), GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); 
     82        if (hFile != INVALID_HANDLE_VALUE) { 
     83          WORD wBOM = 0xFEFF; 
     84          ::WriteFile(hFile, &wBOM, sizeof(WORD), &numberOfBytesWritten, NULL); 
     85        } else { 
     86          int x = 5; 
     87        } 
     88      } 
     89      return hFile; 
     90    } 
     91  public: 
     92 
     93    bool writeEntry(std::wstring line) { 
     94      DWORD numberOfBytesWritten; 
     95      HANDLE hFile = openAppendOrNew(getFileName()); 
     96      if (hFile == INVALID_HANDLE_VALUE) { 
     97        return false; 
     98      } 
     99      if (::SetFilePointer(hFile, 0, NULL, FILE_END) == INVALID_SET_FILE_POINTER) { 
     100        // Ingore this error! 
     101      } 
     102      ::WriteFile(hFile, line.c_str(), (static_cast<DWORD>(line.length()))*(sizeof(TCHAR)), &numberOfBytesWritten, NULL); 
     103      ::CloseHandle(hFile); 
     104      return true; 
     105    } 
     106  }; 
     107} 
     108 
     109namespace logging { 
     110  class file_logger : public simple_file::file_appender { 
     111    std::wstring datemask_; 
     112  public: 
     113    file_logger(std::wstring path, std::wstring filename) : file_appender(path, filename), datemask_(_T("%Y-%m-%d %H:%M:%S")) { 
     114      _tzset(); 
    53115    } 
    54116    void log(const std::wstring category, const wchar_t* file, const int line, const wchar_t* message) { 
     
    71133      } 
    72134    } 
    73   private: 
    74  
    75     inline std::wstring getFolder() { 
    76       TCHAR buf[MAX_PATH+1]; 
    77       if (!_SHGetSpecialFolderPath(NULL, buf, CSIDL_LOCAL_APPDATA, FALSE)) { 
    78         return _T("") + error::lookup::last_error(); 
    79       } 
    80       return buf; 
    81     } 
    82  
    83     bool directoryExists(std::wstring path) { 
    84       DWORD dwAtt = ::GetFileAttributes(path.c_str()); 
    85       if (dwAtt == INVALID_FILE_ATTRIBUTES) { 
    86         return false; 
    87       } else if ((dwAtt&FILE_ATTRIBUTE_DIRECTORY)==FILE_ATTRIBUTE_DIRECTORY) { 
    88         return true; 
    89       } 
    90       return false; 
    91     } 
    92  
    93     HANDLE openAppendOrNew(std::wstring file) { 
    94       DWORD numberOfBytesWritten = 0; 
    95       HANDLE hFile = ::CreateFile(file.c_str(), GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); 
    96       if (hFile == INVALID_HANDLE_VALUE) { 
    97         hFile = ::CreateFile(file.c_str(), GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); 
    98         if (hFile != INVALID_HANDLE_VALUE) { 
    99           WORD wBOM = 0xFEFF; 
    100           ::WriteFile(hFile, &wBOM, sizeof(WORD), &numberOfBytesWritten, NULL); 
    101         } else { 
    102           int x = 5; 
    103         } 
    104       } 
    105       return hFile; 
    106     } 
    107  
    108     bool writeEntry(std::wstring line) { 
    109       DWORD numberOfBytesWritten; 
    110       HANDLE hFile = openAppendOrNew(getFileName()); 
    111       if (hFile == INVALID_HANDLE_VALUE) { 
    112         return false; 
    113       } 
    114       if (::SetFilePointer(hFile, 0, NULL, FILE_END) == INVALID_SET_FILE_POINTER) { 
    115         // Ingore this error! 
    116       } 
    117       ::WriteFile(hFile, line.c_str(), (static_cast<DWORD>(line.length()))*(sizeof(TCHAR)), &numberOfBytesWritten, NULL); 
    118       ::CloseHandle(hFile); 
    119       return true; 
    120     } 
    121  
    122  
    123135  }; 
    124136} 
  • trunk/include/settings/Settings.h

    r201 r202  
    168168    /// 
    169169    /// @author mickem 
    170     virtual std::wstring map_path(std::wstring path) = 0; 
     170    //virtual std::wstring map_path(std::wstring path) = 0; 
    171171 
    172172    ////////////////////////////////////////////////////////////////////////// 
     
    177177    /// 
    178178    /// @author mickem 
    179     virtual key_path_type map_key(key_path_type key) = 0; 
     179    //virtual key_path_type map_key(key_path_type key) = 0; 
    180180 
    181181    ////////////////////////////////////////////////////////////////////////// 
     
    186186    /// 
    187187    /// @author mickem 
    188     virtual mapped_key_list_type find_maped_keys(std::wstring path) = 0; 
     188    //virtual mapped_key_list_type find_maped_keys(std::wstring path) = 0; 
    189189 
    190190    ////////////////////////////////////////////////////////////////////////// 
     
    195195    /// 
    196196    /// @author mickem 
    197     virtual string_list get_mapped_sections(std::wstring path) = 0; 
     197    //virtual string_list get_mapped_sections(std::wstring path) = 0; 
    198198 
    199199    ////////////////////////////////////////////////////////////////////////// 
     
    204204    /// 
    205205    /// @author mickem 
    206     virtual std::wstring reverse_map_path(std::wstring path) = 0; 
     206    //virtual std::wstring reverse_map_path(std::wstring path) = 0; 
    207207 
    208208    ////////////////////////////////////////////////////////////////////////// 
     
    213213    /// 
    214214    /// @author mickem 
    215     virtual key_path_type reverse_map_key(key_path_type key) = 0; 
     215    //virtual key_path_type reverse_map_key(key_path_type key) = 0; 
    216216 
    217217    ////////////////////////////////////////////////////////////////////////// 
     
    225225    /// 
    226226    /// @author mickem 
    227     virtual void add_mapping(std::wstring source_path, std::wstring source_key, std::wstring destination_path, std::wstring destination_key) = 0; 
     227    //virtual void add_mapping(std::wstring source_path, std::wstring source_key, std::wstring destination_path, std::wstring destination_key) = 0; 
    228228 
    229229    ////////////////////////////////////////////////////////////////////////// 
     
    235235    /// 
    236236    ///@author mickem 
    237     virtual void add_mapping(std::wstring source_path, std::wstring destination_path) = 0; 
     237    //virtual void add_mapping(std::wstring source_path, std::wstring destination_path) = 0; 
    238238 
    239239    ////////////////////////////////////////////////////////////////////////// 
     
    609609  }; 
    610610 
    611 class settings_core 
    612 { 
    613 private: 
    614   typedef struct { 
    615     typedef enum { sType, iType} typeEnum; 
    616     typeEnum type; 
    617     std::wstring sVal; 
    618     int iVal; 
    619   } valueStruct; 
    620   typedef std::map<std::wstring,valueStruct> saveKeyList; 
    621   typedef std::map<std::wstring,saveKeyList> saveSectionList; 
    622   saveSectionList data_; 
    623   std::wstring file_; 
    624   std::wstring basepath_; 
    625   bool bHasInternalData; 
    626   settings_base *settingsManager; 
    627  
    628 public: 
    629   typedef std::list<std::wstring> sectionList; 
    630   settings_core(void) : bHasInternalData(false), settingsManager(NULL) 
    631   { 
    632   } 
    633  
    634   virtual ~settings_core(void) 
    635   { 
    636     if (settingsManager) 
    637       delete settingsManager; 
    638   } 
    639   std::wstring getActiveType() { 
    640     if (!settingsManager) 
    641       return _T(""); 
    642     return settingsManager->getActiveType(); 
    643   } 
     611  class SettingsHandlerImpl : public SettingsCore { 
     612  private: 
     613    typedef std::map<SettingsCore::settings_type,SettingsInterface*> instance_list; 
     614    SettingsInterface* instance_; 
     615    instance_list instances_; 
     616    MutexHandler mutexHandler_; 
     617    /* 
     618    struct key_description : public SettingsCore::key_description { 
     619      std::wstring title; 
     620      std::wstring description; 
     621      SettingsCore::key_type type; 
     622      std::wstring defValue; 
     623      bool advanced; 
     624      key_description(std::wstring title_, std::wstring description_, SettingsCore::key_type type_, std::wstring defValue_, bool advanced_)  
     625      : title(title_), description(description_), type(type_), defValue(defValue_), advanced(advanced_) {} 
     626      key_description() : advanced(false), type(SettingsCore::key_string) {} 
     627    }; 
     628    */ 
     629    struct path_description { 
     630      std::wstring title; 
     631      std::wstring description; 
     632      bool advanced; 
     633      typedef std::map<std::wstring,key_description> keys_type; 
     634      keys_type keys; 
     635      path_description(std::wstring title_, std::wstring description_, bool advanced_) : title(title_), description(description_), advanced(advanced_) {} 
     636      path_description() : advanced(false) {} 
     637      void update(std::wstring title_, std::wstring description_, bool advanced_) { 
     638        title = title_; 
     639        description = description_; 
     640        advanced = advanced_; 
     641      } 
     642    }; 
     643    class dummy_logger : public LoggerInterface { 
     644      void err(std::wstring file, int line, std::wstring message) {} 
     645      void warn(std::wstring file, int line, std::wstring message) {} 
     646      void info(std::wstring file, int line, std::wstring message) {} 
     647      void debug(std::wstring file, int line, std::wstring message) {} 
     648    }; 
     649    typedef std::map<std::wstring, std::wstring> path_map; 
     650    //path_map path_mappings_; 
     651    //path_map reversed_path_mappings_; 
     652    std::wstring base_path_; 
     653    LoggerInterface *logger_; 
     654    typedef std::map<std::wstring,path_description> reg_paths_type; 
     655    reg_paths_type registred_paths_; 
     656    typedef std::map<key_path_type,key_path_type> mapped_paths_type; 
     657    //mapped_paths_type mapped_paths_; 
     658    //mapped_paths_type reversed_mapped_paths_; 
     659    typedef SettingsInterface::string_list string_list; 
     660  public: 
     661    SettingsHandlerImpl() : instance_(NULL), logger_(new dummy_logger()) {} 
     662    ~SettingsHandlerImpl() { 
     663      destroy_all_instances(); 
     664      set_logger(NULL); 
     665    } 
     666 
     667    ////////////////////////////////////////////////////////////////////////// 
     668    /// Set the basepath for the settings subsystem. 
     669    /// In other words set where the settings files reside 
     670    /// 
     671    /// @param path the path to the settings files 
     672    /// 
     673    /// @author mickem 
     674    void set_base(std::wstring path) { 
     675      base_path_ = path; 
     676    } 
     677 
     678    ////////////////////////////////////////////////////////////////////////// 
     679    /// Set the logging interface (will receive log messages) 
     680    /// 
     681    /// @param logger the new logger to use 
     682    /// 
     683    /// @author mickem 
     684    void set_logger(LoggerInterface *logger) { 
     685      LoggerInterface *old_logger = logger_; 
     686      logger_ = logger; 
     687      delete old_logger; 
     688    } 
    644689 
    645690    ////////////////////////////////////////////////////////////////////////// 
     
    667712 
    668713 
    669 #define UNLIKELY_VALUE_1 -1234 
    670 #define UNLIKELY_VALUE_2 -4321 
    671   void read(int type = -1) { 
    672     bool bNew = false; 
    673     settings_base *sM = settingsManager; 
    674     if (settingsManager == NULL) 
    675       throw SettingsException(_T("No settings method specified, cannot start")); 
    676     if ((type != -1)&&(type != settingsManager->getActiveTypeID())) { 
    677       if (type == REGSettings::getType()) { 
    678         sM = new REGSettings(); 
    679         bNew = true; 
    680       } else if (type == INISettings::getType()) { 
    681         sM = new INISettings(basepath_, file_); 
    682         bNew = true; 
     714    SettingsInterface* get() { 
     715      MutexLock mutex(mutexHandler_); 
     716      if (!mutex.hasMutex()) 
     717        throw SettingsException(_T("Failed to get mutext, cant get settings instance")); 
     718      if (instance_ == NULL) 
     719        instance_ = get_default_settings_instance_unsafe(); 
     720      if (instance_ == NULL) 
     721        throw SettingsException(_T("Failed initialize settings instance")); 
     722      return instance_; 
     723    } 
     724    SettingsInterface* get(SettingsCore::settings_type type) { 
     725      MutexLock mutex(mutexHandler_); 
     726      if (!mutex.hasMutex()) 
     727        throw SettingsException(_T("Failed to get mutext, cant get settings instance")); 
     728      return instance_unsafe(type); 
     729    } 
     730    ////////////////////////////////////////////////////////////////////////// 
     731    /// Overwrite the (current) settings store with default values. 
     732    /// 
     733    /// @author mickem 
     734    void update_defaults() { 
     735      get_logger()->warn(__FILEW__, __LINE__, _T("Updating settings with default values!")); 
     736      string_list s = get_reg_sections(); 
     737      for (string_list::const_iterator cit = s.begin(); cit != s.end(); ++cit) { 
     738        string_list k = get_reg_keys(*cit); 
     739        for (string_list::const_iterator citk = k.begin(); citk != k.end(); ++citk) { 
     740          SettingsCore::key_description desc = get_registred_key(*cit, *citk); 
     741          if (!desc.advanced) { 
     742            if (!get()->has_key(*cit, *citk)) { 
     743              get_logger()->debug(__FILEW__, __LINE__, _T("Adding: ") + *cit + _T(".") + *citk); 
     744              if (desc.type == key_string) 
     745                get()->set_string(*cit, *citk, desc.defValue); 
     746              else if (desc.type == key_bool) 
     747                get()->set_bool(*cit, *citk, desc.defValue==_T("true")); 
     748              else if (desc.type == key_integer) 
     749                get()->set_int(*cit, *citk, strEx::stoi(desc.defValue)); 
     750              else 
     751                throw SettingsException(_T("Unknown keytype for: ") + *cit + _T(".") + *citk); 
     752            } else { 
     753              get_logger()->debug(__FILEW__, __LINE__, _T("ŽSkipping (already exists): ") + *cit + _T(".") + *citk); 
     754            } 
     755          } else { 
     756            get_logger()->debug(__FILEW__, __LINE__, _T("ŽSkipping (advanced): ") + *cit + _T(".") + *citk); 
     757          } 
     758        } 
     759      } 
     760      get_logger()->info(__FILEW__, __LINE__, _T("DONE Updating settings with default values!")); 
     761    } 
     762    void migrate_type(SettingsCore::settings_type from, SettingsCore::settings_type to) { 
     763#ifdef _DEBUG 
     764      get_logger()->debug(__FILEW__, __LINE__, _T("Preparing to migrate...")); 
     765#endif 
     766      { 
     767        if (!has_type(from)) { 
     768#ifdef _DEBUG 
     769          get_logger()->debug(__FILEW__, __LINE__, _T("Migration needs source...")); 
     770#endif 
     771          add_type_impl(from, create_instance(from, type_to_string(from))); 
     772        } 
     773        if (!has_type(to)) { 
     774#ifdef _DEBUG 
     775          get_logger()->debug(__FILEW__, __LINE__, _T("Migration needs target...")); 
     776#endif 
     777          add_type_impl(to, create_instance(to, type_to_string(to))); 
     778        } 
     779      } 
     780      { 
     781#ifdef _DEBUG 
     782        get_logger()->debug(__FILEW__, __LINE__, _T("Starting to migrate...")); 
     783#endif 
     784        MutexLock mutex(mutexHandler_); 
     785        if (!mutex.hasMutex()) 
     786          throw SettingsException(_T("migrate_type: Failed to get mutext, cant get settings instance")); 
     787        SettingsInterface* iFrom = instance_unsafe(from); 
     788        SettingsInterface* iTo = instance_unsafe(to); 
     789        if (iTo == NULL||iFrom == NULL) 
     790          throw new SettingsException(_T("Failed to migrate")); 
     791        iFrom->save_to(iTo); 
     792#ifdef _DEBUG 
     793        get_logger()->debug(__FILEW__, __LINE__, _T("Done migrating...")); 
     794#endif 
     795      } 
     796    } 
     797    void migrate_to(SettingsCore::settings_type to) { 
     798      migrate_type(get_settings_type(), to); 
     799    } 
     800    void migrate_from(SettingsCore::settings_type from) { 
     801      migrate_type(from, get_settings_type()); 
     802    } 
     803    SettingsCore::settings_type get_settings_type() { 
     804      MutexLock mutex(mutexHandler_); 
     805      if (!mutex.hasMutex()) 
     806        throw SettingsException(_T("Failed to get mutext, cant get load settings")); 
     807      if (instance_ == NULL) 
     808        throw SettingsException(_T("No settings subsystem selected")); 
     809      return instance_->get_type(); 
     810    } 
     811    std::wstring get_settings_type_desc() { 
     812      return get_type_desc(get_settings_type()); 
     813    } 
     814    std::wstring get_type_desc(SettingsCore::settings_type type) { 
     815      if (type == SettingsCore::ini_file) 
     816        return _T(".INI file (nsc.ini)"); 
     817      if (type == SettingsCore::registry) 
     818        return _T("registry"); 
     819      if (type == SettingsCore::xml_file) 
     820        return _T(".XML file (nsc.xml)"); 
     821      return _T("Unknown settings type"); 
     822    } 
     823    bool has_type(SettingsCore::settings_type type) { 
     824      MutexLock mutex(mutexHandler_); 
     825      if (!mutex.hasMutex()) 
     826        throw SettingsException(_T("has_type Failed to get mutext, cant get access settings")); 
     827      instance_list::const_iterator cit = instances_.find(type); 
     828      return cit != instances_.end(); 
     829    } 
     830    void set_type(SettingsCore::settings_type type) { 
     831      MutexLock mutex(mutexHandler_); 
     832      if (!mutex.hasMutex()) 
     833        throw SettingsException(_T("set_type Failed to get mutext, cant get access settings")); 
     834      instance_list::const_iterator cit = instances_.find(type); 
     835      if (cit == instances_.end()) 
     836        throw SettingsException(_T("Settings was not supported: ") + get_type_desc(type)); 
     837      instance_ = (*cit).second; 
     838    } 
     839    void add_type_impl(SettingsCore::settings_type type, SettingsInterface* impl) { 
     840      MutexLock mutex(mutexHandler_); 
     841      if (!mutex.hasMutex()) 
     842        throw SettingsException(_T("add_type_impl Failed to get mutext, cant get access settings")); 
     843      instance_list::iterator it = instances_.find(type); 
     844      if (it == instances_.end()) { 
     845        instances_[type] = impl; 
    683846      } else { 
    684847        SettingsInterface* old = (*it).second; 
     
    696859    /// 
    697860    /// @author mickem 
     861    /* 
    698862    std::wstring map_path(std::wstring path) { 
    699863      MutexLock mutex(mutexHandler_); 
     
    705869      return (*cit).second; 
    706870    } 
     871    */ 
    707872 
    708873    ////////////////////////////////////////////////////////////////////////// 
     
    714879    /// 
    715880    /// @author mickem 
     881    /* 
    716882    key_path_type map_key(key_path_type key) { 
    717883      MutexLock mutex(mutexHandler_); 
     
    724890      return key; 
    725891    } 
     892    */ 
    726893    ////////////////////////////////////////////////////////////////////////// 
    727894    /// Find all mapped keys given a path 
     
    731898    /// 
    732899    /// @author mickem 
     900    /* 
    733901    mapped_key_list_type find_maped_keys(std::wstring path) { 
    734902      mapped_key_list_type ret; 
     
    743911      return ret; 
    744912    } 
     913    */ 
    745914 
    746915    ////////////////////////////////////////////////////////////////////////// 
     
    751920    /// 
    752921    /// @author mickem 
     922    /* 
    753923    virtual std::wstring reverse_map_path(std::wstring path) { 
    754924      MutexLock mutex(mutexHandler_); 
     
    780950      } 
    781951    } 
     952     
    782953 
    783954    ////////////////////////////////////////////////////////////////////////// 
     
    8751046        reversed_path_mappings_.erase(cit); 
    8761047    } 
     1048    */ 
    8771049 
    8781050 
     
    8981070      } 
    8991071    } 
    900   } 
    901   void writeSection(std::wstring section, sectionList data) { 
    902     if (settingsManager == NULL) 
    903       throw SettingsException(_T("No settings method specified, cannot start")); 
    904     if (settingsManager->getActiveTypeID() == INISettings::getType()) 
    905       settingsManager->setSection(section, data); 
    906     else  
    907       throw SettingsException(_T("Writing modules to non-INI file is not supported")); 
    908   } 
    909   void write(int type = -1) { 
    910     bool bNew = false; 
    911     settings_base *sM = settingsManager; 
    912     if (settingsManager == NULL) 
    913       throw SettingsException(_T("No settings method specified, cannot start")); 
    914     if ((type != -1)&&(type != settingsManager->getActiveTypeID())) { 
    915       if (type == REGSettings::getType()) { 
    916         sM = new REGSettings(); 
    917         bNew = true; 
    918       } else if (type == INISettings::getType()) { 
    919         sM = new INISettings(basepath_, file_); 
    920         bNew = true; 
     1072 
     1073    ////////////////////////////////////////////////////////////////////////// 
     1074    /// Register a key with the settings module. 
     1075    /// A registered key or path will be nicely documented in some of the settings files when converted. 
     1076    /// 
     1077    /// @param path The path to register 
     1078    /// @param key The key to register 
     1079    /// @param title The title to use 
     1080    /// @param description the description to use 
     1081    /// @param defValue the default value 
     1082    /// @param advanced advanced options will only be included if they are changed 
     1083    /// 
     1084    /// @author mickem 
     1085    void register_key(std::wstring path, std::wstring key, SettingsCore::key_type type, std::wstring title, std::wstring description, std::wstring defValue, bool advanced = false) { 
     1086      reg_paths_type::iterator it = registred_paths_.find(path); 
     1087      if (it == registred_paths_.end()) { 
     1088        registred_paths_[path] = path_description(); 
     1089        registred_paths_[path].keys[key] = key_description(title, description, type, defValue, advanced); 
    9211090      } else { 
    9221091        (*it).second.keys[key] = key_description(title, description, type, defValue, advanced); 
     
    16101779typedef Settings::SettingsException SettingsException; 
    16111780 
    1612 typedef Singleton<settings_core> Settings;    // Implement the settings manager as a singleton 
  • trunk/include/settings/settings_ini.hpp

    r138 r202  
    33#include <string> 
    44#include <map> 
    5 #include <Settings.h> 
     5#include <settings/Settings.h> 
    66#include <simpleini/SimpleIni.h> 
    77 
  • trunk/include/settings/settings_old.hpp

    r138 r202  
    33#include <string> 
    44#include <map> 
    5 #include <Settings.h> 
     5#include <settings/Settings.h> 
    66#include <simpleini/SimpleIni.h> 
     7 
     8#define MAIN_MODULES_SECTION_OLD _T("modules") 
     9#define MAIN_SECTION_TITLE _T("Settings") 
     10#define MAIN_STRING_LENGTH _T("string_length") 
    711 
    812namespace Settings { 
     
    1014    std::wstring filename_; 
    1115  public: 
    12     OLDSettings(Settings::SettingsCore *core, std::wstring context) :Settings::SettingsInterfaceImpl(core, context) {} 
     16    OLDSettings(Settings::SettingsCore *core, std::wstring context) :Settings::SettingsInterfaceImpl(core, context) { 
     17      add_mapping(MAIN_MODULES_SECTION, MAIN_MODULES_SECTION_OLD); 
     18      add_mapping(settings::settings_def::PAYLOAD_LEN_PATH, settings::settings_def::PAYLOAD_LEN, MAIN_SECTION_TITLE, MAIN_STRING_LENGTH); 
     19 
     20#define SETTINGS_MAP_KEY_A(name, section, key) \ 
     21  add_mapping(settings::name ## _PATH, settings::name, section, key); 
     22#define SETTINGS_MAP_SECTION_A(name, section) \ 
     23  add_mapping(settings::name ## _PATH, section); 
     24 
     25 
     26#define EXTSCRIPT_SECTION_TITLE _T("External Script") 
     27#define EXTSCRIPT_SETTINGS_ALLOW_ARGUMENTS _T("allow_arguments") 
     28#define EXTSCRIPT_SETTINGS_ALLOW_NASTY_META _T("allow_nasty_meta_chars") 
     29#define EXTSCRIPT_SETTINGS_TIMEOUT _T("command_timeout") 
     30#define EXTSCRIPT_SETTINGS_SCRIPTDIR _T("script_dir") 
     31#define EXTSCRIPT_SCRIPT_SECTION_TITLE _T("External Scripts") 
     32#define EXTSCRIPT_ALIAS_SECTION_TITLE _T("External Alias") 
     33 
     34      SETTINGS_MAP_KEY_A(external_scripts::TIMEOUT,   EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_TIMEOUT); 
     35      SETTINGS_MAP_KEY_A(external_scripts::SCRIPT_PATH, EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_SCRIPTDIR); 
     36      SETTINGS_MAP_KEY_A(external_scripts::ALLOW_ARGS,  EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_ALLOW_ARGUMENTS); 
     37      SETTINGS_MAP_KEY_A(external_scripts::ALLOW_NASTY, EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_ALLOW_NASTY_META); 
     38 
     39      SETTINGS_MAP_SECTION_A(external_scripts::SCRIPT_SECTION,EXTSCRIPT_SCRIPT_SECTION_TITLE); 
     40      SETTINGS_MAP_SECTION_A(external_scripts::ALIAS_SECTION,EXTSCRIPT_ALIAS_SECTION_TITLE); 
     41 
     42#define LOG_SECTION_TITLE _T("log") 
     43#define LOG_FILENAME _T("file")  
     44#define LOG_DATEMASK _T("date_mask") 
     45      NSC_DEBUG_MSG(_T("Using compatibility mode in: LOGGING module")); 
     46 
     47      SETTINGS_MAP_KEY_A(log::FILENAME, LOG_SECTION_TITLE, LOG_FILENAME); 
     48      SETTINGS_MAP_KEY_A(log::DATEMASK, LOG_SECTION_TITLE, LOG_DATEMASK); 
     49      SETTINGS_MAP_KEY_A(log::DEBUG_LOG,  LOG_SECTION_TITLE, _T("debug")); 
     50 
     51#define EVENTLOG_SECTION_TITLE _T("Eventlog") 
     52#define EVENTLOG_DEBUG _T("debug") 
     53#define EVENTLOG_SYNTAX _T("syntax") 
     54      SETTINGS_MAP_KEY_A(event_log::DEBUG_KEY,  EVENTLOG_SECTION_TITLE, EVENTLOG_DEBUG); 
     55      SETTINGS_MAP_KEY_A(event_log::SYNTAX,   EVENTLOG_SECTION_TITLE, EVENTLOG_SYNTAX); 
     56 
     57 
     58#define LUA_SCRIPT_SECTION_TITLE _T("LUA Scripts") 
     59      SETTINGS_MAP_SECTION_A(lua::SECTION,  LUA_SCRIPT_SECTION_TITLE); 
     60 
     61#define NRPE_SECTION_TITLE _T("NRPE") 
     62#define NRPE_SETTINGS_READ_TIMEOUT _T("socket_timeout") 
     63#define NRPE_SETTINGS_PORT _T("port") 
     64#define NRPE_SETTINGS_BINDADDR _T("bind_to_address") 
     65#define NRPE_SETTINGS_LISTENQUE _T("socket_back_log") 
     66#define NRPE_SETTINGS_USE_SSL _T("use_ssl") 
     67#define NRPE_SETTINGS_STRLEN _T("string_length") 
     68#define NRPE_SETTINGS_PERFDATA _T("performance_data") 
     69#define NRPE_HANDLER_SECTION_TITLE _T("NRPE Handlers") 
     70#define NRPE_SETTINGS_SCRIPTDIR _T("script_dir") 
     71#define NRPE_SETTINGS_TIMEOUT _T("command_timeout") 
     72#define NRPE_SETTINGS_ALLOW_ARGUMENTS _T("allow_arguments") 
     73#define NRPE_SETTINGS_ALLOW_NASTY_META _T("allow_nasty_meta_chars") 
     74 
     75      SETTINGS_MAP_KEY_A(nrpe::PORT,      NRPE_SECTION_TITLE, NRPE_SETTINGS_PORT); 
     76      SETTINGS_MAP_KEY_A(nrpe::BINDADDR,    NRPE_SECTION_TITLE, NRPE_SETTINGS_BINDADDR); 
     77      SETTINGS_MAP_KEY_A(nrpe::LISTENQUE,   NRPE_SECTION_TITLE, NRPE_SETTINGS_LISTENQUE); 
     78      SETTINGS_MAP_KEY_A(nrpe::READ_TIMEOUT,  NRPE_SECTION_TITLE, NRPE_SETTINGS_READ_TIMEOUT); 
     79      SETTINGS_MAP_KEY_A(nrpe::KEYUSE_SSL,  NRPE_SECTION_TITLE, NRPE_SETTINGS_USE_SSL); 
     80      SETTINGS_MAP_KEY_A(nrpe::PAYLOAD_LENGTH,NRPE_SECTION_TITLE, NRPE_SETTINGS_STRLEN); 
     81      SETTINGS_MAP_KEY_A(nrpe::ALLOW_PERFDATA,NRPE_SECTION_TITLE, NRPE_SETTINGS_PERFDATA); 
     82      SETTINGS_MAP_KEY_A(nrpe::SCRIPT_PATH, NRPE_SECTION_TITLE, NRPE_SETTINGS_SCRIPTDIR); 
     83      SETTINGS_MAP_KEY_A(nrpe::CMD_TIMEOUT, NRPE_SECTION_TITLE, NRPE_SETTINGS_TIMEOUT); 
     84      SETTINGS_MAP_KEY_A(nrpe::ALLOW_ARGS,  NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_ARGUMENTS); 
     85      SETTINGS_MAP_KEY_A(nrpe::ALLOW_NASTY, NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_NASTY_META); 
     86 
     87      SETTINGS_MAP_SECTION_A(nrpe::SECTION_HANDLERS,NRPE_HANDLER_SECTION_TITLE); 
     88 
     89 
     90#define NSCA_AGENT_SECTION_TITLE _T("NSCA Agent") 
     91#define NSCA_CMD_SECTION_TITLE _T("NSCA Commands") 
     92 
     93#define NSCA_INTERVAL _T("interval") 
     94#define NSCA_HOSTNAME _T("hostname") 
     95#define NSCA_SERVER _T("nsca_host") 
     96#define NSCA_PORT _T("nsca_port") 
     97#define NSCA_ENCRYPTION _T("encryption_method") 
     98#define NSCA_PASSWORD _T("password") 
     99#define NSCA_DEBUG_THREADS _T("debug_threads") 
     100#define NSCA_CACHE_HOST _T("cache_hostname") 
     101 
     102      SETTINGS_MAP_KEY_A(nsca::INTERVAL,    NSCA_AGENT_SECTION_TITLE, NSCA_INTERVAL); 
     103      SETTINGS_MAP_KEY_A(nsca::HOSTNAME,    NSCA_AGENT_SECTION_TITLE, NSCA_HOSTNAME); 
     104      SETTINGS_MAP_KEY_A(nsca::SERVER_HOST, NSCA_AGENT_SECTION_TITLE, NSCA_SERVER); 
     105      SETTINGS_MAP_KEY_A(nsca::SERVER_PORT, NSCA_AGENT_SECTION_TITLE, NSCA_PORT); 
     106      SETTINGS_MAP_KEY_A(nsca::ENCRYPTION,  NSCA_AGENT_SECTION_TITLE, NSCA_ENCRYPTION); 
     107      SETTINGS_MAP_KEY_A(nsca::PASSWORD,    NSCA_AGENT_SECTION_TITLE, NSCA_PASSWORD); 
     108      SETTINGS_MAP_KEY_A(nsca::THREADS,   NSCA_AGENT_SECTION_TITLE, NSCA_DEBUG_THREADS); 
     109      SETTINGS_MAP_KEY_A(nsca::CACHE_HOST,  NSCA_AGENT_SECTION_TITLE, NSCA_CACHE_HOST); 
     110 
     111      SETTINGS_MAP_SECTION_A(nsca::CMD_SECTION, NSCA_CMD_SECTION_TITLE); 
     112 
     113#define NSCLIENT_SECTION_TITLE _T("NSClient") 
     114#define NSCLIENT_SETTINGS_PORT _T("port") 
     115#define NSCLIENT_SETTINGS_VERSION _T("version") 
     116#define NSCLIENT_SETTINGS_BINDADDR _T("bind_to_address") 
     117#define NSCLIENT_SETTINGS_LISTENQUE _T("socket_back_log") 
     118#define NSCLIENT_SETTINGS_READ_TIMEOUT _T("socket_timeout") 
     119 
     120      SETTINGS_MAP_KEY_A(nsclient::PORT,      NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_PORT); 
     121      SETTINGS_MAP_KEY_A(nsclient::VERSION,   NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_VERSION); 
     122      SETTINGS_MAP_KEY_A(nsclient::BINDADDR,    NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_BINDADDR); 
     123      SETTINGS_MAP_KEY_A(nsclient::LISTENQUE,   NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_LISTENQUE); 
     124      SETTINGS_MAP_KEY_A(nsclient::READ_TIMEOUT,  NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_READ_TIMEOUT); 
     125 
     126    } 
     127    typedef std::map<std::wstring,std::wstring> path_map; 
     128    typedef std::map<SettingsCore::key_path_type,SettingsCore::key_path_type> key_map; 
     129    path_map sections_; 
     130    key_map keys_; 
     131    void add_mapping(std::wstring path_new, std::wstring path_old) { 
     132      sections_[path_new] = path_old; 
     133    } 
     134    void add_mapping(std::wstring path_new, std::wstring key_new, std::wstring path_old, std::wstring key_old) { 
     135      SettingsCore::key_path_type new_key(path_new, key_new); 
     136      SettingsCore::key_path_type old_key(path_old, key_old); 
     137      keys_[new_key] = old_key; 
     138    } 
     139    std::wstring map_path(std::wstring path_new) { 
     140      path_map::iterator it = sections_.find(path_new); 
     141      if (it == sections_.end()) 
     142        return path_new; 
     143      return (*it).second; 
     144    } 
     145    SettingsCore::key_path_type map_key(SettingsCore::key_path_type new_key) { 
     146      key_map::iterator it = keys_.find(new_key); 
     147      if (it == keys_.end()) 
     148        return new_key; 
     149      return (*it).second; 
     150    } 
    13151    ////////////////////////////////////////////////////////////////////////// 
    14152    /// Create a new settings interface of "this kind" 
     
    30168    /// @author mickem 
    31169    virtual std::wstring get_real_string(SettingsCore::key_path_type key) { 
    32       key = get_core()->map_key(key); 
     170      key = map_key(key); 
    33171      get_core()->get_logger()->quick_debug(key.first + _T("//") + key.second); 
    34172      return internal_get_value(key.first, key.second.c_str()); 
     
    97235      if (buffer == NULL) 
    98236        throw SettingsException(_T("has_key_int:: Failed to allocate memory for buffer!")); 
    99       std::wstring mapped = get_core()->map_path(path); 
     237      std::wstring mapped = map_path(path); 
    100238      unsigned int count = ::GetPrivateProfileSection(mapped.c_str(), buffer, BUFF_LEN, get_file_name().c_str()); 
    101239      if (count == bufferLength-2) { 
     
    146284    virtual void set_real_value(SettingsCore::key_path_type key, conainer value) { 
    147285      try { 
    148         key = get_core()->map_key(key); 
     286        key = map_key(key); 
    149287        get_core()->get_logger()->quick_debug(key.first + _T("//") + key.second + _T("//") + value.get_string()); 
    150288        WritePrivateProfileString(key.first.c_str(), key.second.c_str(), value.get_string().c_str(), get_file_name().c_str()); 
     
    166304    virtual void get_real_sections(std::wstring path, string_list &list) { 
    167305      get_core()->get_logger()->debug(__FILEW__, __LINE__, std::wstring(_T("Get sections for: ")) + path); 
    168       string_list lst = get_core()->get_mapped_sections(path); 
    169       list.insert(list.end(), lst.begin(), lst.end()); 
     306      //string_list lst = get_mapped_sections(path); 
     307      //list.insert(list.end(), lst.begin(), lst.end()); 
    170308      /* 
    171309      string_list src = int_read_sections(); 
     
    254392    /// @author mickem 
    255393    virtual void get_real_keys(std::wstring path, string_list &list) { 
     394      /* 
    256395      std::wstring mapped_path = get_core()->reverse_map_path(path); 
    257396      int_read_section(path, list); 
     
    261400          list.push_back((*cit).src.second); 
    262401      } 
     402      */ 
    263403    } 
    264404    virtual SettingsCore::key_type get_key_type(std::wstring path, std::wstring key) { 
     
    274414    } 
    275415    void int_read_section(std::wstring section, string_list &list, unsigned int bufferLength = BUFF_LEN) { 
    276       std::wstring mapped = get_core()->map_path(section); 
     416      // @TODO this is not correct! 
     417      std::wstring mapped = map_path(section); 
    277418      TCHAR* buffer = new TCHAR[bufferLength+1]; 
    278419      if (buffer == NULL) 
  • trunk/include/settings/settings_registry.hpp

    r201 r202  
    33#include <string> 
    44#include <windows.h> 
    5 #include <TSettings.h> 
     5#include <settings/Settings.h> 
    66#include <msvc_wrappers.h> 
    77#include <error.hpp> 
     
    292292    } 
    293293  } 
     294  /* 
    294295  void setSection(std::wstring section, sectionList data)  { 
    295296    std::wcout << _T("Unsupported function call") << std::endl; 
    296297  } 
     298  */ 
    297299}; 
    298300} 
  • trunk/modules/CheckDisk/CheckDisk.cpp

    r201 r202  
    8383  get_size() : size(0), error(false) { } 
    8484  result_type operator()(argument_type ffd) { 
    85     if (!is_directory(ffd.wfd.dwFileAttributes)) { 
     85    if (!file_helpers::checks::is_directory(ffd.wfd.dwFileAttributes)) { 
    8686      size += (ffd.wfd.nFileSizeHigh * ((unsigned long long)MAXDWORD+1)) + (unsigned long long)ffd.wfd.nFileSizeLow; 
    8787    } 
     
    112112  NSC_DEBUG_MSG_STD(_T("Input is: ") + dir + _T(" / ") + strEx::ihextos(fileAttr)); 
    113113 
    114   if (!is_directory(fileAttr)) { 
     114  if (!file_helpers::checks::is_directory(fileAttr)) { 
    115115    NSC_DEBUG_MSG_STD(_T("Found a file dont do recursive scan: ") + dir); 
    116116    // It is a file check it an return (dont check recursivly) 
     
    139139  if (hFind != INVALID_HANDLE_VALUE) { 
    140140    do { 
    141       if (is_directory(wfd.dwFileAttributes)) { 
     141      if (file_helpers::checks::is_directory(wfd.dwFileAttributes)) { 
    142142        if ( (wcscmp(wfd.cFileName, _T(".")) != 0) && (wcscmp(wfd.cFileName, _T("..")) != 0) ) 
    143143          recursive_scan<finder_function>(dir + _T("\\") + wfd.cFileName, pattern, current_level+1, max_level, f, errors); 
     
    475475  find_first_file_info() : error(false) {} 
    476476  result_type operator()(argument_type ffd) { 
    477     if (is_directory(ffd.wfd.dwFileAttributes)) 
     477    if (file_helpers::checks::is_directory(ffd.wfd.dwFileAttributes)) 
    478478      return true; 
    479479    BY_HANDLE_FILE_INFORMATION _info; 
     
    514514  file_filter_function() : hit_count(0), error(false), bFilterIn(true), bFilterAll(true) {} 
    515515  result_type operator()(argument_type ffd) { 
    516     if (is_directory(ffd.wfd.dwFileAttributes)) 
     516    if (file_helpers::checks::is_directory(ffd.wfd.dwFileAttributes)) 
    517517      return true; 
    518518    BY_HANDLE_FILE_INFORMATION _info; 
     
    587587  file_filter_function_ex() : hit_count(0), error(false), debug_(false), bFilterIn(true), bFilterAll(true) {} 
    588588  result_type operator()(argument_type ffd) { 
    589     if (is_directory(ffd.wfd.dwFileAttributes)) 
     589    if (file_helpers::checks::is_directory(ffd.wfd.dwFileAttributes)) 
    590590      return true; 
    591591    BY_HANDLE_FILE_INFORMATION _info; 
     
    646646  } 
    647647}; 
    648  
    649  
    650     if ((ffd.wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY)) 
    651       return true; 
    652     BY_HANDLE_FILE_INFORMATION _info; 
    653  
    654     HANDLE hFile = CreateFile((ffd.path + _T("\\") + ffd.wfd.cFileName).c_str(), GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, 
    655       0, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, 0); 
    656     if (hFile == INVALID_HANDLE_VALUE) { 
    657       setError(_T("Could not open file: ") + ffd.path + _T("\\") + ffd.wfd.cFileName + _T(": ") + error::lookup::last_error()); 
    658     } 
    659     GetFileInformationByHandle(hFile, &_info); 
    660     CloseHandle(hFile); 
    661     file_info info(_info, ffd.wfd.cFileName); 
    662     info.ullNow = now; 
    663  
    664     bool bMatch = !bFilterIn; 
    665     for (filterlist_type::const_iterator cit3 = filter_chain.begin(); cit3 != filter_chain.end(); ++cit3 ) { 
    666       bool bTmpMatched = (*cit3).second.matchFilter(info); 
    667       int mode = (*cit3).first; 
    668  
    669       if ((mode == filter_minus)&&(bTmpMatched)) { 
    670         // a -<filter> hit so thrash item and bail out! 
    671         //if (debug_) 
    672           NSC_DEBUG_MSG_STD(_T("Matched: - ") + (*cit3).second.getValue() + _T(" for: ") + info.render(syntax)); 
    673         bMatch = false; 
    674         break; 
    675       } else if ((mode == filter_plus)&&(!bTmpMatched)) { 
    676         // a +<filter> missed hit so thrash item and bail out! 
    677         //if (debug_) 
    678           NSC_DEBUG_MSG_STD(_T("Matched (missed): + ") + (*cit3).second.getValue() + _T(" for: ") + info.render(syntax)); 
    679         bMatch = false; 
    680         break; 
    681       } else if (bTmpMatched) { 
    682         if (debug_) 
    683           NSC_DEBUG_MSG_STD(_T("Matched: . (contiunue): ") + (*cit3).second.getValue() + _T(" for: ") + info.render(syntax)); 
    684         bMatch = true; 
    685       } 
    686     } 
    687  
    688     NSC_DEBUG_MSG_STD(_T("result: ") + strEx::itos(bFilterIn) + _T(" -- ") + strEx::itos(bMatch)); 
    689     if ((bFilterIn&&bMatch)||(!bFilterIn&&!bMatch)) { 
    690       strEx::append_list(message, info.render(syntax)); 
    691       if (alias.length() < 16) 
    692         strEx::append_list(alias, info.filename); 
    693       else 
    694         strEx::append_list(alias, std::wstring(_T("..."))); 
    695       hit_count++; 
    696     } 
    697     return true; 
    698   } 
    699   inline const bool hasError() const { 
    700     return error; 
    701   } 
    702   inline void setError(std::wstring) { 
    703     error = true; 
    704   } 
    705 }; 
    706  
    707648 
    708649NSCAPI::nagiosReturn CheckDisk::getFileAge(const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf) { 
     
    912853} 
    913854 
    914   bool bPerfData = true; 
    915  
    916   try { 
    917     MAP_OPTIONS_BEGIN(stl_args) 
    918       MAP_OPTIONS_NUMERIC_ALL(query, _T("")) 
    919       MAP_OPTIONS_STR2INT(_T("truncate"), truncate) 
    920       MAP_OPTIONS_BOOL_FALSE(IGNORE_PERFDATA, bPerfData) 
    921       MAP_OPTIONS_STR(_T("syntax"), syntax) 
    922       MAP_OPTIONS_PUSH(_T("path"), paths) 
    923       MAP_OPTIONS_STR(_T("alias"), alias) 
    924       MAP_OPTIONS_PUSH(_T("file"), paths) 
    925       MAP_OPTIONS_BOOL_EX(_T("filter"), finder.bFilterIn, _T("in"), _T("out")) 
    926       MAP_OPTIONS_BOOL_EX(_T("filter"), finder.bFilterAll, _T("all"), _T("any")) 
    927       /* 
    928       MAP_OPTIONS_PUSH_WTYPE(file_filter, _T("filter-size"), fileSize, finder.filter_chain) 
    929       MAP_OPTIONS_PUSH_WTYPE(file_filter, _T("filter-creation"), fileCreation, finder.filter_chain) 
    930       MAP_OPTIONS_PUSH_WTYPE(file_filter, _T("filter-written"), fileWritten, finder.filter_chain) 
    931       MAP_OPTIONS_PUSH_WTYPE(file_filter, _T("filter-accessed"), fileAccessed, finder.filter_chain) 
    932       */ 
    933  
    934       MAP_FILTER(_T("filter+size"), size, filter_plus) 
    935       MAP_FILTER(_T("filter+creation"), creation, filter_plus) 
    936       MAP_FILTER(_T("filter+written"), written, filter_plus) 
    937       MAP_FILTER(_T("filter+accessed"), accessed, filter_plus) 
    938  
    939       MAP_FILTER(_T("filter.size"), size, filter_normal) 
    940       MAP_FILTER(_T("filter.creation"), creation, filter_normal) 
    941       MAP_FILTER(_T("filter.written"), written, filter_normal) 
    942       MAP_FILTER(_T("filter.accessed"), accessed, filter_normal) 
    943  
    944       MAP_FILTER(_T("filter-size"), size, filter_minus) 
    945       MAP_FILTER(_T("filter-creation"), creation, filter_minus) 
    946       MAP_FILTER(_T("filter-written"), written, filter_minus) 
    947       MAP_FILTER(_T("filter-accessed"), accessed, filter_minus) 
    948  
    949       MAP_OPTIONS_MISSING(message, _T("Unknown argument: ")) 
    950       MAP_OPTIONS_END() 
    951   } catch (filters::parse_exception e) { 
    952     message = e.getMessage(); 
    953     return NSCAPI::returnUNKNOWN; 
    954   } catch (filters::filter_exception e) { 
    955     message = e.getMessage(); 
    956     return NSCAPI::returnUNKNOWN; 
    957     } 
    958     FILETIME now; 
    959     GetSystemTimeAsFileTime(&now); 
    960     finder.now = ((now.dwHighDateTime * ((unsigned long long)MAXDWORD+1)) + (unsigned long long)now.dwLowDateTime); 
    961     finder.syntax = syntax; 
    962     for (std::list<std::wstring>::const_iterator pit = paths.begin(); pit != paths.end(); ++pit) { 
    963       recursive_scan<file_filter_function_ex>((*pit), finder); 
    964       if (finder.hasError()) { 
    965         message = _T("Error when scanning: ") + (*pit); 
    966         return NSCAPI::returnUNKNOWN; 
    967       } 
    968     } 
    969     message = finder.message; 
    970     if (!alias.empty()) 
    971       query.alias = alias; 
    972     else 
    973       query.alias = finder.alias; 
    974     if (query.alias.empty()) 
    975       query.alias = _T("no files found"); 
    976     query.runCheck(finder.hit_count, returnCode, message, perf); 
    977     if ((truncate > 0) && (message.length() > (truncate-4))) 
    978       message = message.substr(0, truncate-4) + _T("..."); 
    979     if (message.empty()) 
    980       message = _T("CheckFile ok"); 
    981     return returnCode; 
    982 } 
    983  
    984855NSCAPI::nagiosReturn CheckDisk::handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &msg, std::wstring &perf) { 
    985856  if (command == _T("CheckFileSize")) { 
  • trunk/modules/CheckEventLog/CheckEventLog.cpp

    r201 r202  
    4747bool CheckEventLog::loadModule(NSCAPI::moduleLoadMode mode) { 
    4848  try { 
    49  
    50     if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    51       NSC_DEBUG_MSG(_T("Using compatiblity mode in: EventLog Checker")); 
    52 #define EVENTLOG_SECTION_TITLE _T("Eventlog") 
    53 #define EVENTLOG_DEBUG _T("debug") 
    54 #define EVENTLOG_SYNTAX _T("syntax") 
    55       SETTINGS_MAP_KEY_A(event_log::DEBUG_KEY,  EVENTLOG_SECTION_TITLE, EVENTLOG_DEBUG); 
    56       SETTINGS_MAP_KEY_A(event_log::SYNTAX,   EVENTLOG_SECTION_TITLE, EVENTLOG_SYNTAX); 
    57     } 
    5849    SETTINGS_REG_PATH(event_log::SECTION); 
    5950    SETTINGS_REG_KEY_B(event_log::DEBUG_KEY); 
     
    6455    lookup_names_ = SETTINGS_GET_BOOL(event_log::LOOKUP_NAMES); 
    6556    syntax_ = SETTINGS_GET_STRING(event_log::SYNTAX); 
    66     buffer_ = SETTINGS_GET_INT(event_log::BUFFER_SIZE); 
     57    buffer_length_ = SETTINGS_GET_INT(event_log::BUFFER_SIZE); 
    6758  } catch (NSCModuleHelper::NSCMHExcpetion &e) { 
    6859    NSC_LOG_ERROR_STD(_T("Failed to register command: ") + e.msg_); 
     
    642633        if (err == ERROR_INSUFFICIENT_BUFFER) { 
    643634          if (!buffer_error_reported) { 
    644             NSC_LOG_ERROR_STD(_T("EvenlogBuffer is too small change the value of ") + EVENTLOG_BUFFER + _T("=") + strEx::itos(dwNeeded+1) + _T(" under [EventLog] in nsc.ini : ") + error::lookup::last_error(err)); 
     635            NSC_LOG_ERROR_STD(_T("EvenlogBuffer is too small change the value of ") + settings::event_log::BUFFER_SIZE + _T("=") + strEx::itos(dwNeeded+1) + _T(" under [EventLog] in nsc.ini : ") + error::lookup::last_error(err)); 
    645636            buffer_error_reported = true; 
    646637          } 
     
    747738        pevlr = reinterpret_cast<EVENTLOGRECORD*>((LPBYTE)pevlr + pevlr->Length);  
    748739      }  
    749     } 
    750740    }  
    751741    DWORD err = GetLastError(); 
     
    783773    return NSCAPI::returnUNKNOWN; 
    784774  } 
    785   if (!bPerfData) 
    786     query.perfData = false; 
    787   if (query.alias.empty()) 
    788     query.alias = _T("eventlog"); 
    789   query.runCheck(hit_count, returnCode, message, perf); 
    790775  if ((truncate > 0) && (message.length() > (truncate-4))) 
    791776    message = message.substr(0, truncate-4) + _T("..."); 
  • trunk/modules/CheckExternalScripts/CheckExternalScripts-2005.vcproj

    r201 r202  
    2323  <Configurations> 
    2424    <Configuration 
    25       Name="Debug|Win32" 
    26       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    27       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    28       ConfigurationType="2" 
    29       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    30       CharacterSet="1" 
    31       > 
    32       <Tool 
    33         Name="VCPreBuildEventTool" 
    34       /> 
    35       <Tool 
    36         Name="VCCustomBuildTool" 
    37       /> 
    38       <Tool 
    39         Name="VCXMLDataGeneratorTool" 
    40       /> 
    41       <Tool 
    42         Name="VCWebServiceProxyGeneratorTool" 
    43       /> 
    44       <Tool 
    45         Name="VCMIDLTool" 
    46       /> 
    47       <Tool 
    48         Name="VCCLCompilerTool" 
    49         Optimization="0" 
    50         AdditionalIncludeDirectories="../include;../../include" 
    51         PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_STLP_USE_NEWALLOC;_STLP_DEBUG=1;_CRT_SECURE_NO_DEPRECATE" 
    52         MinimalRebuild="true" 
    53         BasicRuntimeChecks="3" 
    54         RuntimeLibrary="1" 
    55         UsePrecompiledHeader="2" 
    56         WarningLevel="3" 
    57         Detect64BitPortabilityProblems="false" 
    58         DebugInformationFormat="4" 
    59       /> 
    60       <Tool 
    61         Name="VCManagedResourceCompilerTool" 
    62       /> 
    63       <Tool 
    64         Name="VCResourceCompilerTool" 
    65       /> 
    66       <Tool 
    67         Name="VCPreLinkEventTool" 
    68       /> 
    69       <Tool 
    70         Name="VCLinkerTool" 
    71         OutputFile="$(OutDir)\$(ProjectName).dll" 
    72         LinkIncremental="2" 
    73         AdditionalLibraryDirectories="" 
    74         ModuleDefinitionFile="CheckExternalScripts.def" 
    75         GenerateDebugInformation="true" 
    76         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    77         SubSystem="2" 
    78         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    79         TargetMachine="1" 
    80       /> 
    81       <Tool 
    82         Name="VCALinkTool" 
    83       /> 
    84       <Tool 
    85         Name="VCManifestTool" 
    86       /> 
    87       <Tool 
    88         Name="VCXDCMakeTool" 
    89       /> 
    90       <Tool 
    91         Name="VCBscMakeTool" 
    92       /> 
    93       <Tool 
    94         Name="VCFxCopTool" 
    95       /> 
    96       <Tool 
    97         Name="VCAppVerifierTool" 
    98       /> 
    99       <Tool 
    100         Name="VCWebDeploymentTool" 
    101       /> 
    102       <Tool 
    103         Name="VCPostBuildEventTool" 
    104       /> 
    105     </Configuration> 
    106     <Configuration 
    107       Name="Debug|x64" 
    108       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    109       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    110       ConfigurationType="2" 
    111       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    112       CharacterSet="1" 
    113       > 
    114       <Tool 
    115         Name="VCPreBuildEventTool" 
    116       /> 
    117       <Tool 
    118         Name="VCCustomBuildTool" 
    119       /> 
    120       <Tool 
    121         Name="VCXMLDataGeneratorTool" 
    122       /> 
    123       <Tool 
    124         Name="VCWebServiceProxyGeneratorTool" 
    125       /> 
    126       <Tool 
    127         Name="VCMIDLTool" 
    128         TargetEnvironment="3" 
    129       /> 
    130       <Tool 
    131         Name="VCCLCompilerTool" 
    132         Optimization="0" 
    133         AdditionalIncludeDirectories="../include;../../include" 
    134         PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_STLP_USE_NEWALLOC;_STLP_DEBUG=1;_CRT_SECURE_NO_DEPRECATE" 
    135         MinimalRebuild="true" 
    136         BasicRuntimeChecks="3" 
    137         RuntimeLibrary="1" 
    138         UsePrecompiledHeader="2" 
    139         WarningLevel="3" 
    140         Detect64BitPortabilityProblems="false" 
    141         DebugInformationFormat="3" 
    142       /> 
    143       <Tool 
    144         Name="VCManagedResourceCompilerTool" 
    145       /> 
    146       <Tool 
    147         Name="VCResourceCompilerTool" 
    148       /> 
    149       <Tool 
    150         Name="VCPreLinkEventTool" 
    151       /> 
    152       <Tool 
    153         Name="VCLinkerTool" 
    154         OutputFile="$(OutDir)\$(ProjectName).dll" 
    155         LinkIncremental="2" 
    156         AdditionalLibraryDirectories="" 
    157         IgnoreDefaultLibraryNames="MSVCRT" 
    158         ModuleDefinitionFile="CheckExternalScripts.def" 
    159         GenerateDebugInformation="true" 
    160         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    161         SubSystem="2" 
    162         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    163         TargetMachine="17" 
    164       /> 
    165       <Tool 
    166         Name="VCALinkTool" 
    167       /> 
    168       <Tool 
    169         Name="VCManifestTool" 
    170       /> 
    171       <Tool 
    172         Name="VCXDCMakeTool" 
    173       /> 
    174       <Tool 
    175         Name="VCBscMakeTool" 
    176       /> 
    177       <Tool 
    178         Name="VCFxCopTool" 
    179       /> 
    180       <Tool 
    181         Name="VCAppVerifierTool" 
    182       /> 
    183       <Tool 
    184         Name="VCWebDeploymentTool" 
    185       /> 
    186       <Tool 
    187         Name="VCPostBuildEventTool" 
    188       /> 
    189     </Configuration> 
    190     <Configuration 
    19125      Name="Release|Win32" 
    19226      OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
     
    19832      <Tool 
    19933        Name="VCPreBuildEventTool" 
     34        ExcludedFromBuild="true" 
    20035      /> 
    20136      <Tool 
     
    21449        Name="VCCLCompilerTool" 
    21550        AdditionalIncludeDirectories="../include;../../include" 
    216         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS; _CRT_SECURE_NO_DEPRECATE" 
    217         RuntimeLibrary="0" 
    218         UsePrecompiledHeader="2" 
    219         WarningLevel="3" 
    220         Detect64BitPortabilityProblems="false" 
    221         DebugInformationFormat="3" 
    22251      /> 
    22352      <Tool 
     
    23261      <Tool 
    23362        Name="VCLinkerTool" 
    234         OutputFile="$(OutDir)\$(ProjectName).dll" 
    235         LinkIncremental="1" 
    236         AdditionalLibraryDirectories="" 
    237         ModuleDefinitionFile="CheckExternalScripts.def" 
    238         GenerateDebugInformation="false" 
    239         SubSystem="2" 
    240         OptimizeReferences="2" 
    241         EnableCOMDATFolding="2" 
    242         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    243         TargetMachine="1" 
     63        AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    24464      /> 
    24565      <Tool 
     
    290110      <Tool 
    291111        Name="VCMIDLTool" 
    292         TargetEnvironment="3" 
    293112      /> 
    294113      <Tool 
    295114        Name="VCCLCompilerTool" 
    296115        AdditionalIncludeDirectories="../include;../../include" 
    297         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS; _CRT_SECURE_NO_DEPRECATE" 
    298         RuntimeLibrary="0" 
    299         UsePrecompiledHeader="2" 
    300         WarningLevel="3" 
    301         Detect64BitPortabilityProblems="false" 
    302         DebugInformationFormat="3" 
    303       /> 
    304       <Tool 
    305         Name="VCManagedResourceCompilerTool" 
    306       /> 
    307       <Tool 
    308         Name="VCResourceCompilerTool" 
    309       /> 
    310       <Tool 
    311         Name="VCPreLinkEventTool" 
    312       /> 
    313       <Tool 
    314         Name="VCLinkerTool" 
    315         OutputFile="$(OutDir)\$(ProjectName).dll" 
    316         LinkIncremental="1" 
    317         AdditionalLibraryDirectories="" 
    318         ModuleDefinitionFile="CheckExternalScripts.def" 
    319         GenerateDebugInformation="false" 
    320         SubSystem="2" 
    321         OptimizeReferences="2" 
    322         EnableCOMDATFolding="2" 
    323         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    324         TargetMachine="17" 
    325       /> 
    326       <Tool 
    327         Name="VCALinkTool" 
    328       /> 
    329       <Tool 
    330         Name="VCManifestTool" 
    331       /> 
    332       <Tool 
    333         Name="VCXDCMakeTool" 
    334       /> 
    335       <Tool 
    336         Name="VCBscMakeTool" 
    337       /> 
    338       <Tool 
    339         Name="VCFxCopTool" 
    340       /> 
    341       <Tool 
    342         Name="VCAppVerifierTool" 
    343       /> 
    344       <Tool 
    345         Name="VCWebDeploymentTool" 
    346       /> 
    347       <Tool 
    348         Name="VCPostBuildEventTool" 
    349       /> 
    350     </Configuration> 
    351     <Configuration 
    352       Name="Distribution|Win32" 
    353       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    354       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    355       ConfigurationType="2" 
    356       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    357       CharacterSet="1" 
    358       > 
    359       <Tool 
    360         Name="VCPreBuildEventTool" 
    361       /> 
    362       <Tool 
    363         Name="VCCustomBuildTool" 
    364       /> 
    365       <Tool 
    366         Name="VCXMLDataGeneratorTool" 
    367       /> 
    368       <Tool 
    369         Name="VCWebServiceProxyGeneratorTool" 
    370       /> 
    371       <Tool 
    372         Name="VCMIDLTool" 
    373       /> 
    374       <Tool 
    375         Name="VCCLCompilerTool" 
    376         AdditionalIncludeDirectories="../include;../../include" 
    377         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    378         RuntimeLibrary="0" 
    379         UsePrecompiledHeader="2" 
    380         WarningLevel="3" 
    381         Detect64BitPortabilityProblems="false" 
    382         DebugInformationFormat="3" 
    383       /> 
    384       <Tool 
    385         Name="VCManagedResourceCompilerTool" 
    386       /> 
    387       <Tool 
    388         Name="VCResourceCompilerTool" 
    389       /> 
    390       <Tool 
    391         Name="VCPreLinkEventTool" 
    392       /> 
    393       <Tool 
    394         Name="VCLinkerTool" 
    395         OutputFile="$(OutDir)\$(ProjectName).dll" 
    396         LinkIncremental="1" 
    397         ModuleDefinitionFile="CheckExternalScripts.def" 
    398         GenerateDebugInformation="false" 
    399         SubSystem="2" 
    400         OptimizeReferences="2" 
    401         EnableCOMDATFolding="2" 
    402         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    403         TargetMachine="1" 
    404       /> 
    405       <Tool 
    406         Name="VCALinkTool" 
    407       /> 
    408       <Tool 
    409         Name="VCManifestTool" 
    410       /> 
    411       <Tool 
    412         Name="VCXDCMakeTool" 
    413       /> 
    414       <Tool 
    415         Name="VCBscMakeTool" 
    416       /> 
    417       <Tool 
    418         Name="VCFxCopTool" 
    419       /> 
    420       <Tool 
    421         Name="VCAppVerifierTool" 
    422       /> 
    423       <Tool 
    424         Name="VCWebDeploymentTool" 
    425       /> 
    426       <Tool 
    427         Name="VCPostBuildEventTool" 
    428       /> 
    429     </Configuration> 
    430     <Configuration 
    431       Name="Distribution|x64" 
    432       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    433       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    434       ConfigurationType="2" 
    435       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    436       CharacterSet="1" 
    437       > 
    438       <Tool 
    439         Name="VCPreBuildEventTool" 
    440       /> 
    441       <Tool 
    442         Name="VCCustomBuildTool" 
    443       /> 
    444       <Tool 
    445         Name="VCXMLDataGeneratorTool" 
    446       /> 
    447       <Tool 
    448         Name="VCWebServiceProxyGeneratorTool" 
    449       /> 
    450       <Tool 
    451         Name="VCMIDLTool" 
    452         TargetEnvironment="3" 
    453       /> 
    454       <Tool 
    455         Name="VCCLCompilerTool" 
    456         AdditionalIncludeDirectories="../include;../../include" 
    457         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    458         RuntimeLibrary="0" 
    459         UsePrecompiledHeader="2" 
    460         WarningLevel="3" 
    461         Detect64BitPortabilityProblems="false" 
    462         DebugInformationFormat="3" 
    463       /> 
    464       <Tool 
    465         Name="VCManagedResourceCompilerTool" 
    466       /> 
    467       <Tool 
    468         Name="VCResourceCompilerTool" 
    469       /> 
    470       <Tool 
    471         Name="VCPreLinkEventTool" 
    472       /> 
    473       <Tool 
    474         Name="VCLinkerTool" 
    475         OutputFile="$(OutDir)\$(ProjectName).dll" 
    476         LinkIncremental="1" 
    477         ModuleDefinitionFile="CheckExternalScripts.def" 
    478         GenerateDebugInformation="false" 
    479         SubSystem="2" 
    480         OptimizeReferences="2" 
    481         EnableCOMDATFolding="2" 
    482         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    483         TargetMachine="17" 
    484       /> 
    485       <Tool 
    486         Name="VCALinkTool" 
    487       /> 
    488       <Tool 
    489         Name="VCManifestTool" 
    490       /> 
    491       <Tool 
    492         Name="VCXDCMakeTool" 
    493       /> 
    494       <Tool 
    495         Name="VCBscMakeTool" 
    496       /> 
    497       <Tool 
    498         Name="VCFxCopTool" 
    499       /> 
    500       <Tool 
    501         Name="VCAppVerifierTool" 
    502       /> 
    503       <Tool 
    504         Name="VCWebDeploymentTool" 
    505       /> 
    506       <Tool 
    507         Name="VCPostBuildEventTool" 
    508       /> 
    509     </Configuration> 
    510     <Configuration 
    511       Name="Nightly|Win32" 
    512       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    513       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    514       ConfigurationType="2" 
    515       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    516       CharacterSet="1" 
    517       > 
    518       <Tool 
    519         Name="VCPreBuildEventTool" 
    520       /> 
    521       <Tool 
    522         Name="VCCustomBuildTool" 
    523       /> 
    524       <Tool 
    525         Name="VCXMLDataGeneratorTool" 
    526       /> 
    527       <Tool 
    528         Name="VCWebServiceProxyGeneratorTool" 
    529       /> 
    530       <Tool 
    531         Name="VCMIDLTool" 
    532       /> 
    533       <Tool 
    534         Name="VCCLCompilerTool" 
    535         AdditionalIncludeDirectories="../include;../../include" 
    536         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS" 
    537         UsePrecompiledHeader="2" 
    538         WarningLevel="3" 
    539         DebugInformationFormat="3" 
    540       /> 
    541       <Tool 
    542         Name="VCManagedResourceCompilerTool" 
    543       /> 
    544       <Tool 
    545         Name="VCResourceCompilerTool" 
    546       /> 
    547       <Tool 
    548         Name="VCPreLinkEventTool" 
    549       /> 
    550       <Tool 
    551         Name="VCLinkerTool" 
    552         OutputFile="$(OutDir)\$(ProjectName).dll" 
    553         OutputFile="$(OutDir)\$(ProjectName).dll" 
    554         LinkIncremental="1" 
    555         ModuleDefinitionFile="CheckExternalScripts.def" 
    556         GenerateDebugInformation="false" 
    557         SubSystem="2" 
    558         OptimizeReferences="2" 
    559         EnableCOMDATFolding="2" 
    560         TargetMachine="1" 
    561       /> 
    562       <Tool 
    563         Name="VCALinkTool" 
    564       /> 
    565       <Tool 
    566         Name="VCManifestTool" 
    567       /> 
    568       <Tool 
    569         Name="VCXDCMakeTool" 
    570       /> 
    571       <Tool 
    572         Name="VCBscMakeTool" 
    573       /> 
    574       <Tool 
    575         Name="VCFxCopTool" 
    576       /> 
    577       <Tool 
    578         Name="VCAppVerifierTool" 
    579       /> 
    580       <Tool 
    581         Name="VCWebDeploymentTool" 
    582       /> 
    583       <Tool 
    584         Name="VCPostBuildEventTool" 
    585       /> 
    586     </Configuration> 
    587     <Configuration 
    588       Name="Nightly|x64" 
    589       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    590       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    591       ConfigurationType="2" 
    592       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    593       CharacterSet="1" 
    594       > 
    595       <Tool 
    596         Name="VCPreBuildEventTool" 
    597       /> 
    598       <Tool 
    599         Name="VCCustomBuildTool" 
    600       /> 
    601       <Tool 
    602         Name="VCXMLDataGeneratorTool" 
    603       /> 
    604       <Tool 
    605         Name="VCWebServiceProxyGeneratorTool" 
    606       /> 
    607       <Tool 
    608         Name="VCMIDLTool" 
    609         TargetEnvironment="3" 
    610       /> 
    611       <Tool 
    612         Name="VCCLCompilerTool" 
    613         AdditionalIncludeDirectories="../include;../../include" 
    614         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    615         UsePrecompiledHeader="2" 
    616         WarningLevel="3" 
    617         DebugInformationFormat="3" 
    618       /> 
    619       <Tool 
    620         Name="VCManagedResourceCompilerTool" 
    621       /> 
    622       <Tool 
    623         Name="VCResourceCompilerTool" 
    624       /> 
    625       <Tool 
    626         Name="VCPreLinkEventTool" 
    627       /> 
    628       <Tool 
    629         Name="VCLinkerTool" 
    630         OutputFile="$(OutDir)\$(ProjectName).dll" 
    631         OutputFile="$(OutDir)\$(ProjectName).dll" 
    632         LinkIncremental="1" 
    633         ModuleDefinitionFile="CheckExternalScripts.def" 
    634         GenerateDebugInformation="false" 
    635         SubSystem="2" 
    636         OptimizeReferences="2" 
    637         EnableCOMDATFolding="2" 
    638         TargetMachine="17" 
    639       /> 
    640       <Tool 
    641         Name="VCALinkTool" 
    642       /> 
    643       <Tool 
    644         Name="VCManifestTool" 
    645       /> 
    646       <Tool 
    647         Name="VCXDCMakeTool" 
    648       /> 
    649       <Tool 
    650         Name="VCBscMakeTool" 
    651       /> 
    652       <Tool 
    653         Name="VCFxCopTool" 
    654       /> 
    655       <Tool 
    656         Name="VCAppVerifierTool" 
    657       /> 
    658       <Tool 
    659         Name="VCWebDeploymentTool" 
    660       /> 
    661       <Tool 
    662         Name="VCPostBuildEventTool" 
    663       /> 
    664     </Configuration> 
    665     <Configuration 
    666       Name="Debug-MemCheck|Win32" 
    667       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    668       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    669       ConfigurationType="2" 
    670       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    671       CharacterSet="1" 
    672       > 
    673       <Tool 
    674         Name="VCPreBuildEventTool" 
    675       /> 
    676       <Tool 
    677         Name="VCCustomBuildTool" 
    678       /> 
    679       <Tool 
    680         Name="VCXMLDataGeneratorTool" 
    681       /> 
    682       <Tool 
    683         Name="VCWebServiceProxyGeneratorTool" 
    684       /> 
    685       <Tool 
    686         Name="VCMIDLTool" 
    687       /> 
    688       <Tool 
    689         Name="VCCLCompilerTool" 
    690         Optimization="0" 
    691         AdditionalIncludeDirectories="../include;../../include" 
    692         PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;MEMCHECK" 
    693         MinimalRebuild="true" 
    694         BasicRuntimeChecks="3" 
    695         RuntimeLibrary="1" 
    696         UsePrecompiledHeader="2" 
    697         WarningLevel="3" 
    698         Detect64BitPortabilityProblems="false" 
    699         DebugInformationFormat="4" 
    700       /> 
    701       <Tool 
    702         Name="VCManagedResourceCompilerTool" 
    703       /> 
    704       <Tool 
    705         Name="VCResourceCompilerTool" 
    706       /> 
    707       <Tool 
    708         Name="VCPreLinkEventTool" 
    709       /> 
    710       <Tool 
    711         Name="VCLinkerTool" 
    712         OutputFile="$(OutDir)\$(ProjectName).dll" 
    713         LinkIncremental="2" 
    714         AdditionalLibraryDirectories="" 
    715         ModuleDefinitionFile="CheckExternalScripts.def" 
    716         GenerateDebugInformation="true" 
    717         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    718         SubSystem="2" 
    719         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    720         TargetMachine="1" 
    721       /> 
    722       <Tool 
    723         Name="VCALinkTool" 
    724       /> 
    725       <Tool 
    726         Name="VCManifestTool" 
    727       /> 
    728       <Tool 
    729         Name="VCXDCMakeTool" 
    730       /> 
    731       <Tool 
    732         Name="VCBscMakeTool" 
    733       /> 
    734       <Tool 
    735         Name="VCFxCopTool" 
    736       /> 
    737       <Tool 
    738         Name="VCAppVerifierTool" 
    739       /> 
    740       <Tool 
    741         Name="VCWebDeploymentTool" 
    742       /> 
    743       <Tool 
    744         Name="VCPostBuildEventTool" 
    745       /> 
    746     </Configuration> 
    747     <Configuration 
    748       Name="Debug-MemCheck|x64" 
    749       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)\modules" 
    750       IntermediateDirectory="$(SolutionDir)\tmp\$(PlatformName)\$(ConfigurationName)\$(ProjectName)" 
    751       ConfigurationType="2" 
    752       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    753       CharacterSet="1" 
    754       > 
    755       <Tool 
    756         Name="VCPreBuildEventTool" 
    757       /> 
    758       <Tool 
    759         Name="VCCustomBuildTool" 
    760       /> 
    761       <Tool 
    762         Name="VCXMLDataGeneratorTool" 
    763       /> 
    764       <Tool 
    765         Name="VCWebServiceProxyGeneratorTool" 
    766       /> 
    767       <Tool 
    768         Name="VCMIDLTool" 
    769         TargetEnvironment="3" 
    770       /> 
    771       <Tool 
    772         Name="VCCLCompilerTool" 
    773         Optimization="0" 
    774         AdditionalIncludeDirectories="../include;../../include" 
    775         PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_STLP_USE_NEWALLOC;_STLP_DEBUG=1;_CRT_SECURE_NO_DEPRECATE" 
    776         MinimalRebuild="true" 
    777         BasicRuntimeChecks="3" 
    778         RuntimeLibrary="1" 
    779         UsePrecompiledHeader="2" 
    780         WarningLevel="3" 
    781         Detect64BitPortabilityProblems="false" 
    782         DebugInformationFormat="3" 
    783       /> 
    784       <Tool 
    785         Name="VCManagedResourceCompilerTool" 
    786       /> 
    787       <Tool 
    788         Name="VCResourceCompilerTool" 
    789       /> 
    790       <Tool 
    791         Name="VCPreLinkEventTool" 
    792       /> 
    793       <Tool 
    794         Name="VCLinkerTool" 
    795         OutputFile="$(OutDir)\$(ProjectName).dll" 
    796         LinkIncremental="2" 
    797         AdditionalLibraryDirectories="" 
    798         IgnoreDefaultLibraryNames="MSVCRT" 
    799         ModuleDefinitionFile="CheckExternalScripts.def" 
    800         GenerateDebugInformation="true" 
    801         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    802         SubSystem="2" 
    803         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    804         TargetMachine="17" 
    805       /> 
    806       <Tool 
    807         Name="VCALinkTool" 
    808       /> 
    809       <Tool 
    810         Name="VCManifestTool" 
    811       /> 
    812       <Tool 
    813         Name="VCXDCMakeTool" 
    814       /> 
    815       <Tool 
    816         Name="VCBscMakeTool" 
    817       /> 
    818       <Tool 
    819         Name="VCFxCopTool" 
    820       /> 
    821       <Tool 
    822         Name="VCAppVerifierTool" 
    823       /> 
    824       <Tool 
    825         Name="VCWebDeploymentTool" 
    826       /> 
    827       <Tool 
    828         Name="VCPostBuildEventTool" 
    829       /> 
    830     </Configuration> 
    831     <Configuration 
    832       Name="OP5|Win32" 
    833       OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
    834       IntermediateDirectory="$(ConfigurationName)" 
    835       ConfigurationType="2" 
    836       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    837       CharacterSet="1" 
    838       > 
    839       <Tool 
    840         Name="VCPreBuildEventTool" 
    841       /> 
    842       <Tool 
    843         Name="VCCustomBuildTool" 
    844       /> 
    845       <Tool 
    846         Name="VCXMLDataGeneratorTool" 
    847       /> 
    848       <Tool 
    849         Name="VCWebServiceProxyGeneratorTool" 
    850       /> 
    851       <Tool 
    852         Name="VCMIDLTool" 
    853       /> 
    854       <Tool 
    855         Name="VCCLCompilerTool" 
    856         AdditionalIncludeDirectories="../include;../../include" 
    857         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS" 
    858         UsePrecompiledHeader="2" 
    859         WarningLevel="3" 
    860         DebugInformationFormat="3" 
    861       /> 
    862       <Tool 
    863         Name="VCManagedResourceCompilerTool" 
    864       /> 
    865       <Tool 
    866         Name="VCResourceCompilerTool" 
    867       /> 
    868       <Tool 
    869         Name="VCPreLinkEventTool" 
    870       /> 
    871       <Tool 
    872         Name="VCLinkerTool" 
    873         OutputFile="$(OutDir)\$(ProjectName).dll" 
    874         LinkIncremental="1" 
    875         ModuleDefinitionFile="CheckExternalScripts.def" 
    876         GenerateDebugInformation="false" 
    877         SubSystem="2" 
    878         OptimizeReferences="2" 
    879         EnableCOMDATFolding="2" 
    880         TargetMachine="1" 
    881       /> 
    882       <Tool 
    883         Name="VCALinkTool" 
    884       /> 
    885       <Tool 
    886         Name="VCManifestTool" 
    887       /> 
    888       <Tool 
    889         Name="VCXDCMakeTool" 
    890       /> 
    891       <Tool 
    892         Name="VCBscMakeTool" 
    893       /> 
    894       <Tool 
    895         Name="VCFxCopTool" 
    896       /> 
    897       <Tool 
    898         Name="VCAppVerifierTool" 
    899       /> 
    900       <Tool 
    901         Name="VCWebDeploymentTool" 
    902       /> 
    903       <Tool 
    904         Name="VCPostBuildEventTool" 
    905       /> 
    906     </Configuration> 
    907     <Configuration 
    908       Name="OP5|x64" 
    909       OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" 
    910       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    911       ConfigurationType="2" 
    912       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    913       CharacterSet="1" 
    914       > 
    915       <Tool 
    916         Name="VCPreBuildEventTool" 
    917       /> 
    918       <Tool 
    919         Name="VCCustomBuildTool" 
    920       /> 
    921       <Tool 
    922         Name="VCXMLDataGeneratorTool" 
    923       /> 
    924       <Tool 
    925         Name="VCWebServiceProxyGeneratorTool" 
    926       /> 
    927       <Tool 
    928         Name="VCMIDLTool" 
    929         TargetEnvironment="3" 
    930       /> 
    931       <Tool 
    932         Name="VCCLCompilerTool" 
    933         AdditionalIncludeDirectories="../include;../../include" 
    934         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    935         UsePrecompiledHeader="2" 
    936         WarningLevel="3" 
    937         DebugInformationFormat="3" 
    938       /> 
    939       <Tool 
    940         Name="VCManagedResourceCompilerTool" 
    941       /> 
    942       <Tool 
    943         Name="VCResourceCompilerTool" 
    944       /> 
    945       <Tool 
    946         Name="VCPreLinkEventTool" 
    947       /> 
    948       <Tool 
    949         Name="VCLinkerTool" 
    950         OutputFile="$(OutDir)\$(ProjectName).dll" 
    951         LinkIncremental="1" 
    952         ModuleDefinitionFile="CheckExternalScripts.def" 
    953         GenerateDebugInformation="false" 
    954         SubSystem="2" 
    955         OptimizeReferences="2" 
    956         EnableCOMDATFolding="2" 
    957         TargetMachine="17" 
    958       /> 
    959       <Tool 
    960         Name="VCALinkTool" 
    961       /> 
    962       <Tool 
    963         Name="VCManifestTool" 
    964       /> 
    965       <Tool 
    966         Name="VCXDCMakeTool" 
    967       /> 
    968       <Tool 
    969         Name="VCBscMakeTool" 
    970       /> 
    971       <Tool 
    972         Name="VCFxCopTool" 
    973       /> 
    974       <Tool 
    975         Name="VCAppVerifierTool" 
    976       /> 
    977       <Tool 
    978         Name="VCWebDeploymentTool" 
    979       /> 
    980       <Tool 
    981         Name="VCPostBuildEventTool" 
    982       /> 
    983     </Configuration> 
    984     <Configuration 
    985       Name="Debug|Itanium" 
    986       OutputDirectory="$(PlatformName)\$(ConfigurationName)" 
    987       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    988       ConfigurationType="2" 
    989       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    990       CharacterSet="2" 
    991       > 
    992       <Tool 
    993         Name="VCPreBuildEventTool" 
    994       /> 
    995       <Tool 
    996         Name="VCCustomBuildTool" 
    997       /> 
    998       <Tool 
    999         Name="VCXMLDataGeneratorTool" 
    1000       /> 
    1001       <Tool 
    1002         Name="VCWebServiceProxyGeneratorTool" 
    1003       /> 
    1004       <Tool 
    1005         Name="VCMIDLTool" 
    1006         TargetEnvironment="2" 
    1007       /> 
    1008       <Tool 
    1009         Name="VCCLCompilerTool" 
    1010         Optimization="0" 
    1011         AdditionalIncludeDirectories="../include;../../include" 
    1012         PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_STLP_USE_NEWALLOC;_STLP_DEBUG=1;_CRT_SECURE_NO_DEPRECATE" 
    1013         MinimalRebuild="true" 
    1014         BasicRuntimeChecks="3" 
    1015         RuntimeLibrary="1" 
    1016         UsePrecompiledHeader="2" 
    1017         WarningLevel="3" 
    1018         Detect64BitPortabilityProblems="false" 
    1019         DebugInformationFormat="3" 
    1020116      /> 
    1021117      <Tool 
     
    1031127        Name="VCLinkerTool" 
    1032128        AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    1033         OutputFile="../../Debug/modules/$(ProjectName).dll" 
    1034         LinkIncremental="2" 
    1035         AdditionalLibraryDirectories="" 
    1036         IgnoreDefaultLibraryNames="MSVCRT" 
    1037         ModuleDefinitionFile="CheckExternalScripts.def" 
    1038         GenerateDebugInformation="true" 
    1039         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    1040         SubSystem="2" 
    1041         RandomizedBaseAddress="1" 
    1042         DataExecutionPrevention="0" 
    1043         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    1044         TargetMachine="5" 
    1045129      /> 
    1046130      <Tool 
     
    1063147      /> 
    1064148      <Tool 
    1065         Name="VCPostBuildEventTool" 
    1066       /> 
    1067     </Configuration> 
    1068     <Configuration 
    1069       Name="Release|Itanium" 
    1070       OutputDirectory="$(PlatformName)\$(ConfigurationName)" 
    1071       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    1072       ConfigurationType="2" 
    1073       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    1074       CharacterSet="2" 
    1075       > 
    1076       <Tool 
    1077         Name="VCPreBuildEventTool" 
    1078       /> 
    1079       <Tool 
    1080         Name="VCCustomBuildTool" 
    1081       /> 
    1082       <Tool 
    1083         Name="VCXMLDataGeneratorTool" 
    1084       /> 
    1085       <Tool 
    1086         Name="VCWebServiceProxyGeneratorTool" 
    1087       /> 
    1088       <Tool 
    1089         Name="VCMIDLTool" 
    1090         TargetEnvironment="2" 
    1091       /> 
    1092       <Tool 
    1093         Name="VCCLCompilerTool" 
    1094         AdditionalIncludeDirectories="../include;../../include" 
    1095         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS; _CRT_SECURE_NO_DEPRECATE" 
    1096         RuntimeLibrary="0" 
    1097         UsePrecompiledHeader="2" 
    1098         WarningLevel="3" 
    1099         Detect64BitPortabilityProblems="false" 
    1100         DebugInformationFormat="3" 
    1101       /> 
    1102       <Tool 
    1103         Name="VCManagedResourceCompilerTool" 
    1104       /> 
    1105       <Tool 
    1106         Name="VCResourceCompilerTool" 
    1107       /> 
    1108       <Tool 
    1109         Name="VCPreLinkEventTool" 
    1110       /> 
    1111       <Tool 
    1112         Name="VCLinkerTool" 
    1113         AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    1114         OutputFile="../../Release/modules/$(ProjectName).dll" 
    1115         LinkIncremental="1" 
    1116         AdditionalLibraryDirectories="" 
    1117         ModuleDefinitionFile="CheckExternalScripts.def" 
    1118         GenerateDebugInformation="false" 
    1119         SubSystem="2" 
    1120         OptimizeReferences="2" 
    1121         EnableCOMDATFolding="2" 
    1122         RandomizedBaseAddress="1" 
    1123         DataExecutionPrevention="0" 
    1124         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    1125         TargetMachine="5" 
    1126       /> 
    1127       <Tool 
    1128         Name="VCALinkTool" 
    1129       /> 
    1130       <Tool 
    1131         Name="VCManifestTool" 
    1132       /> 
    1133       <Tool 
    1134         Name="VCXDCMakeTool" 
    1135       /> 
    1136       <Tool 
    1137         Name="VCBscMakeTool" 
    1138       /> 
    1139       <Tool 
    1140         Name="VCFxCopTool" 
    1141       /> 
    1142       <Tool 
    1143         Name="VCAppVerifierTool" 
    1144       /> 
    1145       <Tool 
    1146         Name="VCPostBuildEventTool" 
    1147       /> 
    1148     </Configuration> 
    1149     <Configuration 
    1150       Name="Distribution|Itanium" 
    1151       OutputDirectory="$(PlatformName)\$(ConfigurationName)" 
    1152       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    1153       ConfigurationType="2" 
    1154       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    1155       CharacterSet="2" 
    1156       > 
    1157       <Tool 
    1158         Name="VCPreBuildEventTool" 
    1159       /> 
    1160       <Tool 
    1161         Name="VCCustomBuildTool" 
    1162       /> 
    1163       <Tool 
    1164         Name="VCXMLDataGeneratorTool" 
    1165       /> 
    1166       <Tool 
    1167         Name="VCWebServiceProxyGeneratorTool" 
    1168       /> 
    1169       <Tool 
    1170         Name="VCMIDLTool" 
    1171         TargetEnvironment="2" 
    1172       /> 
    1173       <Tool 
    1174         Name="VCCLCompilerTool" 
    1175         AdditionalIncludeDirectories="../include;../../include" 
    1176         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    1177         RuntimeLibrary="0" 
    1178         UsePrecompiledHeader="2" 
    1179         WarningLevel="3" 
    1180         Detect64BitPortabilityProblems="false" 
    1181         DebugInformationFormat="3" 
    1182       /> 
    1183       <Tool 
    1184         Name="VCManagedResourceCompilerTool" 
    1185       /> 
    1186       <Tool 
    1187         Name="VCResourceCompilerTool" 
    1188       /> 
    1189       <Tool 
    1190         Name="VCPreLinkEventTool" 
    1191       /> 
    1192       <Tool 
    1193         Name="VCLinkerTool" 
    1194         AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    1195         OutputFile="../../Dist/modules/$(ProjectName).dll" 
    1196         LinkIncremental="1" 
    1197         ModuleDefinitionFile="CheckExternalScripts.def" 
    1198         GenerateDebugInformation="false" 
    1199         SubSystem="2" 
    1200         OptimizeReferences="2" 
    1201         EnableCOMDATFolding="2" 
    1202         RandomizedBaseAddress="1" 
    1203         DataExecutionPrevention="0" 
    1204         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    1205         TargetMachine="5" 
    1206       /> 
    1207       <Tool 
    1208         Name="VCALinkTool" 
    1209       /> 
    1210       <Tool 
    1211         Name="VCManifestTool" 
    1212       /> 
    1213       <Tool 
    1214         Name="VCXDCMakeTool" 
    1215       /> 
    1216       <Tool 
    1217         Name="VCBscMakeTool" 
    1218       /> 
    1219       <Tool 
    1220         Name="VCFxCopTool" 
    1221       /> 
    1222       <Tool 
    1223         Name="VCAppVerifierTool" 
    1224       /> 
    1225       <Tool 
    1226         Name="VCPostBuildEventTool" 
    1227       /> 
    1228     </Configuration> 
    1229     <Configuration 
    1230       Name="Nightly|Itanium" 
    1231       OutputDirectory="$(PlatformName)\$(ConfigurationName)" 
    1232       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    1233       ConfigurationType="2" 
    1234       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    1235       CharacterSet="2" 
    1236       > 
    1237       <Tool 
    1238         Name="VCPreBuildEventTool" 
    1239       /> 
    1240       <Tool 
    1241         Name="VCCustomBuildTool" 
    1242       /> 
    1243       <Tool 
    1244         Name="VCXMLDataGeneratorTool" 
    1245       /> 
    1246       <Tool 
    1247         Name="VCWebServiceProxyGeneratorTool" 
    1248       /> 
    1249       <Tool 
    1250         Name="VCMIDLTool" 
    1251         TargetEnvironment="2" 
    1252       /> 
    1253       <Tool 
    1254         Name="VCCLCompilerTool" 
    1255         AdditionalIncludeDirectories="../include;../../include" 
    1256         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    1257         RuntimeLibrary="2" 
    1258         UsePrecompiledHeader="2" 
    1259         WarningLevel="3" 
    1260         Detect64BitPortabilityProblems="false" 
    1261         DebugInformationFormat="3" 
    1262       /> 
    1263       <Tool 
    1264         Name="VCManagedResourceCompilerTool" 
    1265       /> 
    1266       <Tool 
    1267         Name="VCResourceCompilerTool" 
    1268       /> 
    1269       <Tool 
    1270         Name="VCPreLinkEventTool" 
    1271       /> 
    1272       <Tool 
    1273         Name="VCLinkerTool" 
    1274         AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    1275         OutputFile="../../Dist/modules/$(ProjectName).dll" 
    1276         LinkIncremental="1" 
    1277         ModuleDefinitionFile="CheckExternalScripts.def" 
    1278         GenerateDebugInformation="true" 
    1279         SubSystem="2" 
    1280         OptimizeReferences="2" 
    1281         EnableCOMDATFolding="2" 
    1282         RandomizedBaseAddress="1" 
    1283         DataExecutionPrevention="0" 
    1284         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    1285         TargetMachine="5" 
    1286       /> 
    1287       <Tool 
    1288         Name="VCALinkTool" 
    1289       /> 
    1290       <Tool 
    1291         Name="VCManifestTool" 
    1292       /> 
    1293       <Tool 
    1294         Name="VCXDCMakeTool" 
    1295       /> 
    1296       <Tool 
    1297         Name="VCBscMakeTool" 
    1298       /> 
    1299       <Tool 
    1300         Name="VCFxCopTool" 
    1301       /> 
    1302       <Tool 
    1303         Name="VCAppVerifierTool" 
    1304       /> 
    1305       <Tool 
    1306         Name="VCPostBuildEventTool" 
    1307       /> 
    1308     </Configuration> 
    1309     <Configuration 
    1310       Name="Debug-MemCheck|Itanium" 
    1311       OutputDirectory="$(PlatformName)\$(ConfigurationName)" 
    1312       IntermediateDirectory="$(PlatformName)\$(ConfigurationName)" 
    1313       ConfigurationType="2" 
    1314       InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    1315       CharacterSet="2" 
    1316       > 
    1317       <Tool 
    1318         Name="VCPreBuildEventTool" 
    1319       /> 
    1320       <Tool 
    1321         Name="VCCustomBuildTool" 
    1322       /> 
    1323       <Tool 
    1324         Name="VCXMLDataGeneratorTool" 
    1325       /> 
    1326       <Tool 
    1327         Name="VCWebServiceProxyGeneratorTool" 
    1328       /> 
    1329       <Tool 
    1330         Name="VCMIDLTool" 
    1331         TargetEnvironment="2" 
    1332       /> 
    1333       <Tool 
    1334         Name="VCCLCompilerTool" 
    1335         Optimization="0" 
    1336         AdditionalIncludeDirectories="../include;../../include" 
    1337         PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_STLP_USE_NEWALLOC;_STLP_DEBUG=1;_CRT_SECURE_NO_DEPRECATE" 
    1338         MinimalRebuild="true" 
    1339         BasicRuntimeChecks="3" 
    1340         RuntimeLibrary="1" 
    1341         UsePrecompiledHeader="2" 
    1342         WarningLevel="3" 
    1343         Detect64BitPortabilityProblems="false" 
    1344         DebugInformationFormat="3" 
    1345       /> 
    1346       <Tool 
    1347         Name="VCManagedResourceCompilerTool" 
    1348       /> 
    1349       <Tool 
    1350         Name="VCResourceCompilerTool" 
    1351       /> 
    1352       <Tool 
    1353         Name="VCPreLinkEventTool" 
    1354       /> 
    1355       <Tool 
    1356         Name="VCLinkerTool" 
    1357         AdditionalDependencies="ws2_32.lib ssleay32.lib libeay32.lib" 
    1358         OutputFile="../../Debug/modules/$(ProjectName).dll" 
    1359         LinkIncremental="2" 
    1360         AdditionalLibraryDirectories="" 
    1361         IgnoreDefaultLibraryNames="MSVCRT" 
    1362         ModuleDefinitionFile="CheckExternalScripts.def" 
    1363         GenerateDebugInformation="true" 
    1364         ProgramDatabaseFile="$(OutDir)/CheckExternalScripts.pdb" 
    1365         SubSystem="2" 
    1366         RandomizedBaseAddress="1" 
    1367         DataExecutionPrevention="0" 
    1368         ImportLibrary="$(OutDir)/CheckExternalScripts.lib" 
    1369         TargetMachine="5" 
    1370       /> 
    1371       <Tool 
    1372         Name="VCALinkTool" 
    1373       /> 
    1374       <Tool 
    1375         Name="VCManifestTool" 
    1376       /> 
    1377       <Tool 
    1378         Name="VCXDCMakeTool" 
    1379       /> 
    1380       <Tool 
    1381         Name="VCBscMakeTool" 
    1382       /> 
    1383       <Tool 
    1384         Name="VCFxCopTool" 
    1385       /> 
    1386       <Tool 
    1387         Name="VCAppVerifierTool" 
     149        Name="VCWebDeploymentTool" 
    1388150      /> 
    1389151      <Tool 
     
    1404166        > 
    1405167        <FileConfiguration 
     168          Name="Release|Win32" 
     169          > 
     170          <Tool 
     171            Name="VCCLCompilerTool" 
     172            UsePrecompiledHeader="0" 
     173            PrecompiledHeaderThrough="" 
     174          /> 
     175        </FileConfiguration> 
     176        <FileConfiguration 
     177          Name="Release|x64" 
     178          > 
     179          <Tool 
     180            Name="VCCLCompilerTool" 
     181            UsePrecompiledHeader="0" 
     182            PrecompiledHeaderThrough="" 
     183          /> 
     184        </FileConfiguration> 
     185        <FileConfiguration 
    1406186          Name="Debug|Win32" 
    1407187          > 
     
    1422202        </FileConfiguration> 
    1423203        <FileConfiguration 
     204          Name="Distribution|Win32" 
     205          > 
     206          <Tool 
     207            Name="VCCLCompilerTool" 
     208            UsePrecompiledHeader="0" 
     209            PrecompiledHeaderThrough="" 
     210          /> 
     211        </FileConfiguration> 
     212        <FileConfiguration 
     213          Name="Distribution|x64" 
     214          > 
     215          <Tool 
     216            Name="VCCLCompilerTool" 
     217            UsePrecompiledHeader="0" 
     218            PrecompiledHeaderThrough="" 
     219          /> 
     220        </FileConfiguration> 
     221        <FileConfiguration 
     222          Name="Nightly|Win32" 
     223          > 
     224          <Tool 
     225            Name="VCCLCompilerTool" 
     226            UsePrecompiledHeader="0" 
     227            PrecompiledHeaderThrough="" 
     228          /> 
     229        </FileConfiguration> 
     230        <FileConfiguration 
     231          Name="Nightly|x64" 
     232          > 
     233          <Tool 
     234            Name="VCCLCompilerTool" 
     235            UsePrecompiledHeader="0" 
     236            PrecompiledHeaderThrough="" 
     237          /> 
     238        </FileConfiguration> 
     239        <FileConfiguration 
     240          Name="Debug-MemCheck|Win32" 
     241          > 
     242          <Tool 
     243            Name="VCCLCompilerTool" 
     244            UsePrecompiledHeader="0" 
     245            PrecompiledHeaderThrough="" 
     246          /> 
     247        </FileConfiguration> 
     248        <FileConfiguration 
     249          Name="Debug-MemCheck|x64" 
     250          > 
     251          <Tool 
     252            Name="VCCLCompilerTool" 
     253            UsePrecompiledHeader="0" 
     254            PrecompiledHeaderThrough="" 
     255          /> 
     256        </FileConfiguration> 
     257        <FileConfiguration 
     258          Name="Debug|Itanium" 
     259          > 
     260          <Tool 
     261            Name="VCCLCompilerTool" 
     262            UsePrecompiledHeader="0" 
     263            PrecompiledHeaderThrough="" 
     264          /> 
     265        </FileConfiguration> 
     266        <FileConfiguration 
     267          Name="Release|Itanium" 
     268          > 
     269          <Tool 
     270            Name="VCCLCompilerTool" 
     271            UsePrecompiledHeader="0" 
     272            PrecompiledHeaderThrough="" 
     273          /> 
     274        </FileConfiguration> 
     275        <FileConfiguration 
     276          Name="Distribution|Itanium" 
     277          > 
     278          <Tool 
     279            Name="VCCLCompilerTool" 
     280            UsePrecompiledHeader="0" 
     281            PrecompiledHeaderThrough="" 
     282          /> 
     283        </FileConfiguration> 
     284        <FileConfiguration 
     285          Name="Nightly|Itanium" 
     286          > 
     287          <Tool 
     288            Name="VCCLCompilerTool" 
     289            UsePrecompiledHeader="0" 
     290            PrecompiledHeaderThrough="" 
     291          /> 
     292        </FileConfiguration> 
     293        <FileConfiguration 
     294          Name="Debug-MemCheck|Itanium" 
     295          > 
     296          <Tool 
     297            Name="VCCLCompilerTool" 
     298            UsePrecompiledHeader="0" 
     299            PrecompiledHeaderThrough="" 
     300          /> 
     301        </FileConfiguration> 
     302      </File> 
     303      <File 
     304        RelativePath=".\CheckExternalScripts.cpp" 
     305        > 
     306      </File> 
     307      <File 
     308        RelativePath=".\CheckExternalScripts.def" 
     309        > 
     310      </File> 
     311      <File 
     312        RelativePath="..\..\include\NSCHelper.cpp" 
     313        > 
     314        <FileConfiguration 
    1424315          Name="Release|Win32" 
    1425316          > 
     
    1440331        </FileConfiguration> 
    1441332        <FileConfiguration 
     333          Name="Debug|Win32" 
     334          > 
     335          <Tool 
     336            Name="VCCLCompilerTool" 
     337            UsePrecompiledHeader="0" 
     338            PrecompiledHeaderThrough="" 
     339          /> 
     340        </FileConfiguration> 
     341        <FileConfiguration 
     342          Name="Debug|x64" 
     343          > 
     344          <Tool 
     345            Name="VCCLCompilerTool" 
     346            UsePrecompiledHeader="0" 
     347            PrecompiledHeaderThrough="" 
     348          /> 
     349        </FileConfiguration> 
     350        <FileConfiguration 
    1442351          Name="Distribution|Win32" 
    1443352          > 
     
    1494403        </FileConfiguration> 
    1495404        <FileConfiguration 
    1496           Name="OP5|Win32" 
    1497           > 
    1498           <Tool 
    1499             Name="VCCLCompilerTool" 
    1500             UsePrecompiledHeader="0" 
    1501             PrecompiledHeaderThrough="" 
    1502           /> 
    1503         </FileConfiguration> 
    1504         <FileConfiguration 
    1505           Name="OP5|x64" 
    1506           > 
    1507           <Tool 
    1508             Name="VCCLCompilerTool" 
    1509             UsePrecompiledHeader="0" 
    1510             PrecompiledHeaderThrough="" 
    1511           /> 
    1512         </FileConfiguration> 
    1513         <FileConfiguration 
    1514405          Name="Debug|Itanium" 
    1515406          > 
     
    1558449      </File> 
    1559450      <File 
    1560         RelativePath=".\CheckExternalScripts.cpp" 
    1561         > 
    1562       </File> 
    1563       <File 
    1564         RelativePath=".\CheckExternalScripts.def" 
    1565         > 
    1566       </File> 
    1567       <File 
    1568         RelativePath="..\..\include\NSCHelper.cpp" 
    1569         > 
     451        RelativePath=".\stdafx.cpp" 
     452        > 
     453        <FileConfiguration 
     454          Name="Release|Win32" 
     455          > 
     456          <Tool 
     457            Name="VCCLCompilerTool" 
     458            UsePrecompiledHeader="1" 
     459          /> 
     460        </FileConfiguration> 
     461        <FileConfiguration 
     462          Name="Release|x64" 
     463          > 
     464          <Tool 
     465            Name="VCCLCompilerTool" 
     466            UsePrecompiledHeader="1" 
     467          /> 
     468        </FileConfiguration> 
    1570469        <FileConfiguration 
    1571470          Name="Debug|Win32" 
     
    1573472          <Tool 
    1574473            Name="VCCLCompilerTool" 
    1575             UsePrecompiledHeader="0" 
    1576             PrecompiledHeaderThrough="" 
     474            UsePrecompiledHeader="1" 
    1577475          /> 
    1578476        </FileConfiguration> 
     
    1582480          <Tool 
    1583481            Name="VCCLCompilerTool" 
    1584             UsePrecompiledHeader="0" 
    1585             PrecompiledHeaderThrough="" 
    1586           /> 
    1587         </FileConfiguration> 
     482            UsePrecompiledHeader="1" 
     483          /> 
     484        </FileConfiguration> 
     485        <FileConfiguration 
     486          Name="Distribution|Win32" 
     487          > 
     488          <Tool 
     489            Name="VCCLCompilerTool" 
     490            UsePrecompiledHeader="1" 
     491          /> 
     492        </FileConfiguration> 
     493        <FileConfiguration 
     494          Name="Distribution|x64" 
     495          > 
     496          <Tool 
     497            Name="VCCLCompilerTool" 
     498            UsePrecompiledHeader="1" 
     499          /> 
     500        </FileConfiguration> 
     501        <FileConfiguration 
     502          Name="Nightly|Win32" 
     503          > 
     504          <Tool 
     505            Name="VCCLCompilerTool" 
     506            UsePrecompiledHeader="1" 
     507          /> 
     508        </FileConfiguration> 
     509        <FileConfiguration 
     510          Name="Nightly|x64" 
     511          > 
     512          <Tool 
     513            Name="VCCLCompilerTool" 
     514            UsePrecompiledHeader="1" 
     515          /> 
     516        </FileConfiguration> 
     517        <FileConfiguration 
     518          Name="Debug-MemCheck|Win32" 
     519          > 
     520          <Tool 
     521            Name="VCCLCompilerTool" 
     522            UsePrecompiledHeader="1" 
     523          /> 
     524        </FileConfiguration> 
     525        <FileConfiguration 
     526          Name="Debug-MemCheck|x64" 
     527          > 
     528          <Tool 
     529            Name="VCCLCompilerTool" 
     530            UsePrecompiledHeader="1" 
     531          /> 
     532        </FileConfiguration> 
     533        <FileConfiguration 
     534          Name="Debug|Itanium" 
     535          > 
     536          <Tool 
     537            Name="VCCLCompilerTool" 
     538            UsePrecompiledHeader="1" 
     539          /> 
     540        </FileConfiguration> 
     541        <FileConfiguration 
     542          Name="Release|Itanium" 
     543          > 
     544          <Tool 
     545            Name="VCCLCompilerTool" 
     546            UsePrecompiledHeader="1" 
     547          /> 
     548        </FileConfiguration> 
     549        <FileConfiguration 
     550          Name="Distribution|Itanium" 
     551          > 
     552          <Tool 
     553            Name="VCCLCompilerTool" 
     554            UsePrecompiledHeader="1" 
     555          /> 
     556        </FileConfiguration> 
     557        <FileConfiguration 
     558          Name="Nightly|Itanium" 
     559          > 
     560          <Tool 
     561            Name="VCCLCompilerTool" 
     562            UsePrecompiledHeader="1" 
     563          /> 
     564        </FileConfiguration> 
     565        <FileConfiguration 
     566          Name="Debug-MemCheck|Itanium" 
     567          > 
     568          <Tool 
     569            Name="VCCLCompilerTool" 
     570            UsePrecompiledHeader="1" 
     571          /> 
     572        </FileConfiguration> 
     573      </File> 
     574      <File 
     575        RelativePath="..\..\include\utils.cpp" 
     576        > 
    1588577        <FileConfiguration 
    1589578          Name="Release|Win32" 
     
    1605594        </FileConfiguration> 
    1606595        <FileConfiguration 
     596          Name="Debug|Win32" 
     597          > 
     598          <Tool 
     599            Name="VCCLCompilerTool" 
     600            UsePrecompiledHeader="0" 
     601            PrecompiledHeaderThrough="" 
     602          /> 
     603        </FileConfiguration> 
     604        <FileConfiguration 
     605          Name="Debug|x64" 
     606          > 
     607          <Tool 
     608            Name="VCCLCompilerTool" 
     609            UsePrecompiledHeader="0" 
     610            PrecompiledHeaderThrough="" 
     611          /> 
     612        </FileConfiguration> 
     613        <FileConfiguration 
    1607614          Name="Distribution|Win32" 
    1608615          > 
     
    1651658        <FileConfiguration 
    1652659          Name="Debug-MemCheck|x64" 
    1653           > 
    1654           <Tool 
    1655             Name="VCCLCompilerTool" 
    1656             UsePrecompiledHeader="0" 
    1657             PrecompiledHeaderThrough="" 
    1658           /> 
    1659         </FileConfiguration> 
    1660         <FileConfiguration 
    1661           Name="OP5|Win32" 
    1662           > 
    1663           <Tool 
    1664             Name="VCCLCompilerTool" 
    1665             UsePrecompiledHeader="0" 
    1666             PrecompiledHeaderThrough="" 
    1667           /> 
    1668         </FileConfiguration> 
    1669         <FileConfiguration 
    1670           Name="OP5|x64" 
    1671           > 
    1672           <Tool 
    1673             Name="VCCLCompilerTool" 
    1674             UsePrecompiledHeader="0" 
    1675             PrecompiledHeaderThrough="" 
    1676           /> 
    1677         </FileConfiguration> 
    1678         <FileConfiguration 
    1679           Name="Debug|Itanium" 
    1680           > 
    1681           <Tool 
    1682             Name="VCCLCompilerTool" 
    1683             UsePrecompiledHeader="0" 
    1684             PrecompiledHeaderThrough="" 
    1685           /> 
    1686         </FileConfiguration> 
    1687         <FileConfiguration 
    1688           Name="Release|Itanium" 
    1689           > 
    1690           <Tool 
    1691             Name="VCCLCompilerTool" 
    1692             UsePrecompiledHeader="0" 
    1693             PrecompiledHeaderThrough="" 
    1694           /> 
    1695         </FileConfiguration> 
    1696         <FileConfiguration 
    1697           Name="Distribution|Itanium" 
    1698           > 
    1699           <Tool 
    1700             Name="VCCLCompilerTool" 
    1701             UsePrecompiledHeader="0" 
    1702             PrecompiledHeaderThrough="" 
    1703           /> 
    1704         </FileConfiguration> 
    1705         <FileConfiguration 
    1706           Name="Nightly|Itanium" 
    1707           > 
    1708           <Tool 
    1709             Name="VCCLCompilerTool" 
    1710             UsePrecompiledHeader="0" 
    1711             PrecompiledHeaderThrough="" 
    1712           /> 
    1713         </FileConfiguration> 
    1714         <FileConfiguration 
    1715           Name="Debug-MemCheck|Itanium" 
    1716           > 
    1717           <Tool 
    1718             Name="VCCLCompilerTool" 
    1719             UsePrecompiledHeader="0" 
    1720             PrecompiledHeaderThrough="" 
    1721           /> 
    1722         </FileConfiguration> 
    1723       </File> 
    1724       <File 
    1725         RelativePath=".\stdafx.cpp" 
    1726         > 
    1727         <FileConfiguration 
    1728           Name="Debug|Win32" 
    1729           > 
    1730           <Tool 
    1731             Name="VCCLCompilerTool" 
    1732             UsePrecompiledHeader="1" 
    1733           /> 
    1734         </FileConfiguration> 
    1735         <FileConfiguration 
    1736           Name="Debug|x64" 
    1737           > 
    1738           <Tool 
    1739             Name="VCCLCompilerTool" 
    1740             UsePrecompiledHeader="1" 
    1741           /> 
    1742         </FileConfiguration> 
    1743         <FileConfiguration 
    1744           Name="Release|Win32" 
    1745           > 
    1746           <Tool 
    1747             Name="VCCLCompilerTool" 
    1748             UsePrecompiledHeader="1" 
    1749           /> 
    1750         </FileConfiguration> 
    1751         <FileConfiguration 
    1752           Name="Release|x64" 
    1753           > 
    1754           <Tool 
    1755             Name="VCCLCompilerTool" 
    1756             UsePrecompiledHeader="1" 
    1757           /> 
    1758         </FileConfiguration> 
    1759         <FileConfiguration 
    1760           Name="Distribution|Win32" 
    1761           > 
    1762           <Tool 
    1763             Name="VCCLCompilerTool" 
    1764             UsePrecompiledHeader="1" 
    1765           /> 
    1766         </FileConfiguration> 
    1767         <FileConfiguration 
    1768           Name="Distribution|x64" 
    1769           > 
    1770           <Tool 
    1771             Name="VCCLCompilerTool" 
    1772             UsePrecompiledHeader="1" 
    1773           /> 
    1774         </FileConfiguration> 
    1775         <FileConfiguration 
    1776           Name="Nightly|Win32" 
    1777           > 
    1778           <Tool 
    1779             Name="VCCLCompilerTool" 
    1780             UsePrecompiledHeader="1" 
    1781           /> 
    1782         </FileConfiguration> 
    1783         <FileConfiguration 
    1784           Name="Nightly|x64" 
    1785           > 
    1786           <Tool 
    1787             Name="VCCLCompilerTool" 
    1788             UsePrecompiledHeader="1" 
    1789           /> 
    1790         </FileConfiguration> 
    1791         <FileConfiguration 
    1792           Name="Debug-MemCheck|Win32" 
    1793           > 
    1794           <Tool 
    1795             Name="VCCLCompilerTool" 
    1796             UsePrecompiledHeader="1" 
    1797           /> 
    1798         </FileConfiguration> 
    1799         <FileConfiguration 
    1800           Name="Debug-MemCheck|x64" 
    1801           > 
    1802           <Tool 
    1803             Name="VCCLCompilerTool" 
    1804             UsePrecompiledHeader="1" 
    1805           /> 
    1806         </FileConfiguration> 
    1807         <FileConfiguration 
    1808           Name="OP5|Win32" 
    1809           > 
    1810           <Tool 
    1811             Name="VCCLCompilerTool" 
    1812             UsePrecompiledHeader="1" 
    1813           /> 
    1814         </FileConfiguration> 
    1815         <FileConfiguration 
    1816           Name="OP5|x64" 
    1817           > 
    1818           <Tool 
    1819             Name="VCCLCompilerTool" 
    1820             UsePrecompiledHeader="1" 
    1821           /> 
    1822         </FileConfiguration> 
    1823         <FileConfiguration 
    1824           Name="Debug|Itanium" 
    1825           > 
    1826           <Tool 
    1827             Name="VCCLCompilerTool" 
    1828             UsePrecompiledHeader="1" 
    1829           /> 
    1830         </FileConfiguration> 
    1831         <FileConfiguration 
    1832           Name="Release|Itanium" 
    1833           > 
    1834           <Tool 
    1835             Name="VCCLCompilerTool" 
    1836             UsePrecompiledHeader="1" 
    1837           /> 
    1838         </FileConfiguration> 
    1839         <FileConfiguration 
    1840           Name="Distribution|Itanium" 
    1841           > 
    1842           <Tool 
    1843             Name="VCCLCompilerTool" 
    1844             UsePrecompiledHeader="1" 
    1845           /> 
    1846         </FileConfiguration> 
    1847         <FileConfiguration 
    1848           Name="Nightly|Itanium" 
    1849           > 
    1850           <Tool 
    1851             Name="VCCLCompilerTool" 
    1852             UsePrecompiledHeader="1" 
    1853           /> 
    1854         </FileConfiguration> 
    1855         <FileConfiguration 
    1856           Name="Debug-MemCheck|Itanium" 
    1857           > 
    1858           <Tool 
    1859             Name="VCCLCompilerTool" 
    1860             UsePrecompiledHeader="1" 
    1861           /> 
    1862         </FileConfiguration> 
    1863       </File> 
    1864       <File 
    1865         RelativePath="..\..\include\utils.cpp" 
    1866         > 
    1867         <FileConfiguration 
    1868           Name="Debug|Win32" 
    1869           > 
    1870           <Tool 
    1871             Name="VCCLCompilerTool" 
    1872             UsePrecompiledHeader="0" 
    1873             PrecompiledHeaderThrough="" 
    1874           /> 
    1875         </FileConfiguration> 
    1876         <FileConfiguration 
    1877           Name="Debug|x64" 
    1878           > 
    1879           <Tool 
    1880             Name="VCCLCompilerTool" 
    1881             UsePrecompiledHeader="0" 
    1882             PrecompiledHeaderThrough="" 
    1883           /> 
    1884         </FileConfiguration> 
    1885         <FileConfiguration 
    1886           Name="Release|Win32" 
    1887           > 
    1888           <Tool 
    1889             Name="VCCLCompilerTool" 
    1890             UsePrecompiledHeader="0" 
    1891             PrecompiledHeaderThrough="" 
    1892           /> 
    1893         </FileConfiguration> 
    1894         <FileConfiguration 
    1895           Name="Release|x64" 
    1896           > 
    1897           <Tool 
    1898             Name="VCCLCompilerTool" 
    1899             UsePrecompiledHeader="0" 
    1900             PrecompiledHeaderThrough="" 
    1901           /> 
    1902         </FileConfiguration> 
    1903         <FileConfiguration 
    1904           Name="Distribution|Win32" 
    1905           > 
    1906           <Tool 
    1907             Name="VCCLCompilerTool" 
    1908             UsePrecompiledHeader="0" 
    1909             PrecompiledHeaderThrough="" 
    1910           /> 
    1911         </FileConfiguration> 
    1912         <FileConfiguration 
    1913           Name="Distribution|x64" 
    1914           > 
    1915           <Tool 
    1916             Name="VCCLCompilerTool" 
    1917             UsePrecompiledHeader="0" 
    1918             PrecompiledHeaderThrough="" 
    1919           /> 
    1920         </FileConfiguration> 
    1921         <FileConfiguration 
    1922           Name="Nightly|Win32" 
    1923           > 
    1924           <Tool 
    1925             Name="VCCLCompilerTool" 
    1926             UsePrecompiledHeader="0" 
    1927             PrecompiledHeaderThrough="" 
    1928           /> 
    1929         </FileConfiguration> 
    1930         <FileConfiguration 
    1931           Name="Nightly|x64" 
    1932           > 
    1933           <Tool 
    1934             Name="VCCLCompilerTool" 
    1935             UsePrecompiledHeader="0" 
    1936             PrecompiledHeaderThrough="" 
    1937           /> 
    1938         </FileConfiguration> 
    1939         <FileConfiguration 
    1940           Name="Debug-MemCheck|Win32" 
    1941           > 
    1942           <Tool 
    1943             Name="VCCLCompilerTool" 
    1944             UsePrecompiledHeader="0" 
    1945             PrecompiledHeaderThrough="" 
    1946           /> 
    1947         </FileConfiguration> 
    1948         <FileConfiguration 
    1949           Name="Debug-MemCheck|x64" 
    1950           > 
    1951           <Tool 
    1952             Name="VCCLCompilerTool" 
    1953             UsePrecompiledHeader="0" 
    1954             PrecompiledHeaderThrough="" 
    1955           /> 
    1956         </FileConfiguration> 
    1957         <FileConfiguration 
    1958           Name="OP5|Win32" 
    1959           > 
    1960           <Tool 
    1961             Name="VCCLCompilerTool" 
    1962             UsePrecompiledHeader="0" 
    1963             PrecompiledHeaderThrough="" 
    1964           /> 
    1965         </FileConfiguration> 
    1966         <FileConfiguration 
    1967           Name="OP5|x64" 
    1968660          > 
    1969661          <Tool 
  • trunk/modules/CheckExternalScripts/CheckExternalScripts.cpp

    r201 r202  
    6767 
    6868bool CheckExternalScripts::loadModule(NSCAPI::moduleLoadMode mode) { 
    69  
    70  
    71   if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    72     NSC_DEBUG_MSG(_T("Using compatiblity mode in: External Scripts")); 
    73  
    74 #define EXTSCRIPT_SECTION_TITLE _T("External Script") 
    75 #define EXTSCRIPT_SETTINGS_ALLOW_ARGUMENTS _T("allow_arguments") 
    76 #define EXTSCRIPT_SETTINGS_ALLOW_NASTY_META _T("allow_nasty_meta_chars") 
    77 #define EXTSCRIPT_SETTINGS_TIMEOUT _T("command_timeout") 
    78 #define EXTSCRIPT_SETTINGS_SCRIPTDIR _T("script_dir") 
    79 #define EXTSCRIPT_SCRIPT_SECTION_TITLE _T("External Scripts") 
    80 #define EXTSCRIPT_ALIAS_SECTION_TITLE _T("External Alias") 
    81  
    82     SETTINGS_MAP_KEY_A(external_scripts::TIMEOUT,   EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_TIMEOUT); 
    83     SETTINGS_MAP_KEY_A(external_scripts::SCRIPT_PATH, EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_SCRIPTDIR); 
    84     SETTINGS_MAP_KEY_A(external_scripts::ALLOW_ARGS,  EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_ALLOW_ARGUMENTS); 
    85     SETTINGS_MAP_KEY_A(external_scripts::ALLOW_NASTY, EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_ALLOW_NASTY_META); 
    86  
    87     SETTINGS_MAP_SECTION_A(external_scripts::SCRIPT_SECTION,EXTSCRIPT_SCRIPT_SECTION_TITLE); 
    88     SETTINGS_MAP_SECTION_A(external_scripts::ALIAS_SECTION,EXTSCRIPT_ALIAS_SECTION_TITLE); 
    89   } 
    9069  SETTINGS_REG_PATH(external_scripts::SECTION); 
    9170  SETTINGS_REG_PATH(external_scripts::SCRIPT_SECTION); 
     
    164143 
    165144    for (;cit2!=arr.end();cit2++,i++) { 
    166       if ((!isAlias) && (NSCModuleHelper::getSettingsInt(EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_ALLOW_NASTY_META, EXTSCRIPT_SETTINGS_ALLOW_NASTY_META_DEFAULT) == 0)) { 
     145      if (isAlias || allowNasty_) { 
    167146        if ((*cit2).find_first_of(NASTY_METACHARS) != std::wstring::npos) { 
    168147          NSC_LOG_ERROR(_T("Request string contained illegal metachars!")); 
  • trunk/modules/CheckSystem/CheckSystem.cpp

    r201 r202  
    6464 * @return true 
    6565 */ 
    66 bool CheckSystem::loadModule() { 
    67   pdhThread.createThread(); 
    68   std::wstring wantedMethod = NSCModuleHelper::getSettingsString(C_SYSTEM_SECTION_TITLE, C_SYSTEM_ENUMPROC_METHOD, C_SYSTEM_ENUMPROC_METHOD_DEFAULT); 
    69   CEnumProcess tmp; 
    70   int method = tmp.GetAvailableMethods(); 
    71   if (wantedMethod == C_SYSTEM_ENUMPROC_METHOD_AUTO) { 
    72     OSVERSIONINFO osVer = systemInfo::getOSVersion(); 
    73     /* 
    74     if (systemInfo::isBelowNT4(osVer)) { 
    75       NSC_DEBUG_MSG_STD(_T("Autodetected NT4<, using PSAPI process enumeration.")); 
    76       if (method == (method|ENUM_METHOD::PSAPI)) { 
    77         processMethod_ = ENUM_METHOD::PSAPI; 
    78       } else { 
    79         NSC_LOG_ERROR_STD(_T("PSAPI method not available, since you are on NT4 you need to install \"Platform SDK Redistributable: PSAPI for Windows NT\" from Microsoft.")); 
    80         NSC_LOG_ERROR_STD(_T("Try this URL: http://www.microsoft.com/downloads/details.aspx?FamilyID=3d1fbaed-d122-45cf-9d46-1cae384097ac")); 
    81       } 
    82     } else if (systemInfo::isAboveW2K(osVer)) { 
    83       NSC_DEBUG_MSG_STD(_T("Autodetected W2K>, using TOOLHELP process enumeration.")); 
    84       if (method == (method|ENUM_METHOD::TOOLHELP)) { 
    85         processMethod_ = ENUM_METHOD::TOOLHELP; 
    86       } else { 
    87         NSC_LOG_ERROR_STD(_T("TOOLHELP was not available, since you are on > W2K you need top manually override the ") C_SYSTEM_ENUMPROC_METHOD _T("option in NSC:ini.")); 
    88       } 
    89     } else { 
    90     */ 
    91       NSC_DEBUG_MSG_STD(_T("Autodetected failed, using PSAPI process enumeration.")); 
    92       processMethod_ = ENUM_METHOD::PSAPI; 
    93       if (method == (method|ENUM_METHOD::PSAPI)) { 
    94         processMethod_ = ENUM_METHOD::PSAPI; 
    95       } else { 
    96         NSC_LOG_ERROR_STD(_T("PSAPI method not availabletry installing \"Platform SDK Redistributable: PSAPI for Windows NT\" from Microsoft.")); 
    97         NSC_LOG_ERROR_STD(_T("Try this URL: http://www.microsoft.com/downloads/details.aspx?FamilyID=3d1fbaed-d122-45cf-9d46-1cae384097ac")); 
    98       } 
    99     //} 
    100   } else if (wantedMethod == C_SYSTEM_ENUMPROC_METHOD_PSAPI) { 
    101     NSC_DEBUG_MSG_STD(_T("Using PSAPI method.")); 
    102     if (method == (method|ENUM_METHOD::PSAPI)) { 
    103       processMethod_ = ENUM_METHOD::PSAPI; 
    104     } else { 
    105       NSC_LOG_ERROR_STD(_T("PSAPI method not available, check ") C_SYSTEM_ENUMPROC_METHOD _T(" option.")); 
    106     } 
    107   } else { 
    108     NSC_LOG_ERROR_STD(_T("TOOLHELP method has been removed sine we dont really want to support w9x ") C_SYSTEM_ENUMPROC_METHOD _T(".")); 
    109   } 
    110 bool CheckSystem::loadModule() { 
    111   pdhThread.createThread(); 
     66 
    11267bool CheckSystem::loadModule(NSCAPI::moduleLoadMode mode) { 
    11368  if (mode == NSCAPI::normalStart) { 
    11469    pdhThread.createThread(); 
    115   } 
    116   std::wstring wantedMethod = SETTINGS_GET_STRING(check_system::PROC_ENUM); 
    117   if (wantedMethod == settings::check_system::PROC_ENUM_TH) { 
    118     NSC_LOG_ERROR_STD(_T("TOOLHELP method has been removed sine we dont really want to support w9x.")); 
    119   } else { 
    120     CEnumProcess tmp; 
    121     int method = tmp.GetAvailableMethods(); 
    122     NSC_DEBUG_MSG_STD(_T("Autodetected failed, using PSAPI process enumeration.")); 
    123     if (method == (method|ENUM_METHOD::PSAPI)) { 
    124       processMethod_ = ENUM_METHOD::PSAPI; 
    125     } else { 
    126       NSC_LOG_ERROR_STD(_T("PSAPI method not available. Try installing \"Platform SDK Redistributable: PSAPI for Windows NT\" from Microsoft.")); 
    127       NSC_LOG_ERROR_STD(_T("Try this URL: http://www.microsoft.com/downloads/details.aspx?FamilyID=3d1fbaed-d122-45cf-9d46-1cae384097ac")); 
    128     } 
    12970  } 
    13071  try { 
     
    13677    NSCModuleHelper::registerCommand(_T("checkCounter"), _T("Check a PDH counter.")); 
    13778    NSCModuleHelper::registerCommand(_T("listCounterInstances"), _T("List all instances for a counter.")); 
    138      
    13979  } catch (NSCModuleHelper::NSCMHExcpetion &e) { 
    14080    NSC_LOG_ERROR_STD(_T("Failed to register command: ") + e.msg_); 
  • trunk/modules/CheckSystem/PDHCollector.cpp

    r201 r202  
    2020#include "stdafx.h" 
    2121#include "PDHCollector.h" 
    22 #include <Settings.h> 
    2322#include <sysinfo.h> 
    2423 
     
    109108      memCb = _T("\\") + pdh.lookupIndex(4) + _T("\\") + pdh.lookupIndex(26); 
    110109    } else { 
    111       settings_core settings; 
     110      //settings_core settings; 
    112111      NSC_LOG_ERROR_STD(_T("REPORT THIS: counters.defs file handling has not been (re)added!!!")); 
    113112      return false; 
  • trunk/modules/DebugLogMetrics/DebugLogMetrics.cpp

    r201 r202  
    3838DebugLogMetrics::~DebugLogMetrics() {} 
    3939 
    40 bool DebugLogMetrics::loadModule() { 
    41   timeout = NSCModuleHelper::getSettingsInt(EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_TIMEOUT ,EXTSCRIPT_SETTINGS_TIMEOUT_DEFAULT); 
    42   scriptDirectory_ = NSCModuleHelper::getSettingsString(EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_SCRIPTDIR ,EXTSCRIPT_SETTINGS_SCRIPTDIR_DEFAULT); 
     40bool DebugLogMetrics::loadModule(NSCAPI::moduleLoadMode mode) { 
     41//  timeout = SETTINGS_GET_INT() NSCModuleHelper::getSettingsInt(EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_TIMEOUT ,EXTSCRIPT_SETTINGS_TIMEOUT_DEFAULT); 
     42//  scriptDirectory_ = NSCModuleHelper::getSettingsString(EXTSCRIPT_SECTION_TITLE, EXTSCRIPT_SETTINGS_SCRIPTDIR ,EXTSCRIPT_SETTINGS_SCRIPTDIR_DEFAULT); 
    4343  root_ = NSCModuleHelper::getBasePath(); 
    4444  pdhThread.createThread(_T("NSClient++")); 
  • trunk/modules/DebugLogMetrics/DebugLogMetrics.h

    r201 r202  
    3636  command_list commands; 
    3737  command_list alias; 
    38   unsigned int timeout; 
    39   std::wstring scriptDirectory_; 
     38//  unsigned int timeout; 
     39//  std::wstring scriptDirectory_; 
    4040  std::wstring root_; 
    4141  PDHCollectorThread pdhThread; 
     
    4545  virtual ~DebugLogMetrics(); 
    4646  // Module calls 
    47   bool loadModule(); 
     47  bool loadModule(NSCAPI::moduleLoadMode mode); 
    4848  bool unloadModule(); 
    4949 
  • trunk/modules/DebugLogMetrics/PDHCollector.cpp

    r201 r202  
    2020#include "stdafx.h" 
    2121#include "PDHCollector.h" 
    22 #include <Settings.h> 
    2322#include <sysinfo.h> 
    2423 
     
    4039    if (!systemInfo::isNTBased(osVer)) { 
    4140      NSC_LOG_ERROR_STD(_T("Detected Windows 3.x or Windows 9x, PDH will be disabled.")); 
    42       NSC_LOG_ERROR_STD(_T("To manual set performance counters you need to first set ") C_SYSTEM_AUTODETECT_PDH _T("=0 in the config file, and then you also need to configure the various counter.")); 
    4341      return false; 
    4442    } 
     
    4846    } 
    4947  } catch (const systemInfo::SystemInfoException &e) { 
    50     NSC_LOG_ERROR_STD(_T("To manual set performance counters you need to first set ") C_SYSTEM_AUTODETECT_PDH _T("=0 in the config file, and then you also need to configure the various counter.")); 
    51     NSC_LOG_ERROR_STD(_T("The Error: ") + e.getError()); 
     48    NSC_LOG_ERROR_STD(_T("Unable to detect operating system: ") + e.getError()); 
    5249    return false; 
    5350  } catch (...) { 
    54     NSC_LOG_ERROR_STD(_T("To manual set performance counters you need to first set ") C_SYSTEM_AUTODETECT_PDH _T("=0 in the config file, and then you also need to configure the various counter.")); 
    55     NSC_LOG_ERROR_STD(_T("The Error: UNKNOWN_EXCEPTION")); 
     51    NSC_LOG_ERROR_STD(_T("Unable to detect operating system: <UNKNOWN EXCEPTION>")); 
    5652    return false; 
    5753  } 
  • trunk/modules/FileLogger/FileLogger.cpp

    r201 r202  
    7171std::wstring FileLogger::getFileName() { 
    7272  if (file_.empty()) { 
    73     file_ = NSCModuleHelper::getSettingsString(LOG_SECTION_TITLE, LOG_FILENAME, LOG_FILENAME_DEFAULT); 
    7473    file_ = SETTINGS_GET_STRING(log::FILENAME); 
    7574    if (file_.empty()) 
     
    9291 
    9392  try { 
    94     if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    95 #define LOG_SECTION_TITLE _T("log") 
    96 #define LOG_FILENAME _T("file")  
    97 #define LOG_DATEMASK _T("date_mask") 
    98       NSC_DEBUG_MSG(_T("Using compatibility mode in: LOGGING module")); 
    99  
    100       SETTINGS_MAP_KEY_A(log::FILENAME, LOG_SECTION_TITLE, LOG_FILENAME); 
    101       SETTINGS_MAP_KEY_A(log::DATEMASK, LOG_SECTION_TITLE, LOG_DATEMASK); 
    102       SETTINGS_MAP_KEY_A(log::DEBUG_LOG,  LOG_SECTION_TITLE, _T("debug")); 
    103     } 
    10493    SETTINGS_REG_PATH(log::SECTION); 
    10594 
  • trunk/modules/LUAScript/LUAScript.cpp

    r201 r202  
    4444  //LUA Scripts 
    4545  try { 
    46     if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    47       NSC_DEBUG_MSG(_T("Using compatiblity mode in: EventLog Checker")); 
    48 #define LUA_SCRIPT_SECTION_TITLE _T("LUA Scripts") 
    49       SETTINGS_MAP_SECTION_A(lua::SECTION,  LUA_SCRIPT_SECTION_TITLE); 
    50     } 
    5146    SETTINGS_REG_PATH(lua::SECTION); 
    5247  } catch (NSCModuleHelper::NSCMHExcpetion &e) { 
  • trunk/modules/NRPEClient/NRPEClient.cpp

    r201 r202  
    117117 
    118118  std::wstring args = (*cit).second.arguments; 
    119   if (NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_ARGUMENTS, NRPE_SETTINGS_ALLOW_ARGUMENTS_DEFAULT) == 1) { 
     119  if (SETTINGS_GET_BOOL(nrpe::ALLOW_ARGS) == 1) { 
    120120    arrayBuffer::arrayList arr = arrayBuffer::arrayBuffer2list(argLen, char_args); 
    121121    arrayBuffer::arrayList::const_iterator cit2 = arr.begin(); 
     
    123123 
    124124    for (;cit2!=arr.end();cit2++,i++) { 
    125       if (NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_NASTY_META, NRPE_SETTINGS_ALLOW_NASTY_META_DEFAULT) == 0) { 
     125      if (SETTINGS_GET_INT(nrpe::ALLOW_NASTY) == 0) { 
    126126        if ((*cit2).find_first_of(NASTY_METACHARS) != std::wstring::npos) { 
    127127          NSC_LOG_ERROR(_T("Request string contained illegal metachars!")); 
  • trunk/modules/NRPEListener/NRPEListener.cpp

    r201 r202  
    7070bool NRPEListener::loadModule(NSCAPI::moduleLoadMode mode) { 
    7171#ifdef USE_SSL 
    72   if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    73     NSC_DEBUG_MSG(_T("Using compatiblity mode in: NRPE Module")); 
    74  
    75 #define NRPE_SECTION_TITLE _T("NRPE") 
    76 #define NRPE_SETTINGS_READ_TIMEOUT _T("socket_timeout") 
    77 #define NRPE_SETTINGS_PORT _T("port") 
    78 #define NRPE_SETTINGS_BINDADDR _T("bind_to_address") 
    79 #define NRPE_SETTINGS_LISTENQUE _T("socket_back_log") 
    80 #define NRPE_SETTINGS_USE_SSL _T("use_ssl") 
    81 #define NRPE_SETTINGS_STRLEN _T("string_length") 
    82 #define NRPE_SETTINGS_PERFDATA _T("performance_data") 
    83 #define NRPE_HANDLER_SECTION_TITLE _T("NRPE Handlers") 
    84 #define NRPE_SETTINGS_SCRIPTDIR _T("script_dir") 
    85 #define NRPE_SETTINGS_TIMEOUT _T("command_timeout") 
    86 #define NRPE_SETTINGS_ALLOW_ARGUMENTS _T("allow_arguments") 
    87 #define NRPE_SETTINGS_ALLOW_NASTY_META _T("allow_nasty_meta_chars") 
    88  
    89     SETTINGS_MAP_KEY_A(nrpe::PORT,      NRPE_SECTION_TITLE, NRPE_SETTINGS_PORT); 
    90     SETTINGS_MAP_KEY_A(nrpe::BINDADDR,    NRPE_SECTION_TITLE, NRPE_SETTINGS_BINDADDR); 
    91     SETTINGS_MAP_KEY_A(nrpe::LISTENQUE,   NRPE_SECTION_TITLE, NRPE_SETTINGS_LISTENQUE); 
    92     SETTINGS_MAP_KEY_A(nrpe::READ_TIMEOUT,  NRPE_SECTION_TITLE, NRPE_SETTINGS_READ_TIMEOUT); 
    93     SETTINGS_MAP_KEY_A(nrpe::USE_SSL,   NRPE_SECTION_TITLE, NRPE_SETTINGS_USE_SSL); 
    94     SETTINGS_MAP_KEY_A(nrpe::PAYLOAD_LENGTH,NRPE_SECTION_TITLE, NRPE_SETTINGS_STRLEN); 
    95     SETTINGS_MAP_KEY_A(nrpe::ALLOW_PERFDATA,NRPE_SECTION_TITLE, NRPE_SETTINGS_PERFDATA); 
    96     SETTINGS_MAP_KEY_A(nrpe::SCRIPT_PATH, NRPE_SECTION_TITLE, NRPE_SETTINGS_SCRIPTDIR); 
    97     SETTINGS_MAP_KEY_A(nrpe::CMD_TIMEOUT, NRPE_SECTION_TITLE, NRPE_SETTINGS_TIMEOUT); 
    98     SETTINGS_MAP_KEY_A(nrpe::ALLOW_ARGS,  NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_ARGUMENTS); 
    99     SETTINGS_MAP_KEY_A(nrpe::ALLOW_NASTY, NRPE_SECTION_TITLE, NRPE_SETTINGS_ALLOW_NASTY_META); 
    100  
    101     SETTINGS_MAP_SECTION_A(nrpe::SECTION_HANDLERS,NRPE_HANDLER_SECTION_TITLE); 
    10272     
    10373#else 
     
    10676  } 
    10777#endif 
    108   noPerfData_ = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_PERFDATA,NRPE_SETTINGS_PERFDATA_DEFAULT)==0; 
    109   timeout = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_TIMEOUT ,NRPE_SETTINGS_TIMEOUT_DEFAULT); 
    110   socketTimeout_ = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_READ_TIMEOUT ,NRPE_SETTINGS_READ_TIMEOUT_DEFAULT); 
    111   scriptDirectory_ = NSCModuleHelper::getSettingsString(NRPE_SECTION_TITLE, NRPE_SETTINGS_SCRIPTDIR ,NRPE_SETTINGS_SCRIPTDIR_DEFAULT); 
    112   buffer_length_ = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_STRLEN, NRPE_SETTINGS_STRLEN_DEFAULT); 
    113  
    11478  SETTINGS_REG_KEY_I(nrpe::PORT); 
    11579  SETTINGS_REG_KEY_S(nrpe::BINDADDR); 
    11680  SETTINGS_REG_KEY_I(nrpe::LISTENQUE); 
    11781  SETTINGS_REG_KEY_I(nrpe::READ_TIMEOUT); 
    118   SETTINGS_REG_KEY_B(nrpe::USE_SSL); 
     82  SETTINGS_REG_KEY_B(nrpe::KEYUSE_SSL); 
    11983  SETTINGS_REG_KEY_I(nrpe::PAYLOAD_LENGTH); 
    12084  SETTINGS_REG_KEY_B(nrpe::ALLOW_PERFDATA); 
     
    12791  SETTINGS_REG_PATH(nrpe::SECTION_HANDLERS); 
    12892 
    129   bUseSSL_ = SETTINGS_GET_BOOL(nrpe::USE_SSL)==1; 
     93  bUseSSL_ = SETTINGS_GET_BOOL(nrpe::KEYUSE_SSL)==1; 
    13094  noPerfData_ = SETTINGS_GET_INT(nrpe::ALLOW_PERFDATA)==0; 
    13195  timeout = SETTINGS_GET_INT(nrpe::CMD_TIMEOUT); 
     
    138102    NSC_DEBUG_MSG_STD(_T("Non-standard buffer length (hope you have recompiled check_nrpe changing #define MAX_PACKETBUFFER_LENGTH = ") + strEx::itos(buffer_length_)); 
    139103  NSC_DEBUG_MSG_STD(_T("Loading all commands (from NRPE)")); 
    140   std::list<std::wstring> commands = NSCModuleHelper::getSettingsSection(NRPE_HANDLER_SECTION_TITLE); 
     104  std::list<std::wstring> commands = NSCModuleHelper::getSettingsSection(settings::nrpe::SECTION_HANDLERS_PATH); 
    141105  std::list<std::wstring>::const_iterator it; 
    142106  for (it = commands.begin(); it != commands.end(); ++it) { 
     
    149113      command_name = (*it); 
    150114    } 
    151     std::wstring s = NSCModuleHelper::getSettingsString(NRPE_HANDLER_SECTION_TITLE, (*it), _T("")); 
     115    std::wstring s = NSCModuleHelper::getSettingsString(settings::nrpe::SECTION_HANDLERS_PATH, (*it), _T("")); 
    152116    if (command_name.empty() || s.empty()) { 
    153117      NSC_LOG_ERROR_STD(_T("Invalid command definition: ") + (*it)); 
     
    168132  try { 
    169133    NSC_DEBUG_MSG_STD(_T("Starting NRPE socket...")); 
    170     unsigned short port = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_PORT, NRPE_SETTINGS_PORT_DEFAULT); 
    171     std::wstring host = NSCModuleHelper::getSettingsString(NRPE_SECTION_TITLE, NRPE_SETTINGS_BINDADDR, NRPE_SETTINGS_BINDADDR_DEFAULT); 
    172     unsigned int backLog = NSCModuleHelper::getSettingsInt(NRPE_SECTION_TITLE, NRPE_SETTINGS_LISTENQUE, NRPE_SETTINGS_LISTENQUE_DEFAULT); 
     134    unsigned short port = SETTINGS_GET_INT(nrpe::PORT); 
     135    std::wstring host = SETTINGS_GET_STRING(nrpe::BINDADDR); 
     136    unsigned int backLog = SETTINGS_GET_INT(nrpe::LISTENQUE); 
     137    if (mode == NSCAPI::normalStart) { 
    173138#ifdef USE_SSL 
    174     if (bUseSSL_) { 
    175       socket_ssl_.setHandler(this); 
    176       socket_ssl_.StartListener(host, port, backLog); 
    177     } else { 
     139      if (bUseSSL_) { 
     140        socket_ssl_.setHandler(this); 
     141        socket_ssl_.StartListener(host, port, backLog); 
     142      } else { 
    178143#else 
    179     { 
     144      { 
    180145#endif 
    181       socket_.setHandler(this); 
    182       socket_.StartListener(host, port, backLog); 
     146        socket_.setHandler(this); 
     147        socket_.StartListener(host, port, backLog); 
     148      } 
    183149    } 
    184150  } catch (simpleSocket::SocketException e) { 
     
    198164  return true; 
    199165} 
     166 
    200167bool NRPEListener::unloadModule() { 
    201168  try { 
  • trunk/modules/NSCAAgent/NSCAAgent.cpp

    r201 r202  
    5858bool NSCAAgent::loadModule(NSCAPI::moduleLoadMode mode) { 
    5959  try { 
    60  
    61     if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    62       NSC_DEBUG_MSG(_T("Using compatiblity mode in: NSCA module")); 
    63  
    64 #define NSCA_AGENT_SECTION_TITLE _T("NSCA Agent") 
    65 #define NSCA_CMD_SECTION_TITLE _T("NSCA Commands") 
    66  
    67 #define NSCA_INTERVAL _T("interval") 
    68 #define NSCA_HOSTNAME _T("hostname") 
    69 #define NSCA_SERVER _T("nsca_host") 
    70 #define NSCA_PORT _T("nsca_port") 
    71 #define NSCA_ENCRYPTION _T("encryption_method") 
    72 #define NSCA_PASSWORD _T("password") 
    73 #define NSCA_DEBUG_THREADS _T("debug_threads") 
    74 #define NSCA_CACHE_HOST _T("cache_hostname") 
    75  
    76       SETTINGS_MAP_KEY_A(nsca::INTERVAL,    NSCA_AGENT_SECTION_TITLE, NSCA_INTERVAL); 
    77       SETTINGS_MAP_KEY_A(nsca::HOSTNAME,    NSCA_AGENT_SECTION_TITLE, NSCA_HOSTNAME); 
    78       SETTINGS_MAP_KEY_A(nsca::SERVER_HOST, NSCA_AGENT_SECTION_TITLE, NSCA_SERVER); 
    79       SETTINGS_MAP_KEY_A(nsca::SERVER_PORT, NSCA_AGENT_SECTION_TITLE, NSCA_PORT); 
    80       SETTINGS_MAP_KEY_A(nsca::ENCRYPTION,  NSCA_AGENT_SECTION_TITLE, NSCA_ENCRYPTION); 
    81       SETTINGS_MAP_KEY_A(nsca::PASSWORD,    NSCA_AGENT_SECTION_TITLE, NSCA_PASSWORD); 
    82       SETTINGS_MAP_KEY_A(nsca::THREADS,   NSCA_AGENT_SECTION_TITLE, NSCA_DEBUG_THREADS); 
    83       SETTINGS_MAP_KEY_A(nsca::CACHE_HOST,  NSCA_AGENT_SECTION_TITLE, NSCA_CACHE_HOST); 
    84  
    85       SETTINGS_MAP_SECTION_A(nsca::CMD_SECTION, NSCA_CMD_SECTION_TITLE); 
    86     } 
    8760 
    8861    SETTINGS_REG_PATH(nsca::SECTION); 
  • trunk/modules/NSCAAgent/NSCAThread.cpp

    r201 r202  
    2020#include "stdafx.h" 
    2121#include "NSCAThread.h" 
    22 #include <Settings.h> 
    2322 
    2423#define REPORT_ERROR  0x01 
     
    6766 
    6867NSCAThread::NSCAThread() : hStopEvent_(NULL) { 
    69   std::wstring tmpstr = NSCModuleHelper::getSettingsString(NSCA_AGENT_SECTION_TITLE, NSCA_TIME_DELTA, NSCA_TIME_DELTA_DEFAULT); 
     68  std::wstring tmpstr = SETTINGS_GET_STRING(nsca::TIME_DELTA_DEFAULT); 
    7069  if (tmpstr[0] == '-' && tmpstr.size() > 2) 
    7170    timeDelta_ = 0 - strEx::stoui_as_time(tmpstr.substr(1)); 
     
    7675  timeDelta_ = timeDelta_ / 1000; 
    7776  NSC_DEBUG_MSG_STD(_T("Time difference for NSCA server is: ") + strEx::itos(timeDelta_)); 
    78   checkIntervall_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_INTERVAL, NSCA_INTERVAL_DEFAULT); 
    79   hostname_ = NSCModuleHelper::getSettingsString(NSCA_AGENT_SECTION_TITLE, NSCA_HOSTNAME, NSCA_HOSTNAME_DEFAULT); 
    80   nscahost_ = NSCModuleHelper::getSettingsString(NSCA_AGENT_SECTION_TITLE, NSCA_SERVER, NSCA_SERVER_DEFAULT); 
    81   nscaport_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_PORT, NSCA_PORT_DEFAULT); 
    82   payload_length_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_STRLEN, NSCA_STRLEN_DEFAULT); 
    83   read_timeout_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_READ_TIMEOUT, NSCA_READ_TIMEOUT_DEFAULT); 
    84   std::wstring report = NSCModuleHelper::getSettingsString(NSCA_AGENT_SECTION_TITLE, NSCA_REPORT, NSCA_REPORT_DEFAULT); 
     77  checkIntervall_ = SETTINGS_GET_INT(nsca::INTERVAL); 
     78  hostname_ = SETTINGS_GET_STRING(nsca::HOSTNAME); 
     79  nscahost_ = SETTINGS_GET_STRING(nsca::SERVER_HOST); 
     80  nscaport_ = SETTINGS_GET_INT(nsca::SERVER_PORT); 
     81  payload_length_ = SETTINGS_GET_INT(nsca::PAYLOAD_LENGTH); 
     82  read_timeout_ = SETTINGS_GET_INT(nsca::READ_TIMEOUT); 
     83  std::wstring report = SETTINGS_GET_STRING(nsca::REPORT_MODE); 
    8584  report_ = parse_report_string(report); 
    8685  NSC_DEBUG_MSG_STD(_T("Only reporting: ") + generate_report_string(report_)); 
    8786   
    88   encryption_method_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_ENCRYPTION, NSCA_ENCRYPTION_DEFAULT); 
    89   password_ = strEx::wstring_to_string(NSCModuleHelper::getSettingsString(NSCA_AGENT_SECTION_TITLE, NSCA_PASSWORD, NSCA_PASSWORD_DEFAULT)); 
    90   cacheNscaHost_ = NSCModuleHelper::getSettingsInt(NSCA_AGENT_SECTION_TITLE, NSCA_CACHE_HOST, NSCA_CACHE_HOST_DEFAULT) == 1; 
    91   std::list<std::wstring> items = NSCModuleHelper::getSettingsSection(NSCA_CMD_SECTION_TITLE); 
     87  encryption_method_ = SETTINGS_GET_INT(nsca::ENCRYPTION); 
     88  password_ = strEx::wstring_to_string(SETTINGS_GET_STRING(nsca::PASSWORD)); 
     89  cacheNscaHost_ = SETTINGS_GET_INT(nsca::CACHE_HOST); 
     90  read_timeout_ = SETTINGS_GET_INT(nsca::READ_TIMEOUT); 
     91 
     92  std::list<std::wstring> items = NSCModuleHelper::getSettingsSection(settings::nsca::CMD_SECTION_TITLE); 
    9293  for (std::list<std::wstring>::const_iterator cit = items.begin(); cit != items.end(); ++cit) { 
    9394    addCommand(*cit); 
  • trunk/modules/NSClientListener/NSClientListener.cpp

    r201 r202  
    6060 
    6161bool NSClientListener::loadModule(NSCAPI::moduleLoadMode mode) { 
    62   if (SETTINGS_GET_BOOL(settings_def::COMPATIBLITY)) { 
    63     NSC_DEBUG_MSG(_T("Using compatiblity mode in: NSClientListener")); 
    64     #define NSCLIENT_SECTION_TITLE _T("NSClient") 
    65     #define NSCLIENT_SETTINGS_PORT _T("port") 
    66     #define NSCLIENT_SETTINGS_VERSION _T("version") 
    67     #define NSCLIENT_SETTINGS_BINDADDR _T("bind_to_address") 
    68     #define NSCLIENT_SETTINGS_LISTENQUE _T("socket_back_log") 
    69     #define NSCLIENT_SETTINGS_READ_TIMEOUT _T("socket_timeout") 
    70  
    71     SETTINGS_MAP_KEY_A(nsclient::PORT,      NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_PORT); 
    72     SETTINGS_MAP_KEY_A(nsclient::VERSION,   NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_VERSION); 
    73     SETTINGS_MAP_KEY_A(nsclient::BINDADDR,    NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_BINDADDR); 
    74     SETTINGS_MAP_KEY_A(nsclient::LISTENQUE,   NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_LISTENQUE); 
    75     SETTINGS_MAP_KEY_A(nsclient::READ_TIMEOUT,  NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_READ_TIMEOUT); 
    76   } 
    7762  SETTINGS_REG_PATH(nsclient::SECTION); 
    7863  SETTINGS_REG_KEY_I(nsclient::PORT); 
  • trunk/release-build.bat

    r201 r202  
    33 
    44SET _ERROR= 
     5SET w32=0 
     6SET x64=0 
     7SET IA64=0 
     8SET hdr=0 
     9SET src=0 
     10SET clean=0 
     11SET upload=0 
    512echo Starting build > build.log 
    613 
     14if "%1" == "" goto args_build_all 
     15 
     16:args_loop 
     17if "%1" == "" goto args_done 
     18if "%1" == "w32" set w32=1 
     19if "%1" == "x64" set x64=1 
     20if "%1" == "hdr" set hdr=1 
     21if "%1" == "src" set hdr=1 
     22if "%1" == "clean" set clean=1 
     23if "%1" == "upload" set upload=1 
     24shift 
     25goto args_loop 
     26 
     27:args_build_all 
     28echo ### BUILDING ALL ### : %1 -- 
     29SET w32=1 
     30SET x64=1 
     31SET IA64=1 
     32SET hdr=1 
     33SET src=1 
     34 
     35:args_done 
     36 
     37 
     38if not "%clean%" == "1" goto no_build_clean 
     39@del/S/Q stage 
     40@del/S/Q bjam-tmp-build 
     41@del/S/Q bin 
     42:no_build_clean 
     43 
     44if not "%hdr%" == "1" goto no_build_hdr 
    745echo %jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers >> build.log 
    846%jam% --toolset=msvc --with-cryptopp=%CRYPTOPP_SOURCE% --with-cryptopp-target=%NSCP_INCLUDE%\cryptopp cryptopp-headers 
    947if %ERRORLEVEL% == -1 goto :error 
    1048echo :: Result: %ERRORLEVEL% >> build.log 
     49:no_build_hdr 
    1150 
     51if not "%src%" == "1" goto no_build_src 
    1252echo %jam% --toolset=msvc source-archive >> build.log 
    1353%jam% --toolset=msvc source-archive 
    1454if %ERRORLEVEL% == -1 goto :error 
    1555echo :: Result: %ERRORLEVEL% >> build.log 
     56:no_build_src 
    1657 
     58if not "%w32%" == "1" goto no_build_x86 
    1759call :build_one address-model=32 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_x86_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x86%" 
    1860IF DEFINED _ERROR goto :error 
     61:no_build_x86 
     62 
     63if not "%x64%" == "1" goto no_build_x64 
    1964call :build_one address-model=64 variant=release debug-symbols=on debug-store=database --build-type=complete "--library-path=%TARGET_LIB_x64_DIR%" "--with-psdk-lib=%PLATTFORM_SDK_LIB_x64%" 
    2065IF DEFINED _ERROR goto :error 
     66:no_build_x64 
    2167rem call build.bat runtime-link=static variant=release architecture=ia64 --library-path=%TARGET_LIB_IA64_DIR% 
     68 
     69 
     70if not "%upload%" == "1" goto no_build_upload 
     71pscp.exe "stage\archive\*.zip" "stage\installer\*.msi" nscp@nsclient.org:/var/nsclient/www/files/nightly/ 
     72:no_build_upload 
    2273 
    2374echo ************* 
  • trunk/service/NSClient++-2005.vcproj

    r201 r202  
    26932693      </File> 
    26942694      <File 
    2695         RelativePath=".\include\INISettings.h" 
    2696         > 
    2697       </File> 
    2698       <File 
    26992695        RelativePath=".\include\Mutex.h" 
    27002696        > 
     
    27292725      </File> 
    27302726      <File 
    2731         RelativePath=".\include\OLDSettings.hpp" 
    2732         > 
    2733       </File> 
    2734       <File 
    27352727        RelativePath=".\include\PDHCounter.h" 
    27362728        > 
    27372729      </File> 
    27382730      <File 
    2739         RelativePath=".\include\REGSettings.h" 
    2740         > 
    2741       </File> 
    2742       <File 
    27432731        RelativePath=".\include\remote_processes.hpp" 
    27442732        > 
     
    27532741      </File> 
    27542742      <File 
    2755         RelativePath=".\include\Settings.h" 
     2743        RelativePath=".\include\settings\Settings.h" 
     2744        > 
     2745      </File> 
     2746      <File 
     2747        RelativePath=".\include\settings\settings_ini.hpp" 
     2748        > 
     2749      </File> 
     2750      <File 
     2751        RelativePath=".\include\settings\settings_old.hpp" 
     2752        > 
     2753      </File> 
     2754      <File 
     2755        RelativePath=".\include\settings\settings_registry.hpp" 
    27562756        > 
    27572757      </File> 
     
    31103110            CommandLine="echo Copying $(InputFileName)...&#x0D;&#x0A;cmd /c &quot;copy &quot;$(InputDir)\$(InputFileName)&quot; &quot;$(TargetDir)&quot;&quot;&#x0D;&#x0A;" 
    31113111            Outputs="$(TargetDir)$(InputFileName)" 
    3112           /> 
    3113         </FileConfiguration> 
    3114       </File> 
    3115       <File 
    3116         RelativePath=".\Doxyfile" 
    3117         > 
    3118         <FileConfiguration 
    3119           Name="Release|Win32" 
    3120           ExcludedFromBuild="true" 
    3121           > 
    3122           <Tool 
    3123             Name="VCCustomBuildTool" 
    3124             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3125             Outputs=".\Doc" 
    3126           /> 
    3127         </FileConfiguration> 
    3128         <FileConfiguration 
    3129           Name="Release|x64" 
    3130           ExcludedFromBuild="true" 
    3131           > 
    3132           <Tool 
    3133             Name="VCCustomBuildTool" 
    3134             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3135             Outputs=".\Doc" 
    3136           /> 
    3137         </FileConfiguration> 
    3138         <FileConfiguration 
    3139           Name="Debug|Win32" 
    3140           > 
    3141           <Tool 
    3142             Name="VCCustomBuildTool" 
    3143             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3144             Outputs="html" 
    3145           /> 
    3146         </FileConfiguration> 
    3147         <FileConfiguration 
    3148           Name="Debug|x64" 
    3149           ExcludedFromBuild="true" 
    3150           > 
    3151           <Tool 
    3152             Name="VCCustomBuildTool" 
    3153             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3154           /> 
    3155         </FileConfiguration> 
    3156         <FileConfiguration 
    3157           Name="Distribution|Win32" 
    3158           ExcludedFromBuild="true" 
    3159           > 
    3160           <Tool 
    3161             Name="VCCustomBuildTool" 
    3162             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3163             Outputs=".\Doc" 
    3164           /> 
    3165         </FileConfiguration> 
    3166         <FileConfiguration 
    3167           Name="Distribution|x64" 
    3168           ExcludedFromBuild="true" 
    3169           > 
    3170           <Tool 
    3171             Name="VCCustomBuildTool" 
    3172             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3173             Outputs=".\Doc" 
    3174           /> 
    3175         </FileConfiguration> 
    3176         <FileConfiguration 
    3177           Name="Nightly|Win32" 
    3178           ExcludedFromBuild="true" 
    3179           > 
    3180           <Tool 
    3181             Name="VCCustomBuildTool" 
    3182             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3183             Outputs=".\Doc" 
    3184           /> 
    3185         </FileConfiguration> 
    3186         <FileConfiguration 
    3187           Name="Nightly|x64" 
    3188           ExcludedFromBuild="true" 
    3189           > 
    3190           <Tool 
    3191             Name="VCCustomBuildTool" 
    3192             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3193             Outputs=".\Doc" 
    3194           /> 
    3195         </FileConfiguration> 
    3196         <FileConfiguration 
    3197           Name="Debug-MemCheck|Win32" 
    3198           ExcludedFromBuild="true" 
    3199           > 
    3200           <Tool 
    3201             Name="VCCustomBuildTool" 
    3202             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3203           /> 
    3204         </FileConfiguration> 
    3205         <FileConfiguration 
    3206           Name="Debug-MemCheck|x64" 
    3207           ExcludedFromBuild="true" 
    3208           > 
    3209           <Tool 
    3210             Name="VCCustomBuildTool" 
    3211             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3212           /> 
    3213         </FileConfiguration> 
    3214         <FileConfiguration 
    3215           Name="OP5|Win32" 
    3216           ExcludedFromBuild="true" 
    3217           > 
    3218           <Tool 
    3219             Name="VCCustomBuildTool" 
    3220             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3221             Outputs=".\Doc" 
    3222           /> 
    3223         </FileConfiguration> 
    3224         <FileConfiguration 
    3225           Name="OP5|x64" 
    3226           ExcludedFromBuild="true" 
    3227           > 
    3228           <Tool 
    3229             Name="VCCustomBuildTool" 
    3230             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3231             Outputs=".\Doc" 
    3232           /> 
    3233         </FileConfiguration> 
    3234         <FileConfiguration 
    3235           Name="Release|Itanium" 
    3236           ExcludedFromBuild="true" 
    3237           > 
    3238           <Tool 
    3239             Name="VCCustomBuildTool" 
    3240             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3241             Outputs=".\Doc" 
    3242           /> 
    3243         </FileConfiguration> 
    3244         <FileConfiguration 
    3245           Name="Debug|Itanium" 
    3246           ExcludedFromBuild="true" 
    3247           > 
    3248           <Tool 
    3249             Name="VCCustomBuildTool" 
    3250             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3251           /> 
    3252         </FileConfiguration> 
    3253         <FileConfiguration 
    3254           Name="Distribution|Itanium" 
    3255           ExcludedFromBuild="true" 
    3256           > 
    3257           <Tool 
    3258             Name="VCCustomBuildTool" 
    3259             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3260             Outputs=".\Doc" 
    3261           /> 
    3262         </FileConfiguration> 
    3263         <FileConfiguration 
    3264           Name="Nightly|Itanium" 
    3265           ExcludedFromBuild="true" 
    3266           > 
    3267           <Tool 
    3268             Name="VCCustomBuildTool" 
    3269             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    3270             Outputs=".\Doc" 
    3271           /> 
    3272         </FileConfiguration> 
    3273         <FileConfiguration 
    3274           Name="Debug-MemCheck|Itanium" 
    3275           ExcludedFromBuild="true" 
    3276           > 
    3277           <Tool 
    3278             Name="VCCustomBuildTool" 
    3279             CommandLine="doxygen.exe $(InputPath)&#x0D;&#x0A;" 
    32803112          /> 
    32813113        </FileConfiguration> 
  • trunk/service/NSClient++.cpp

    r201 r202  
    1616#include <winsvc.h> 
    1717#include "NSClient++.h" 
    18 #include <Settings.h> 
     18#include <settings/Settings.h> 
    1919#include <charEx.h> 
    2020#include <Socket.h> 
     
    2828#include <crtdbg.h> 
    2929//#endif 
    30 #include <settings.h> 
    31 #include <INISettings.h> 
    32 #include <REGSettings.h> 
    33 #include <OLDSettings.hpp> 
     30#include <settings/settings_ini.hpp> 
     31#include <settings/settings_registry.hpp> 
     32#include <settings/settings_old.hpp> 
    3433#include <Userenv.h> 
    3534#include <remote_processes.hpp> 
     
    7271 
    7372  static bool start(DWORD dwSessionId) { 
    74     std::wstring program = mainClient.getBasePath() +  _T("\\") + Settings::getInstance()->getString(NSCLIENT_SECTION_TITLE, NSCLIENT_SETTINGS_SYSTRAY_EXE, NSCLIENT_SETTINGS_SYSTRAY_EXE_DEFAULT); 
     73    std::wstring program = mainClient.getBasePath() +  _T("\\") + SETTINGS_GET_STRING(nsclient::SYSTRAY_EXE); 
    7574    std::wstring cmdln = _T("\"") + program + _T("\" -channel __") + strEx::itos(dwSessionId) + _T("__"); 
    7675    return tray_starter::startTrayHelper(dwSessionId, program, cmdln); 
     
    234233  } 
    235234}; 
    236  
    237235 
    238236#define SETTINGS_GET_BOOL(key) \ 
     
    303301      throw SettingsException(_T("Undefined settings type: ") + SettingsCore::type_to_string(type)); 
    304302    } 
     303 
    305304  }; 
    306305 
    307306  typedef Singleton<NSCSettingsImpl> SettingsHandler; 
     307 
    308308  // Alias to make handling "compatible" with old syntax 
    309309  Settings::SettingsInterface* get_settings() { 
     
    316316    SettingsHandler::destroyInstance(); 
    317317  } 
     318 
    318319 
    319320  bool init_settings() { 
     
    322323      get_core()->set_base(mainClient.getBasePath()); 
    323324      get_core()->boot(_T("boot.ini")); 
    324 #define MAIN_MODULES_SECTION_OLD _T("modules") 
    325 #define MAIN_SECTION_TITLE _T("Settings") 
    326 #define MAIN_STRING_LENGTH _T("string_length") 
    327       get_core()->add_mapping(MAIN_MODULES_SECTION, MAIN_MODULES_SECTION_OLD); 
    328       get_core()->add_mapping(settings::settings_def::PAYLOAD_LEN_PATH, settings::settings_def::PAYLOAD_LEN, MAIN_SECTION_TITLE, MAIN_STRING_LENGTH); 
    329325      get_core()->register_key(SETTINGS_REG_KEY_I_GEN(settings_def::PAYLOAD_LEN, Settings::SettingsCore::key_integer)); 
    330326      get_core()->register_key(SETTINGS_REG_KEY_S_GEN(protocol_def::ALLOWED_HOSTS, Settings::SettingsCore::key_string)); 
     
    995991    } 
    996992    try { 
    997       loadPlugins(); 
     993      loadPlugins(boot?NSCAPI::normalStart:NSCAPI::dontStart); 
    998994    } catch (...) { 
    999995      LOG_ERROR_STD(_T("Unknown exception loading plugins")); 
     
    11431139  return mainClient.service_ctrl_ex(dwControl, dwEventType, lpEventData, lpContext); 
    11441140} 
    1145  
    11461141/** 
    11471142 * Forward this to the main service dispatcher helper class 
     
    11651160  tray_starter::start(dwSessionId); 
    11661161} 
    1167  
    11681162 
    11691163////////////////////////////////////////////////////////////////////////// 
     
    12921286} 
    12931287 
    1294 void NSClientT::loadPlugins() { 
     1288void NSClientT::loadPlugins(NSCAPI::moduleLoadMode mode) { 
    12951289  bool hasBroken = false; 
    12961290  { 
     
    13151309        LOG_ERROR_STD(_T("Could not load plugin: ") + (*it)->getModule()); 
    13161310      } 
     1311    } 
    13171312  } 
    13181313  for (pluginList::iterator it=plugins_.begin(); it != plugins_.end();) { 
    13191314    LOG_DEBUG_STD(_T("Loading plugin: ") + (*it)->getName() + _T("...")); 
    13201315    try { 
    1321       (*it)->load_plugin(); 
     1316      (*it)->load_plugin(mode); 
    13221317      ++it; 
    13231318    } catch(NSPluginException e) { 
     
    15131508void NSClientT::listPlugins() { 
    15141509  ReadLock readLock(&m_mutexRW, true, 10000); 
     1510  if (!readLock.IsLocked()) { 
     1511    LOG_ERROR(_T("FATAL ERROR: Could not get read-mutex.")); 
     1512    return; 
     1513  } 
     1514  for (pluginList::iterator it=plugins_.begin(); it != plugins_.end(); ++it) { 
    15151515    try { 
    1516       std::wstring msg, perf; 
    1517       int returnCode = shared_client_->inject(command, arrayBuffer::arrayBuffer2string(argument, argLen, _T(" ")), L' ', true, msg, perf); 
    1518       NSCHelper::wrapReturnString(returnMessageBuffer, returnMessageBufferLen, msg, returnCode); 
    1519       return NSCHelper::wrapReturnString(returnPerfBuffer, returnPerfBufferLen, perf, returnCode); 
    1520     } catch (nsclient_session::session_exception &e) { 
    1521       LOG_ERROR_STD(_T("Failed to inject remote command: ") + e.what()); 
    1522       int returnCode = NSCHelper::wrapReturnString(returnMessageBuffer, returnMessageBufferLen, _T("Failed to inject remote command: ") + e.what(), NSCAPI::returnCRIT); 
    1523       return NSCHelper::wrapReturnString(returnPerfBuffer, returnPerfBufferLen, _T(""), returnCode); 
    1524     } catch (...) { 
    1525       LOG_ERROR_STD(_T("Failed to inject remote command: Unknown exception")); 
    1526       int returnCode = NSCHelper::wrapReturnString(returnMessageBuffer, returnMessageBufferLen, _T("Failed to inject remote command:  + e.what()"), NSCAPI::returnCRIT); 
    1527       return NSCHelper::wrapReturnString(returnPerfBuffer, returnPerfBufferLen, _T(""), returnCode); 
    1528     } 
    1529   } else { 
    1530     ReadLock readLock(&m_mutexRW, true, 5000); 
    1531     if (!readLock.IsLocked()) { 
    1532       LOG_ERROR(_T("FATAL ERROR: Could not get read-mutex.")); 
    1533       return NSCAPI::returnUNKNOWN; 
    1534     } 
    1535     for (pluginList::size_type i = 0; i < commandHandlers_.size(); i++) { 
    1536       try { 
    1537         NSCAPI::nagiosReturn c = commandHandlers_[i]->handleCommand(command, argLen, argument, returnMessageBuffer, returnMessageBufferLen, returnPerfBuffer, returnPerfBufferLen); 
    1538         switch (c) { 
    1539           case NSCAPI::returnInvalidBufferLen: 
    1540             LOG_ERROR(_T("UNKNOWN: Return buffer to small to handle this command.")); 
    1541             return c; 
    1542           case NSCAPI::returnIgnored: 
    1543             break; 
    1544           case NSCAPI::returnOK: 
    1545           case NSCAPI::returnWARN: 
    1546           case NSCAPI::returnCRIT: 
    1547           case NSCAPI::returnUNKNOWN: 
    1548             LOG_DEBUG_STD(_T("Injected Result: ") + NSCHelper::translateReturn(c) + _T(" '") + (std::wstring)(returnMessageBuffer) + _T("'")); 
    1549             LOG_DEBUG_STD(_T("Injected Performance Result: '") +(std::wstring)(returnPerfBuffer) + _T("'")); 
    1550             return c; 
    1551           default: 
    1552             LOG_ERROR_STD(_T("Unknown error from handleCommand: ") + strEx::itos(c) + _T(" the injected command was: ") + (std::wstring)command); 
    1553             return c; 
    1554         } 
    1555       } catch(const NSPluginException& e) { 
    1556         LOG_ERROR_STD(_T("Exception raised: ") + e.error_ + _T(" in module: ") + e.file_); 
    1557         return NSCAPI::returnCRIT; 
    1558       } catch(...) { 
    1559         LOG_ERROR_STD(_T("Unknown exception raised in module")); 
    1560         return NSCAPI::returnCRIT; 
    1561       } 
    1562     } 
    1563     LOG_MESSAGE_STD(_T("No handler for command: '") + command + _T("'")); 
    1564     return NSCAPI::returnIgnored; 
    1565   } 
     1516      if ((*it)->isBroken()) { 
     1517        std::wcout << (*it)->getModule() << _T(": ") << _T("broken") << std::endl; 
     1518      } else { 
     1519        std::wcout << (*it)->getModule() << _T(": ") << (*it)->getName() << std::endl; 
     1520      } 
     1521    } catch (NSPluginException e) { 
     1522      LOG_ERROR_STD(_T("Could not load plugin: ") + e.file_ + _T(": ") + e.error_); 
     1523    } 
     1524  } 
     1525 
    15661526} 
    15671527 
     
    15791539  return (debug_ == log_debug); 
    15801540} 
    1581 void NSClientT::enableDebug(bool debug) { 
    1582   if (debug) { 
    1583     debug_ = log_debug; 
    1584     LOG_DEBUG(_T("Enabling debug mode...")); 
    1585   } 
    1586   else 
    1587     debug_ = log_nodebug; 
    1588 } 
    1589  
    15901541 
    15911542void log_broken_message(std::wstring msg) { 
     
    19491900  return NSCAPI::isSuccess; 
    19501901} 
    1951 NSCAPI::errorReturn NSAPISettingsAddKeyMapping(const TCHAR* source_path, const TCHAR* source_key, const TCHAR* destination_path, const TCHAR* destination_key) { 
    1952   try { 
    1953     settings_manager::get_core()->add_mapping(source_path, source_key, destination_path, destination_key); 
    1954   } catch (SettingsException e) { 
    1955     LOG_ERROR_STD(_T("Failed to add mapping: ") + e.getMessage()); 
    1956     return NSCAPI::hasFailed; 
    1957   } catch (...) { 
    1958     LOG_ERROR_STD(_T("Failed to add mapping")); 
    1959     return NSCAPI::hasFailed; 
    1960   } 
    1961   return NSCAPI::isSuccess; 
    1962 } 
    1963 NSCAPI::errorReturn NSAPISettingsAddPathMapping(const TCHAR* src, const TCHAR* dst) { 
    1964   try { 
    1965     settings_manager::get_core()->add_mapping(src, dst); 
    1966   } catch (SettingsException e) { 
    1967     LOG_ERROR_STD(_T("Failed to add mapping: ") + e.getMessage()); 
    1968     return NSCAPI::hasFailed; 
    1969   } catch (...) { 
    1970     LOG_ERROR_STD(_T("Failed to add mapping")); 
    1971     return NSCAPI::hasFailed; 
    1972   } 
    1973   return NSCAPI::isSuccess; 
    1974 } 
    1975  
    19761902NSCAPI::errorReturn NSAPISettingsRegKey(const TCHAR* path, const TCHAR* key, int type, const TCHAR* title, const TCHAR* description, const TCHAR* defVal, int advanced) { 
    19771903  try { 
     
    21002026  if (_wcsicmp(buffer, _T("NSAPIRegisterCommand")) == 0) 
    21012027    return &NSAPIRegisterCommand; 
    2102   if (_wcsicmp(buffer, _T("NSAPISettingsAddKeyMapping")) == 0) 
    2103     return &NSAPISettingsAddKeyMapping; 
    2104   if (_wcsicmp(buffer, _T("NSAPISettingsAddPathMapping")) == 0) 
    2105     return &NSAPISettingsAddPathMapping; 
    2106  
    21072028  if (_wcsicmp(buffer, _T("NSAPISettingsRegKey")) == 0) 
    21082029    return &NSAPISettingsRegKey; 
  • trunk/service/NSClient++.h

    r201 r202  
    115115public: 
    116116  // c-tor, d-tor 
    117   NSClientT(void) : debug_(log_unknown), boot_(true) {} 
    118117  NSClientT(void) : debug_(log_unknown), plugins_loaded_(false), enable_shared_session_(false) {} 
    119118  virtual ~NSClientT(void) {} 
     
    123122    else 
    124123      debug_ = log_nodebug; 
    125   } 
    126   void setBoot(bool boot = true) { 
    127     boot_ = boot; 
    128124  } 
    129125 
     
    149145  void addPlugins(const std::list<std::wstring> plugins); 
    150146  plugin_type loadPlugin(const std::wstring plugin); 
    151   void loadPlugins(void); 
     147  void loadPlugins(NSCAPI::moduleLoadMode mode); 
    152148  void unloadPlugins(bool unloadLoggers); 
    153149  std::wstring describeCommand(std::wstring command); 
     
    218214NSCAPI::errorReturn NSAPIReleaseAllCommandNamessBuffer(TCHAR***, unsigned int *); 
    219215NSCAPI::errorReturn NSAPIRegisterCommand(const TCHAR*,const TCHAR*); 
    220 NSCAPI::errorReturn NSAPISettingsAddKeyMapping(const TCHAR*, const TCHAR*, const TCHAR*, const TCHAR*); 
    221 NSCAPI::errorReturn NSAPISettingsAddPathMapping(const TCHAR*, const TCHAR*); 
    222216NSCAPI::errorReturn NSAPISettingsRegKey(const TCHAR*, const TCHAR*, int, const TCHAR*, const TCHAR*, const TCHAR*, int); 
    223217NSCAPI::errorReturn NSAPISettingsRegPath(const TCHAR*, const TCHAR*, const TCHAR*, int); 
     
    225219NSCAPI::errorReturn NSAPIReleasePluginList(int,NSCAPI::plugin_info*[]); 
    226220NSCAPI::errorReturn NSAPISettingsSave(void); 
    227  
    228221 
    229222 
Note: See TracChangeset for help on using the changeset viewer.