I've done some little modifications to the Window version in order to build on following recent rev of Visual C++ (tested both as x86 and x64):
Microsoft Visual Studio Community 2019
Version 16.4.6
VisualStudio.16.Release/16.4.6+29905.134
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Community
Visual C++ 2019 00435-60000-00000-AA503
Microsoft Visual C++ 2019
Build a new Visual C++ solution to compile and build.
Add in the "Source Files" folder (Solution view) the existent file "\windows\klog_main.cpp" from this project NOTE: In the project properties menu, remember to set "C/C++" --> "Code generation" --> "Security Check" as "Disable Security Check (/GS-)" in order to use unsafe code.
Output example (in "System32Log.txt" in the local folder):
[Window: *Senza nome - Blocco note di Windows - at Sat Apr 11 17:15:32 2020] [SHIFT]Notepad just opened[SHIFT]1 [SHIFT]Hello everyone[SHIFT]111
Hi Giacomo,
I've done some little modifications to the Window version in order to build on following recent rev of Visual C++ (tested both as x86 and x64):
Microsoft Visual Studio Community 2019 Version 16.4.6 VisualStudio.16.Release/16.4.6+29905.134 Microsoft .NET Framework Version 4.8.03752
Installed Version: Community
Visual C++ 2019 00435-60000-00000-AA503 Microsoft Visual C++ 2019
Build a new Visual C++ solution to compile and build. Add in the "Source Files" folder (Solution view) the existent file "\windows\klog_main.cpp" from this project NOTE: In the project properties menu, remember to set "C/C++" --> "Code generation" --> "Security Check" as "Disable Security Check (/GS-)" in order to use unsafe code.
Output example (in "System32Log.txt" in the local folder):
Note that "[SHIFT]1" is "!"
I hope this contribution will be useful.