]> repos.lx-s.de Git - winmute.git/commitdiff
Updated Copyright. Added Log-class.
authorlx-s <lx-s@users.noreply.github.com>
Wed, 31 Mar 2021 09:39:01 +0000 (11:39 +0200)
committerlx-s <lx-s@users.noreply.github.com>
Wed, 31 Mar 2021 09:39:01 +0000 (11:39 +0200)
37 files changed:
Build/tools/chocolateyinstall.ps1 [new file with mode: 0644]
Dist/bin/license.txt
Dist/bin/liesmich.html
Dist/bin/readme.html
ScreensaverNotify/ScreensaverNotify.cpp
ScreensaverNotify/ScreensaverNotify.vcxproj
ScreensaverNotify32/ScreensaverNotify32.vcxproj
ScreensaverProxy32/ScreensaverNotifierProxy.cpp
ScreensaverProxy32/ScreensaverNotifierProxy.h
ScreensaverProxy32/ScreensaverProxy.cpp
ScreensaverProxy32/ScreensaverProxy32.vcxproj
WinMute/AboutDlg.cpp
WinMute/Log.cpp [new file with mode: 0644]
WinMute/Log.h [new file with mode: 0644]
WinMute/MMNotificationClient.cpp
WinMute/MMNotificationClient.h
WinMute/QuietHoursDlg.cpp
WinMute/ScreensaverNotifier.cpp
WinMute/ScreensaverNotifier.h
WinMute/Settings.cpp
WinMute/Settings.h
WinMute/StdAfx.cpp
WinMute/StdAfx.h
WinMute/TrayIcon.cpp
WinMute/TrayIcon.h
WinMute/Utility.cpp
WinMute/VersionHelper.h
WinMute/VistaAudio.cpp
WinMute/VistaAudioSessionEvents.cpp
WinMute/VistaAudioSessionEvents.h
WinMute/WinAudio.h
WinMute/WinMain.cpp
WinMute/WinMute.cpp
WinMute/WinMute.h
WinMute/WinMute.vcxproj
WinMute/WinMute.vcxproj.filters
WinMute/res.rc

diff --git a/Build/tools/chocolateyinstall.ps1 b/Build/tools/chocolateyinstall.ps1
new file mode 100644 (file)
index 0000000..5f28270
--- /dev/null
@@ -0,0 +1 @@
+
\ No newline at end of file
index be1e5ef64232c4b3206f47c7286f1966367ca6a4..30aa02aa246d44254c1dffe0fc0c2082902626c9 100644 (file)
@@ -1,5 +1,5 @@
  WinMute
-           Copyright (C) 2020 Alexander Steinhoefer
+           Copyright (C) 2021 Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 40ad8c5ef684fa8d0ac935ae8b071d8691674ece..e5a2cef0542ca726df00588da95e8002dad2375c 100644 (file)
@@ -19,7 +19,7 @@
 </head>
 <body>
    <h1>WinMute 1.6.0</h1>
-   <p class="copyright">&copy; Copyright 2020, Alexander Steinh&ouml;fer - <a href="http://www.lx-s.de">www.lx-s.de</a></p>
+   <p class="copyright">&copy; Copyright 2021, Alexander Steinh&ouml;fer - <a href="http://www.lx-s.de">www.lx-s.de</a></p>
 
    <h2>Über</h2>
    <p>WinMute kann Windows automatisch stumm schalten, sobald</p>
index 5a7946e3c454500c70634a504d55b9af41353d34..144e712da001a9b5170667bfe1b7b46611849a4a 100644 (file)
@@ -19,7 +19,7 @@
 </head>
 <body>
    <h1>WinMute 1.6.0</h1>
-   <p class="copyright">&copy; Copyright 2020, by Alexander Steinh&ouml;fer - <a href="http://www.lx-s.de">www.lx-s.de</a></p>
+   <p class="copyright">&copy; Copyright 2021, by Alexander Steinh&ouml;fer - <a href="http://www.lx-s.de">www.lx-s.de</a></p>
 
    <h2>About</h2>
    <p>WinMute can automatically mute your volume when</p>
index 9c0947585aee096bbef19c7a4ea671eea46a2b93..9a1c91c78a9f4ae5c046ea60a4ddbe25678f6071 100644 (file)
@@ -1,6 +1,6 @@
 /*
  ScreensaverNotify DLL
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 8a8b1f50b6a7f58d4114a28b1793ef4936fcdbad..ca3d3f5efdd7259d0c2359db03668ce1d8971d43 100644 (file)
       <TreatWarningAsError>true</TreatWarningAsError>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <TreatWarningAsError>true</TreatWarningAsError>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <TreatWarningAsError>true</TreatWarningAsError>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <TreatWarningAsError>true</TreatWarningAsError>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
index 5ea3435b86589111a7419ac1861e473561708338..05a2ac6b321e8b68f49a538d789958017dfdf265 100644 (file)
       <PreprocessorDefinitions>WINMUTEDLL_EXPORTS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
       <PreprocessorDefinitions>WINMUTEDLL_EXPORTS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
       <PreprocessorDefinitions>WINMUTEDLL_EXPORTS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
       <PreprocessorDefinitions>WINMUTEDLL_EXPORTS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
index 93937179ddc83c510fe5655f8f998031e913250a..917aa5a60b45577afcbb67f5a754f9eea26b849a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index aca076cf864ba0d4608bf4eaf3c676f866155487..e862c3fce95f76d273643a336e893885b754d7d5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index a55206dbeaf4f82a5d959b3986ba4cbbb220a2d9..621bd4f16ad41413700b45f7c8fc2254466c544a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 1d86c28993b1cff7501c2f788fd1db76b82f6096..cf96a5f24c1e81b328a4eadeffe33e7fac38ee3f 100644 (file)
       <SDLCheck>true</SDLCheck>
       <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <SDLCheck>true</SDLCheck>
       <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <SDLCheck>true</SDLCheck>
       <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
       <SDLCheck>true</SDLCheck>
       <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ConformanceMode>true</ConformanceMode>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <SubSystem>Windows</SubSystem>
index c4a4f7a5e169b8a385b1b034df0111c63a08bacc..2d5c53da0bf34fd61d6d802ebb45e3f0f5e9a095 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
diff --git a/WinMute/Log.cpp b/WinMute/Log.cpp
new file mode 100644 (file)
index 0000000..7251d08
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+ WinMute
+           Copyright (c) 2021, Alexander Steinhoefer
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+    * Neither the name of the author nor the names of its contributors may
+      be used to endorse or promote products derived from this software
+      without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
+
+#pragma once
+
+#include "StdAfx.h"
+
+static bool OpenLogFile(std::ofstream &logFile)
+{
+   auto path = std::filesystem::temp_directory_path();
+   path /= "WinMute.log";
+   logFile.open(path.string(), std::ios::out|std::ios::app|std::ios::binary);
+   return logFile.is_open();
+}
+
+Log& Log::GetInstance()
+{
+   static Log log;
+   return log;
+}
+
+Log::Log():
+   initialized_(false)
+{
+   if (OpenLogFile(logFile_)) {
+      initialized_ = true;
+   }
+}
+
+Log::~Log()
+{
+   if (initialized_) {
+      logFile_.close();
+   }
+}
+
+void Log::Write(std::string msg)
+{
+   if (!initialized_) {
+      return;
+   }
+   auto now = std::chrono::system_clock::now();
+   auto in_time_t = std::chrono::system_clock::to_time_t(now);
+   struct tm tm;
+
+   std::stringstream ss;
+   localtime_s(&tm, &in_time_t);
+   ss << "[" << std::put_time(&tm, "%Y-%m-%d %X") << "] ";
+   ss << msg;
+   ss << "\n";
+
+   logFile_.write(ss.str().c_str(), ss.str().length());
+}
diff --git a/WinMute/Log.h b/WinMute/Log.h
new file mode 100644 (file)
index 0000000..6988a22
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ WinMute
+           Copyright (c) 2021, Alexander Steinhoefer
+
+-----------------------------------------------------------------------------
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+
+    * Neither the name of the author nor the names of its contributors may
+      be used to endorse or promote products derived from this software
+      without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+-----------------------------------------------------------------------------
+*/
+
+#pragma once
+
+#include "StdAfx.h"
+
+class Log {
+public:
+   Log& GetInstance();
+   void Write(std::string msg);
+private:
+   Log();
+   ~Log();
+   Log(const Log&) = delete;
+   Log& operator=(const Log&) = delete;
+
+   bool initialized_;
+   std::ofstream logFile_;
+};
index 8dc099d75adc8291183252a43e471f71cdafd626..bb59ac5b99221e2ab5af8f2b1fb01cfc48a9af56 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 70aaa2a24bc0e9ac0d441949a4777340a159efed..c502627a5a2af289403010dfef1bf894672bd945 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 0368a24fbc1efdcf0b23be19110703526a85bd21..32284f2588701be408e95860f7a6724b61d30dff 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index fb269802fe7eca447c01adaf3c56bb9564568b9c..c41e59bddd2ddf0f02fe90f47d56e072ed641da0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index b9cb093ffda956e8913fdcbdb39957fa7ea5421d..7c9a35909334695b549c16ff2f95bc934d62205b 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 22bda636135ea46c1d269f78e97a3778697a0ee0..314cc8d64f996a6cdb4ee43c1cc3d5d9abe521da 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 2a96321a69a675505617d073644ddfd1cedd50f8..c27ee3786b18d136c003c2bd670363c9bdc3afa5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 1b10bcf0fd8c46260fe62330de0369bc2fd7b89e..ea86dd7a62183f828710742e2603b1ed1e8f4007 100644 (file)
@@ -1,5 +1,5 @@
 /* WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index f25beca9f39888db9e27358905bc211e24663e90..a899a21bbac9f509a4d6cdf438dcf7eab4548f79 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
@@ -54,6 +54,9 @@ POSSIBILITY OF SUCH DAMAGE.
 #include <memory>
 #include <vector>
 #include <algorithm>
+#include <fstream>
+#include <filesystem>
+#include <chrono>
 
 #include <windows.h>
 #include <windowsx.h>
@@ -67,6 +70,7 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #include "ScreensaverNotifier.h"
 #include "Settings.h"
+#include "Log.h"
 #include "TrayIcon.h"
 #include "WinMute.h"
 #include "VersionHelper.h"
index 9b9d0253cdd46872ee902868c99e24fd57a1ac00..6f5b612c0fe96992773051809eda43c3f1aa933c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index b56359893f82302692da52b89f95bb2c2a0bbe26..bdb9a8c4bd471d1a05c3c06003139106f546d6e3 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 1176ed4789ada123d2f84122b4d2b1f64ac1f186..65df9936ccec51c387bbb360d78ce3de10b5f875 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 64ba8c390f98aee76f3cbbfc14526ad174f15618..416c919fdd2d45d4c8ff5dba39b996ee3cae84b0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 9fb533576d0a415834edcf898570a5108cb2c805..7ca1907b8672a2cd8c9245254991de2f80488929 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index c824ba2794d194d3c5dd0093afd171325daa8e20..9772e51cdbd0721afe2cc35f68be69471c5f294c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 22e510da22da2f92d784cfcfc38efe6f2aad9d0e..621316ecf5d785f22c5e41af360146a76d55e778 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index c9efc4d95dcea69e604c4428f33d48f165908a7e..5e83dc05fcbcaf2289c180e64a230c2e1613578c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 94535d0dd41ec64a482c72d9a794caf8e3b4d66b..0d04a90f6db1e211d45dc00525c065f95fd10b91 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index 46a9ea2057b4f750228ce9786ffbf21922c8cbfa..4464f7c164cbfcfb8cc269f2b4d2e464347ae3ba 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index a292f61bd287de6c5ea718e6791028a3af1f42cf..71b4362bbe3fbfa0b81136db5fe27f5fc9dccddf 100644 (file)
@@ -1,6 +1,6 @@
 /*
  WinMute
-           Copyright (c) 2020, Alexander Steinhoefer
+           Copyright (c) 2021, Alexander Steinhoefer
 
 -----------------------------------------------------------------------------
 Redistribution and use in source and binary forms, with or without
index a2c96a38885bf0d8ad0ae6173792aa96d26ae0a6..23b7c2e6264da460883944f4bde9c90ce5f18e57 100644 (file)
       <SDLCheck>true</SDLCheck>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <AdditionalDependencies>strsafe.lib;comctl32.lib;WtsApi32.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <EnablePREfast>true</EnablePREfast>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
       <SDLCheck>true</SDLCheck>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <AdditionalDependencies>strsafe.lib;comctl32.lib;WtsApi32.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <DiagnosticsFormat>Caret</DiagnosticsFormat>
       <ControlFlowGuard>Guard</ControlFlowGuard>
       <OmitFramePointers />
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <AdditionalDependencies>strsafe.lib;comctl32.lib;WtsApi32.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
       <SDLCheck>true</SDLCheck>
       <MultiProcessorCompilation>true</MultiProcessorCompilation>
       <ControlFlowGuard>Guard</ControlFlowGuard>
+      <LanguageStandard>stdcpp17</LanguageStandard>
     </ClCompile>
     <Link>
       <AdditionalDependencies>strsafe.lib;comctl32.lib;WtsApi32.lib;Winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
   </ItemDefinitionGroup>
   <ItemGroup>
     <ClCompile Include="AboutDlg.cpp" />
+    <ClCompile Include="Log.cpp" />
     <ClCompile Include="MMNotificationClient.cpp" />
     <ClCompile Include="QuietHoursDlg.cpp" />
     <ClCompile Include="ScreensaverNotifier.cpp" />
     <ClCompile Include="WinMute.cpp" />
   </ItemGroup>
   <ItemGroup>
+    <ClInclude Include="Log.h" />
     <ClInclude Include="MMNotificationClient.h" />
     <ClInclude Include="resource.h" />
     <ClInclude Include="ScreensaverNotifier.h" />
index a34564cf8eab4313de44a43c27150cdbb4bb02f0..9cc447fe57472dc9e51fa896b4b432128a46b9d4 100644 (file)
@@ -24,6 +24,9 @@
     <Filter Include="Source Files\Settings">
       <UniqueIdentifier>{f9c118fc-0a72-4278-a710-841604aeb3e3}</UniqueIdentifier>
     </Filter>
+    <Filter Include="Source Files\Log">
+      <UniqueIdentifier>{dc591c83-7135-4757-b9cb-54405dbc8d86}</UniqueIdentifier>
+    </Filter>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="StdAfx.cpp">
@@ -62,6 +65,9 @@
     <ClCompile Include="QuietHoursDlg.cpp">
       <Filter>Source Files\UI</Filter>
     </ClCompile>
+    <ClCompile Include="Log.cpp">
+      <Filter>Source Files\Log</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="resource.h">
     <ClInclude Include="Settings.h">
       <Filter>Source Files\Settings</Filter>
     </ClInclude>
+    <ClInclude Include="Log.h">
+      <Filter>Source Files\Log</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="app.ico">
index d3fff5a94bce227199265f70da2ebada6e573b4c..773539d2da8d94a4b5ede71743355a668e5fb19a 100644 (file)
@@ -169,7 +169,7 @@ BEGIN
             VALUE "FileDescription", "WinMute"
             VALUE "FileVersion", "1.6.0.0"
             VALUE "InternalName", "WinMute"
-            VALUE "LegalCopyright", "Copyright (c) 2020, Alexander Steinhöfer"
+            VALUE "LegalCopyright", "Copyright (c) 2021, Alexander Steinhöfer"
             VALUE "OriginalFilename", "WinMute.exe"
             VALUE "ProductName", "WinMute"
             VALUE "ProductVersion", "1.6.0.0"
@@ -180,7 +180,7 @@ BEGIN
             VALUE "FileDescription", "WinMute"
             VALUE "FileVersion", "1.6.0.0"
             VALUE "InternalName", "WinMute"
-            VALUE "LegalCopyright", "Copyright (c) 2020, Alexander Steinhöfer"
+            VALUE "LegalCopyright", "Copyright (c) 2021, Alexander Steinhöfer"
             VALUE "OriginalFilename", "WinMute.exe"
             VALUE "ProductName", "WinMute"
             VALUE "ProductVersion", "1.6.0.0"