├── .gitignore ├── SendConsoleKeys ├── .gitignore └── send_console_keys.cpp ├── LoadDll ├── .gitignore ├── prep-cmake.bat ├── CMakeLists.txt └── LoadDll.cpp ├── FixCodeMarkers ├── .gitignore ├── FixCodeMarkers.sln ├── FixCodeMarkers.pyproj └── FixCodeMarkers.py ├── WerFaultTool ├── .gitignore ├── about.png ├── minus.png ├── plus.png ├── checked.png ├── WerFault.ico ├── RELEASES │ ├── crash.exe │ ├── v1.0.0.zip │ └── WerFaultTool.exe ├── Scratch │ ├── links.txt │ ├── WerFault.reg │ ├── werfaulttool-gui.png │ └── crash.cpp ├── crash │ └── crash.cpp ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ └── Resources.Designer.cs ├── README.md ├── AboutForm.cs ├── WerFaultTool.csproj.user ├── Program.cs ├── WerFaultTool.sln ├── Types.cs ├── AboutForm.Designer.cs ├── app.manifest └── WerFaultTool.csproj ├── ControlColorExplorer ├── .gitignore ├── ico100.ico ├── BINARIES │ └── ControlColorExplorer.zip ├── App.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Program.cs ├── ControlColorExplorer.sln ├── ControlColorExplorer.csproj └── ControlColorExplorer.cs ├── AutoPicture ├── .gitignore ├── REL │ └── latest.zip ├── README.md ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Program.cs ├── AutoPicture.sln ├── AutoPictureForm.cs ├── AutoPictureForm.Designer.cs └── AutoPicture.csproj ├── DirectionalKeyInput ├── mapping.bmp ├── mapping0.bmp ├── BINARIES │ └── v0000.zip ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ └── Resources.Designer.cs ├── mapping.txt ├── mapping_v1.txt ├── Program.cs ├── NotepadForm.cs ├── .gitattributes ├── stats.htm ├── DirInput.sln ├── NotepadForm.Designer.cs ├── .gitignore └── DirInput.csproj ├── KeyboardSpeedReset ├── success.ico ├── BINARIES │ └── KeyboardSpeedReset.zip ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── resources.txt ├── README.txt ├── Program.cs ├── .gitattributes ├── KeyboardSpeedReset.sln ├── Form1.cs ├── Form1.Designer.cs ├── KeyboardSpeedReset.csproj └── .gitignore ├── WEPExplorer ├── Binaries │ ├── latest.zip │ ├── WEPExplore_v1.0.zip │ ├── WEPExplore_v1.1.1.zip │ ├── WEPExplore_v1.1.zip │ └── WEPExplore_v1.2.zip ├── Explorer │ ├── ico101.ico │ ├── Tools │ │ └── cli.exe │ ├── App.config │ ├── Properties │ │ ├── Settings.settings │ │ ├── Settings.Designer.cs │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── Program.cs │ ├── readme.txt │ ├── SimpleListViewItemComparer.cs │ ├── Utils.cs │ ├── Explorer.csproj │ └── Extensions.cs ├── .gitignore ├── controls │ └── CheckBoxComboBox │ │ ├── CheckBoxComboBox.csproj.user │ │ ├── CheckBoxComboBox.Designer.cs │ │ ├── Popup.Designer.cs │ │ ├── PopupComboBox.Designer.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ ├── NativeMethods.cs │ │ ├── GripBounds.cs │ │ ├── CheckBoxComboBox.csproj │ │ └── Selection Wrappers │ │ └── ObjectSelectionWrapper.cs ├── README.md ├── cli │ ├── stdafx.cpp │ ├── targetver.h │ ├── gen.bat │ ├── stdafx.h │ ├── cli.vcxproj.user │ ├── WEPExplorer.vcxproj.user │ └── WEPExplorer.vcxproj.filters ├── LICENSE.md └── WEPExplorer.sln ├── Wizmo ├── BINARIES │ └── Wizmo03062019.zip ├── prep-cmake.bat ├── CMakeLists.txt ├── Wizmo.h └── main.cpp ├── CMakeLists.txt ├── WorkingSet ├── CMakeLists.txt ├── prep-cmake.bat ├── dummydll.cpp └── main.cpp ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | build*/ -------------------------------------------------------------------------------- /SendConsoleKeys/.gitignore: -------------------------------------------------------------------------------- 1 | *.obj -------------------------------------------------------------------------------- /LoadDll/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | build64/ -------------------------------------------------------------------------------- /FixCodeMarkers/.gitignore: -------------------------------------------------------------------------------- 1 | .vs/ 2 | Debug/ -------------------------------------------------------------------------------- /WerFaultTool/.gitignore: -------------------------------------------------------------------------------- 1 | .vs/ 2 | bin/ 3 | obj/ -------------------------------------------------------------------------------- /ControlColorExplorer/.gitignore: -------------------------------------------------------------------------------- 1 | obj/ 2 | bin/ 3 | .vs/ -------------------------------------------------------------------------------- /AutoPicture/.gitignore: -------------------------------------------------------------------------------- 1 | .vs/ 2 | bin/ 3 | obj/ 4 | *.user -------------------------------------------------------------------------------- /WerFaultTool/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/about.png -------------------------------------------------------------------------------- /WerFaultTool/minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/minus.png -------------------------------------------------------------------------------- /WerFaultTool/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/plus.png -------------------------------------------------------------------------------- /WerFaultTool/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/checked.png -------------------------------------------------------------------------------- /AutoPicture/REL/latest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/AutoPicture/REL/latest.zip -------------------------------------------------------------------------------- /WerFaultTool/WerFault.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/WerFault.ico -------------------------------------------------------------------------------- /ControlColorExplorer/ico100.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/ControlColorExplorer/ico100.ico -------------------------------------------------------------------------------- /DirectionalKeyInput/mapping.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/DirectionalKeyInput/mapping.bmp -------------------------------------------------------------------------------- /DirectionalKeyInput/mapping0.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/DirectionalKeyInput/mapping0.bmp -------------------------------------------------------------------------------- /KeyboardSpeedReset/success.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/KeyboardSpeedReset/success.ico -------------------------------------------------------------------------------- /WEPExplorer/Binaries/latest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Binaries/latest.zip -------------------------------------------------------------------------------- /WEPExplorer/Explorer/ico101.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Explorer/ico101.ico -------------------------------------------------------------------------------- /WerFaultTool/RELEASES/crash.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/RELEASES/crash.exe -------------------------------------------------------------------------------- /WerFaultTool/RELEASES/v1.0.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/RELEASES/v1.0.0.zip -------------------------------------------------------------------------------- /WerFaultTool/Scratch/links.txt: -------------------------------------------------------------------------------- 1 | https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx -------------------------------------------------------------------------------- /Wizmo/BINARIES/Wizmo03062019.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/Wizmo/BINARIES/Wizmo03062019.zip -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Tools/cli.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Explorer/Tools/cli.exe -------------------------------------------------------------------------------- /WerFaultTool/Scratch/WerFault.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/Scratch/WerFault.reg -------------------------------------------------------------------------------- /DirectionalKeyInput/BINARIES/v0000.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/DirectionalKeyInput/BINARIES/v0000.zip -------------------------------------------------------------------------------- /WerFaultTool/RELEASES/WerFaultTool.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/RELEASES/WerFaultTool.exe -------------------------------------------------------------------------------- /WEPExplorer/Binaries/WEPExplore_v1.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Binaries/WEPExplore_v1.0.zip -------------------------------------------------------------------------------- /WEPExplorer/Binaries/WEPExplore_v1.1.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Binaries/WEPExplore_v1.1.1.zip -------------------------------------------------------------------------------- /WEPExplorer/Binaries/WEPExplore_v1.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Binaries/WEPExplore_v1.1.zip -------------------------------------------------------------------------------- /WEPExplorer/Binaries/WEPExplore_v1.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WEPExplorer/Binaries/WEPExplore_v1.2.zip -------------------------------------------------------------------------------- /WerFaultTool/Scratch/werfaulttool-gui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/WerFaultTool/Scratch/werfaulttool-gui.png -------------------------------------------------------------------------------- /KeyboardSpeedReset/BINARIES/KeyboardSpeedReset.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/KeyboardSpeedReset/BINARIES/KeyboardSpeedReset.zip -------------------------------------------------------------------------------- /WEPExplorer/.gitignore: -------------------------------------------------------------------------------- 1 | Binaries/ 2 | .vs/ 3 | Release/ 4 | Debug/ 5 | *.ipch 6 | *.sdf 7 | *.opensdf 8 | *.opendb 9 | *.aps 10 | *.vcxproj.user -------------------------------------------------------------------------------- /ControlColorExplorer/BINARIES/ControlColorExplorer.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xeb/WinTools/HEAD/ControlColorExplorer/BINARIES/ControlColorExplorer.zip -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12 FATAL_ERROR) 2 | 3 | project(WinTools) 4 | add_subdirectory(LoadDll) 5 | add_subdirectory(WorkingSet) 6 | add_subdirectory(Wizmo) -------------------------------------------------------------------------------- /WerFaultTool/Scratch/crash.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() 5 | { 6 | printf("Press any key to crash..."); 7 | _getch(); 8 | volatile char *x = 0; 9 | return *x; 10 | } -------------------------------------------------------------------------------- /WerFaultTool/crash/crash.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() 5 | { 6 | printf("Press any key to crash..."); 7 | _getch(); 8 | volatile char *x = 0; 9 | return *x; 10 | } -------------------------------------------------------------------------------- /ControlColorExplorer/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /WorkingSet/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12 FATAL_ERROR) 2 | project(WorkingSet) 3 | 4 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") 5 | 6 | add_executable(workingset main.cpp) 7 | 8 | add_library(DummyDll SHARED dummydll.cpp) -------------------------------------------------------------------------------- /WorkingSet/prep-cmake.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: check the Batchography book 4 | 5 | setlocal 6 | 7 | if not exist build cmake -B build 8 | 9 | 10 | if "%1"=="build" cmake --build build --config Release 11 | 12 | echo. 13 | echo All done! 14 | echo. 15 | -------------------------------------------------------------------------------- /AutoPicture/README.md: -------------------------------------------------------------------------------- 1 | # AutoPicture 2 | 3 | This tool automatically re-renders the picture file name passed as a command line argument. 4 | It comes handy when you have another tool that keeps regenerating the picture and you want to preview that picture as soon as it loads. -------------------------------------------------------------------------------- /AutoPicture/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/CheckBoxComboBox.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ShowAllFiles 5 | 6 | -------------------------------------------------------------------------------- /WerFaultTool/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ControlColorExplorer/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DirectionalKeyInput/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DirectionalKeyInput/mapping.txt: -------------------------------------------------------------------------------- 1 | ; DKI 2 | ; by Elias Bachaalany 3 | ; 4 | ; 4 keys mapping 5 | KEYS:ASDF 6 | 7 | ; Groupping of keys mapped to direction keys 8 | U:ABCD 9 | UR:EFGH 10 | R:IJKL 11 | DR:MNOP 12 | D:QRST 13 | DL:1234 14 | L:UVWX 15 | UL:YZ56 16 | UD:7890 17 | LR:5678 -------------------------------------------------------------------------------- /DirectionalKeyInput/mapping_v1.txt: -------------------------------------------------------------------------------- 1 | ; DKI 2 | ; by Elias Bachaalany 3 | ; 4 | ; 4 keys mapping 5 | KEYS:ASDF 6 | 7 | ; Groupping of keys mapped to direction keys 8 | U:ABC0 9 | UR:DEF9 10 | R:GHI 11 | DR:JKL 12 | D:MNO 13 | DL:PQR 14 | L:STUV 15 | UL:WXYZ 16 | UD:1234 17 | LR:5678 -------------------------------------------------------------------------------- /KeyboardSpeedReset/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WEPExplorer/README.md: -------------------------------------------------------------------------------- 1 | # WEPExplorer 2 | Windows Events Providers Explorer 3 | 4 | This tool is very helpful when you want to explore all the Windows Event providers installed on your system and what kind of metadata they have. 5 | The Explorer GUI sports a comprehensive filter that helps you sift through a complex provider's metadata. 6 | -------------------------------------------------------------------------------- /WEPExplorer/cli/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // WEV.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /WEPExplorer/cli/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /Wizmo/prep-cmake.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: check the Batchography book 4 | 5 | setlocal 6 | 7 | if not exist build cmake .. -A Win32 -B build 8 | 9 | if not exist build64 cmake -A x64 .. -B build64 10 | 11 | if "%1"=="build" ( 12 | cmake --build build --config Release 13 | cmake --build build64 --config Release 14 | ) 15 | 16 | echo. 17 | echo All done! 18 | echo. -------------------------------------------------------------------------------- /KeyboardSpeedReset/resources.txt: -------------------------------------------------------------------------------- 1 | http://msdn.microsoft.com/en-us/library/windows/desktop/aa373247(v=vs.85).aspx 2 | http://www.codeproject.com/Articles/39174/Automated-Power-Management-Operations-of-Windows-S 3 | http://codeidol.com/community/dotnet/dealing-with-operating-system-shutdown-power-manag/9173/ 4 | 5 | http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx -------------------------------------------------------------------------------- /WerFaultTool/README.md: -------------------------------------------------------------------------------- 1 | # WerFault GUI tool 2 | 3 | This is a simple tool that allows you to configure WerFault so it collects crash dumps of processes and store them locally. 4 | 5 | Please refer to http://lallouslab.net/2018/06/13/windows-error-report-local-crash-dump-collection-graphical-tool/ and https://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx 6 | 7 | ![GUI](Scratch/werfaulttool-gui.png) -------------------------------------------------------------------------------- /WEPExplorer/cli/gen.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: 4 | :: The Batchography book by Elias Bachaalany 5 | :: 6 | 7 | setlocal enabledelayedexpansion 8 | 9 | if "%1"=="grep" ( 10 | for /F "usebackq tokens=3*" %%a in (`findstr /B /C:"static LPCWSTR XML_" WEPExplorer.cpp`) DO ( 11 | set Z=%%b 12 | set Z=!Z: L"= "! 13 | echo public const string %%a !Z! 14 | ) 15 | goto :eof 16 | ) 17 | 18 | call %0 grep | sort | clip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WinTools 2 | 3 | A collection of free miscellaneous Windows tools 4 | 5 | - LoadDll: a command line tool to load libraries (for DLL debugging purposes) 6 | - WorkingSet: A project to test the QueryWorkingSetEx() 7 | - WERFault: A tool to setup the default WER config 8 | - Wizmo: A C++ command line utility for Windows (eject CD drive, mute/unmute/play sound/shutdown/reboot/etc.) 9 | - WEPExplorer: Windows Events Providers explorer 10 | - More... -------------------------------------------------------------------------------- /WerFaultTool/AboutForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | namespace WerFaultTool 11 | { 12 | public partial class AboutForm : Form 13 | { 14 | public AboutForm() 15 | { 16 | InitializeComponent(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/README.txt: -------------------------------------------------------------------------------- 1 | Keyboard Speed fix 2 | ====================== 3 | 4 | Description 5 | ------------- 6 | There seems to be a bug in Windows 8+. When the laptop wakes up from sleep, it forgets the keyboard speed settings 7 | 8 | Original authors: 9 | ------------------ 10 | Originally from: 11 | http://thumpers-hole.net/ 12 | via: 13 | http://superuser.com/questions/244960/windows-7-keyboard-repeat-rate-and-delay-are-reset-on-resume-from-standby-slee 14 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | 4 | namespace Explore 5 | { 6 | static class Program 7 | { 8 | /// 9 | /// The main entry point for the application. 10 | /// 11 | [STAThread] 12 | static void Main() 13 | { 14 | Application.EnableVisualStyles(); 15 | Application.SetCompatibleTextRenderingDefault(false); 16 | Application.Run(new WEPExplorer()); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /WerFaultTool/WerFaultTool.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | publish\ 5 | 6 | 7 | 8 | 9 | 10 | en-US 11 | false 12 | 13 | -------------------------------------------------------------------------------- /LoadDll/prep-cmake.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | :: check the Batchography book 4 | 5 | setlocal 6 | 7 | if not exist build ( 8 | mkdir build 9 | pushd build 10 | cmake -A Win32 .. 11 | popd 12 | ) 13 | 14 | if not exist build64 ( 15 | mkdir build64 16 | pushd build64 17 | cmake -A x64 .. 18 | popd 19 | ) 20 | 21 | if "%1"=="build" ( 22 | pushd build 23 | cmake --build . --config Release 24 | pushd ..\build64 25 | cmake --build . --config Release 26 | popd 27 | ) 28 | 29 | echo. 30 | echo All done! 31 | echo. -------------------------------------------------------------------------------- /KeyboardSpeedReset/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace KeyboardSpeedReset 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new Form1()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /LoadDll/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12 FATAL_ERROR) 2 | project(LoadDll) 3 | 4 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") 5 | 6 | add_executable(LoadDll LoadDll.cpp) 7 | 8 | # Determine the system architecture 9 | if(CMAKE_SIZEOF_VOID_P EQUAL 4) 10 | set(ARCH_SUFFIX "32") 11 | elseif(CMAKE_SIZEOF_VOID_P EQUAL 8) 12 | set(ARCH_SUFFIX "64") 13 | else() 14 | message(FATAL_ERROR "Unsupported system architecture") 15 | endif() 16 | 17 | set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "${PROJECT_NAME}${ARCH_SUFFIX}") 18 | -------------------------------------------------------------------------------- /DirectionalKeyInput/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace DirInput 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main(string [] args) 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | KeyboardForm f = new KeyboardForm(); 18 | f.args = args; 19 | Application.Run(f); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /WerFaultTool/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace WerFaultTool 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new WerFaultGUI()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /DirectionalKeyInput/NotepadForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | 9 | namespace DirInput 10 | { 11 | public partial class NotepadForm : Form 12 | { 13 | public NotepadForm() 14 | { 15 | InitializeComponent(); 16 | } 17 | 18 | public Control GetEditControl() 19 | { 20 | return textBox1; 21 | } 22 | 23 | private void Form2_Load(object sender, EventArgs e) 24 | { 25 | 26 | } 27 | 28 | } 29 | } -------------------------------------------------------------------------------- /DirectionalKeyInput/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /WEPExplorer/cli/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #pragma comment(lib, "wevtapi.lib") 25 | -------------------------------------------------------------------------------- /ControlColorExplorer/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace WindowsFormsApplication1 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// The main entry point for the application. 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new frmColorExplorer()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /WEPExplorer/cli/cli.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /out c:\temp\all.xml 5 | WindowsLocalDebugger 6 | 7 | 8 | /meta /eventmeta /name Ntfs /out c:\temp\all.xml 9 | WindowsLocalDebugger 10 | 11 | -------------------------------------------------------------------------------- /AutoPicture/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Windows.Forms; 3 | 4 | namespace AutoPictureApp 5 | { 6 | static class Program 7 | { 8 | /// 9 | /// The main entry point for the application. 10 | /// 11 | [STAThread] 12 | static void Main(string[] args) 13 | { 14 | if (args.Length == 0) 15 | { 16 | MessageBox.Show("No picture file specified!"); 17 | return; 18 | } 19 | 20 | Application.EnableVisualStyles(); 21 | Application.SetCompatibleTextRenderingDefault(false); 22 | Application.Run(new AutoPictureForm(args[0])); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /WEPExplorer/cli/WEPExplorer.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | /meta /name Microsoft-Windows-WinINet /out c:\temp\z.xml 5 | WindowsLocalDebugger 6 | 7 | 8 | /meta /name Microsoft-Windows-WinINet /out c:\temp\z.xml 9 | WindowsLocalDebugger 10 | 11 | -------------------------------------------------------------------------------- /Wizmo/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.12) 2 | project(Wizmo VERSION 1.0) 3 | 4 | # Define executable target 5 | add_executable(${PROJECT_NAME} 6 | main.cpp 7 | Wizmo.cpp Wizmo.h) 8 | 9 | # Use the multithreaded, static version of the runtime library for Release builds 10 | if(MSVC) 11 | target_compile_options(${PROJECT_NAME} PRIVATE 12 | $<$:/MT> # for compiling 13 | $<$>:/MD> # default to /MD for other configurations 14 | ) 15 | endif() 16 | 17 | # Set target properties to output different executable names based on architecture 18 | if(CMAKE_GENERATOR_PLATFORM MATCHES "x64") 19 | set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "${PROJECT_NAME}64") 20 | else() 21 | set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "${PROJECT_NAME}32") 22 | endif() 23 | -------------------------------------------------------------------------------- /SendConsoleKeys/send_console_keys.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #pragma comment(lib, "user32") 4 | 5 | //------------------------------------------------------------------------- 6 | int main(int argc, char *argv[]) 7 | { 8 | if (argc < 3) 9 | { 10 | printf("send_console_keys WindowTitle KeysToSend\n"); 11 | return -1; 12 | } 13 | 14 | HWND hwndTarget = FindWindowA("ConsoleWindowClass", argv[1]); 15 | if (hwndTarget == nullptr) 16 | { 17 | printf("Could not find window!\n"); 18 | return -2; 19 | } 20 | else 21 | { 22 | char *cmd = argv[2]; 23 | if (*cmd != '\0') 24 | { 25 | for (; *cmd != '\0'; ++cmd) 26 | SendMessageA(hwndTarget, WM_CHAR, *cmd, 0); 27 | 28 | SendMessageA(hwndTarget, WM_CHAR, '\r', 0); 29 | } 30 | } 31 | 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /DirectionalKeyInput/stats.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | New Document 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/readme.txt: -------------------------------------------------------------------------------- 1 | =================== 2 | Setup 3 | =================== 4 | Compile the "cli" project and copy the produced "cli.exe" tool to the "Explorer\Tools" folder. 5 | The external utility "cli.exe" will be used by the Explorer GUI. 6 | 7 | 8 | =================== 9 | GUI Usage 10 | =================== 11 | 12 | 1. Run the Windows Events Providers Explorer from a directory with write-permissions. 13 | 2. Double click (or press ENTER) on a provider name to list its metadata 14 | 3. Play with the providers filters and then press "Apply" to update the metadata listing 15 | 4. Press Ctrl-I in the metadata listing to view the metadata template XML information 16 | 17 | =================== 18 | Troubleshooting 19 | =================== 20 | 21 | 22 | Deleting the cache 23 | -------------------- 24 | The Explorer utility creates a folder called "Providers". It contains the metadata XML cache files for all the providers (All.xml) and for individual providers. 25 | You may want to delete this folder to clear the cache and start over -------------------------------------------------------------------------------- /FixCodeMarkers/FixCodeMarkers.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2020 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "FixCodeMarkers", "FixCodeMarkers.pyproj", "{EC68540D-42E7-46CF-BC6C-F11A7F85E467}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {EC68540D-42E7-46CF-BC6C-F11A7F85E467}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {EC68540D-42E7-46CF-BC6C-F11A7F85E467}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | GlobalSection(ExtensibilityGlobals) = postSolution 21 | SolutionGuid = {6A5A319C-F571-4E06-8945-E7BC24658B00} 22 | EndGlobalSection 23 | EndGlobal 24 | -------------------------------------------------------------------------------- /DirectionalKeyInput/DirInput.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30723.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DirInput", "DirInput.csproj", "{83CFBD87-DEC4-4A06-B7BD-1CD48A962403}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {83CFBD87-DEC4-4A06-B7BD-1CD48A962403}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {83CFBD87-DEC4-4A06-B7BD-1CD48A962403}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {83CFBD87-DEC4-4A06-B7BD-1CD48A962403}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {83CFBD87-DEC4-4A06-B7BD-1CD48A962403}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /WEPExplorer/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 lallouslab.net 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/KeyboardSpeedReset.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KeyboardSpeedReset", "KeyboardSpeedReset.csproj", "{67332E5B-C136-40A3-A564-7EA562E55F6B}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {67332E5B-C136-40A3-A564-7EA562E55F6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {67332E5B-C136-40A3-A564-7EA562E55F6B}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {67332E5B-C136-40A3-A564-7EA562E55F6B}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {67332E5B-C136-40A3-A564-7EA562E55F6B}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /ControlColorExplorer/ControlColorExplorer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlColorExplorer", "ControlColorExplorer.csproj", "{76592021-3BF6-41A8-AFC6-C7F9DF67817C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {76592021-3BF6-41A8-AFC6-C7F9DF67817C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {76592021-3BF6-41A8-AFC6-C7F9DF67817C}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {76592021-3BF6-41A8-AFC6-C7F9DF67817C}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {76592021-3BF6-41A8-AFC6-C7F9DF67817C}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Elias Bachaalany 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /AutoPicture/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace AutoPicture.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /AutoPicture/AutoPicture.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.271 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoPicture", "AutoPicture.csproj", "{C2CA5410-2C5E-449F-BB0B-29CF61469496}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {C2CA5410-2C5E-449F-BB0B-29CF61469496}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {C2CA5410-2C5E-449F-BB0B-29CF61469496}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {C2CA5410-2C5E-449F-BB0B-29CF61469496}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {C2CA5410-2C5E-449F-BB0B-29CF61469496}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {62C403AB-673E-4384-9150-6D4EB7C8582D} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /DirectionalKeyInput/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18449 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace DirInput.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Explore.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34014 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace KeyboardSpeedReset.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /WerFaultTool/WerFaultTool.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27703.2026 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WerFaultTool", "WerFaultTool.csproj", "{EA072B05-A1F6-4337-9079-F7D074F8E0A2}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {EA072B05-A1F6-4337-9079-F7D074F8E0A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {EA072B05-A1F6-4337-9079-F7D074F8E0A2}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {EA072B05-A1F6-4337-9079-F7D074F8E0A2}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {EA072B05-A1F6-4337-9079-F7D074F8E0A2}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {9F630257-3329-4F45-A364-495B39E81865} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /ControlColorExplorer/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ControlColorExplorer.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /WerFaultTool/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WerFaultTool.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/CheckBoxComboBox.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace PresentationControls 2 | { 3 | partial class CheckBoxComboBox 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Component Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | components = new System.ComponentModel.Container(); 32 | } 33 | 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Wizmo/Wizmo.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 4 | #define _WIN32_WINNT 0x0500 5 | #define _CRT_SECURE_NO_WARNINGS 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #define __MYDEBUG 12 | 13 | class CWizmo 14 | { 15 | private: 16 | HINSTANCE m_hInstance; 17 | HWND m_hwndCoverage; 18 | BOOL m_bForce; 19 | LPTSTR m_szMachineName; 20 | 21 | bool IsWinNT(); 22 | void AdjustShutdownPrivilege(); 23 | bool MakeCoverageWindow(); 24 | bool MyExitWindowsEx(UINT Flags); 25 | void SpeakersAdjust(int nValue, int aControlType); 26 | public: 27 | CWizmo(); 28 | static void ShowHelp(); 29 | void Blank(); 30 | void StandBy(); 31 | void Hibernate(); 32 | void Lock(); 33 | void LogOff(); 34 | void ShutDown(); 35 | void Exit(); 36 | void InitShutdown(LPTSTR Message, DWORD timeOut, BOOL bReboot); 37 | void AbortShutdown(); 38 | void SetMasterVolume(UINT nVolume); 39 | void MuteMasterVolume(bool bMute); 40 | void SetWaveVolume(UINT nVolume); 41 | void PlayFile(LPCTSTR lpFile); 42 | void OpenCloseDrive(char cDrive, bool bOpenDrive); 43 | void Reboot(); 44 | void MonitorOff(); 45 | }; 46 | -------------------------------------------------------------------------------- /WEPExplorer/cli/WEPExplorer.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | Header Files 20 | 21 | 22 | Header Files 23 | 24 | 25 | 26 | 27 | Source Files 28 | 29 | 30 | Source Files 31 | 32 | 33 | -------------------------------------------------------------------------------- /DirectionalKeyInput/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("DirInput")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("activemania")] 12 | [assembly: AssemblyProduct("DirInput")] 13 | [assembly: AssemblyCopyright("Copyright © activemania 2008")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("2f601393-befb-46d2-8cf0-17bf0e5e5d25")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("1.0.0.0")] 33 | [assembly: AssemblyFileVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/Popup.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace PresentationControls 2 | { 3 | partial class Popup 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing) 17 | { 18 | if (components != null) 19 | { 20 | components.Dispose(); 21 | } 22 | if (content != null) 23 | { 24 | System.Windows.Forms.Control _content = content; 25 | content = null; 26 | _content.Dispose(); 27 | } 28 | } 29 | base.Dispose(disposing); 30 | } 31 | 32 | #region Component Designer generated code 33 | 34 | /// 35 | /// Required method for Designer support - do not modify 36 | /// the contents of this method with the code editor. 37 | /// 38 | private void InitializeComponent() 39 | { 40 | components = new System.ComponentModel.Container(); 41 | } 42 | 43 | #endregion 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/PopupComboBox.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace PresentationControls 2 | { 3 | partial class PopupComboBox 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing) 17 | { 18 | if (components != null) 19 | { 20 | components.Dispose(); 21 | } 22 | if (dropDown != null) 23 | { 24 | dropDown.Dispose(); 25 | } 26 | } 27 | base.Dispose(disposing); 28 | } 29 | 30 | #region Component Designer generated code 31 | 32 | /// 33 | /// Required method for Designer support - do not modify 34 | /// the contents of this method with the code editor. 35 | /// 36 | private void InitializeComponent() 37 | { 38 | this.SuspendLayout(); 39 | // 40 | // PopupComboBox 41 | // 42 | this.ResumeLayout(false); 43 | 44 | } 45 | 46 | #endregion 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("TestCSharpApp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("TestCSharpApp")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("58aa6f02-0b44-460c-88f3-b52f0b8428fa")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CheckBoxComboBox")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("IT")] 12 | [assembly: AssemblyProduct("CheckBoxComboBox")] 13 | [assembly: AssemblyCopyright("Copyright © IT 2007")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("0b11e2be-4211-4d2a-9102-6847a56d6fd8")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /ControlColorExplorer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("ControlColorExplorer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("lallouslab.net")] 12 | [assembly: AssemblyProduct("ControlColorExplorer")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("76592021-3bf6-41a8-afc6-c7f9df67817c")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /WerFaultTool/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("WerFaultTool")] 9 | [assembly: AssemblyDescription("WerFault GUI tool")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("lallouslab.net")] 12 | [assembly: AssemblyProduct("WerFaultTool")] 13 | [assembly: AssemblyCopyright("Copyright © 2018 - Elias Bachaalany")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ea072b05-a1f6-4337-9079-f7d074f8e0a2")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Windows Events Providers Explorer v1.2.")] 9 | [assembly: AssemblyDescription("Windows Events Explorer")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("lallouslab.net")] 12 | [assembly: AssemblyProduct("WEPExplorer")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("66a8a92e-dd65-4776-8aa4-154600ee9159")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.2.1")] 36 | [assembly: AssemblyFileVersion("1.2.1")] 37 | -------------------------------------------------------------------------------- /AutoPicture/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Automatic Picture Renderer - lallouslab.net")] 9 | [assembly: AssemblyDescription("Automatically render an image on disk when it changes")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AutoPicture")] 13 | [assembly: AssemblyCopyright("Copyright © 2019")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("c2ca5410-2c5e-449f-bb0b-29cf61469496")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Wizmo/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "Wizmo.h" 6 | 7 | //---------------------------------------------------------------------------------- 8 | int main(int argc, char *argv[]) 9 | { 10 | // Should pause at exit? 11 | for (int iarg = 1; iarg < argc; ++iarg) 12 | { 13 | if (_stricmp(argv[iarg], "--pause") == 0) 14 | { 15 | atexit([] { printf("press any key to exit...\n"); _getch(); }); 16 | break; 17 | } 18 | } 19 | 20 | if (argc < 2) 21 | { 22 | CWizmo::ShowHelp(); 23 | return -1; 24 | } 25 | CWizmo w; 26 | 27 | 28 | const char *cmd = argv[1]; 29 | const char *param = argv[2]; 30 | 31 | if (_stricmp(cmd, "-monoff") == 0) 32 | w.MonitorOff(); 33 | else if (_stricmp(cmd, "-abortshutdown") == 0) 34 | w.AbortShutdown(); 35 | else if (param != NULL && _stricmp(cmd, "-play") == 0) 36 | w.PlayFile(param); 37 | else if (_stricmp(cmd, "-lock") == 0) 38 | w.Lock(); 39 | else if (_stricmp(cmd, "-hibernate") == 0) 40 | w.Hibernate(); 41 | else if (_stricmp(cmd, "-logoff") == 0) 42 | w.LogOff(); 43 | else if (_stricmp(cmd, "-mute") == 0) 44 | w.MuteMasterVolume(param == NULL ? true : (param[0] - '0' == 1)); 45 | else if (_stricmp(cmd, "-reboot") == 0) 46 | w.Reboot(); 47 | else if (_stricmp(cmd, "-blank") == 0) 48 | w.Blank(); 49 | else if (param != NULL && _stricmp(cmd, "-eject") == 0) 50 | w.OpenCloseDrive(param[0], true); 51 | else if (param != NULL && _stricmp(cmd, "-close") == 0) 52 | w.OpenCloseDrive(param[0], false); 53 | else 54 | { 55 | printf("Invalid usage!\n"); 56 | return -2; 57 | } 58 | return 0; 59 | } -------------------------------------------------------------------------------- /WorkingSet/dummydll.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | // These constructs below seem to force the VS compiler to generate individual code sections. 5 | // The reason I do that, is because I don't have much code to generate code pages. 6 | // Instead, we use section alignment as a trick to generate pages. 7 | 8 | template void dummy_func() 9 | { 10 | static const int ABC[100] = { 1, 2, 3, 0 }; 11 | printf("Something else %d!\n", ABC[4]); 12 | } 13 | 14 | #define STRINGIFY(a) #a 15 | #define CONCATS(a, b) STRINGIFY(a ## b) 16 | 17 | #define make_dummy_func(n) \ 18 | __pragma(code_seg(push, CONCATS(.text, n))) \ 19 | template<> void dummy_func() \ 20 | { \ 21 | printf("Func " #n "\n"); \ 22 | } \ 23 | __pragma(code_seg(pop) ) 24 | 25 | make_dummy_func(1) 26 | make_dummy_func(2) 27 | make_dummy_func(3) 28 | make_dummy_func(4) 29 | make_dummy_func(5) 30 | make_dummy_func(6) 31 | make_dummy_func(7) 32 | make_dummy_func(8) 33 | make_dummy_func(9) 34 | 35 | 36 | BOOL WINAPI DllMain( 37 | HINSTANCE hinstDLL, // handle to DLL module 38 | DWORD fdwReason, // reason for calling function 39 | LPVOID lpReserved) // reserved 40 | { 41 | // Perform actions based on the reason for calling. 42 | switch( fdwReason ) 43 | { 44 | case DLL_PROCESS_ATTACH: 45 | // Initialize once for each new process. 46 | // Return FALSE to fail DLL load. 47 | break; 48 | 49 | case DLL_THREAD_ATTACH: 50 | // Do thread-specific initialization. 51 | break; 52 | 53 | case DLL_THREAD_DETACH: 54 | // Do thread-specific cleanup. 55 | break; 56 | 57 | case DLL_PROCESS_DETACH: 58 | // Perform any necessary cleanup. 59 | break; 60 | } 61 | return TRUE; // Successful DLL_PROCESS_ATTACH. 62 | } -------------------------------------------------------------------------------- /WerFaultTool/Types.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace WerFaultTool 7 | { 8 | public enum _MINIDUMP_TYPE 9 | { 10 | MiniDumpNormal = 0x00000000, 11 | MiniDumpWithDataSegs = 0x00000001, 12 | MiniDumpWithFullMemory = 0x00000002, 13 | MiniDumpWithHandleData = 0x00000004, 14 | MiniDumpFilterMemory = 0x00000008, 15 | MiniDumpScanMemory = 0x00000010, 16 | MiniDumpWithUnloadedModules = 0x00000020, 17 | MiniDumpWithIndirectlyReferencedMemory = 0x00000040, 18 | MiniDumpFilterModulePaths = 0x00000080, 19 | MiniDumpWithProcessThreadData = 0x00000100, 20 | MiniDumpWithPrivateReadWriteMemory = 0x00000200, 21 | MiniDumpWithoutOptionalData = 0x00000400, 22 | MiniDumpWithFullMemoryInfo = 0x00000800, 23 | MiniDumpWithThreadInfo = 0x00001000, 24 | MiniDumpWithCodeSegs = 0x00002000, 25 | MiniDumpWithoutAuxiliaryState = 0x00004000, 26 | MiniDumpWithFullAuxiliaryState = 0x00008000, 27 | MiniDumpWithPrivateWriteCopyMemory = 0x00010000, 28 | MiniDumpIgnoreInaccessibleMemory = 0x00020000, 29 | MiniDumpWithTokenInformation = 0x00040000, 30 | MiniDumpWithModuleHeaders = 0x00080000, 31 | MiniDumpFilterTriage = 0x00100000, 32 | MiniDumpWithAvxXStateContext = 0x00200000, 33 | MiniDumpWithIptTrace = 0x00400000, 34 | } 35 | 36 | public class CustomFlagsDef 37 | { 38 | public string Name; 39 | public _MINIDUMP_TYPE Flag; 40 | public string Description; 41 | } 42 | 43 | public class WerFaultEntry 44 | { 45 | public string ImageName; 46 | public string DumpFolder; 47 | public int DumpCount = 0; 48 | public int DumpType = 0; 49 | public uint CustomDumpFlags = 0; 50 | 51 | public override string ToString() 52 | { 53 | return ImageName; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /FixCodeMarkers/FixCodeMarkers.pyproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Debug 4 | 2.0 5 | ec68540d-42e7-46cf-bc6c-f11a7f85e467 6 | . 7 | FixCodeMarkers.py 8 | 9 | 10 | . 11 | . 12 | FixCodeMarkers 13 | FixCodeMarkers 14 | Standard Python launcher 15 | --input C:\Users\elias\Projects\books\c#multi\threads\ThreadEx5\ThreadEx5.cs --output C:\Users\elias\Projects\books\c#multi\threads\ThreadEx5\ThreadEx5-a.cs -c 50 16 | False 17 | 18 | 19 | true 20 | false 21 | 22 | 23 | true 24 | false 25 | 26 | 27 | 28 | 29 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Form1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Text; 7 | using System.Windows.Forms; 8 | using System.Runtime.InteropServices; 9 | 10 | namespace KeyboardSpeedReset 11 | { 12 | public partial class Form1 : Form 13 | { 14 | [DllImport("user32.dll", EntryPoint = "SystemParametersInfo")] 15 | public static extern bool SystemParametersInfo(uint uiAction, uint uiParam, ref uint pvParam, uint fWinIni); 16 | 17 | public Form1() 18 | { 19 | InitializeComponent(); 20 | 21 | //Handle the PowerModeChangedEvent 22 | Microsoft.Win32.SystemEvents.PowerModeChanged += new Microsoft.Win32.PowerModeChangedEventHandler(SystemEvents_PowerModeChanged); 23 | } 24 | 25 | void SystemEvents_PowerModeChanged( 26 | object sender, 27 | Microsoft.Win32.PowerModeChangedEventArgs e) 28 | { 29 | if ( e.Mode == Microsoft.Win32.PowerModes.Resume) 30 | DoIt(); 31 | } 32 | 33 | private void DoIt() 34 | { 35 | // resume from standby event 36 | uint SPI_SETKEYBOARDSPEED = 0x000B; 37 | uint SPI_SETKEYBOARDDELAY = 0x0017; 38 | uint ReptSpeed = 31; 39 | uint Delay = 0; 40 | uint NotUsed = 0; 41 | 42 | SystemParametersInfo( 43 | SPI_SETKEYBOARDSPEED, 44 | ReptSpeed, 45 | ref NotUsed, 46 | 0); 47 | SystemParametersInfo( 48 | SPI_SETKEYBOARDDELAY, 49 | Delay, 50 | ref NotUsed, 51 | 0); 52 | } 53 | 54 | private void Form1_Shown(object sender, EventArgs e) 55 | { 56 | Hide(); 57 | } 58 | 59 | private void TrayIcone_MouseDoubleClick( 60 | object sender, 61 | MouseEventArgs e) 62 | { 63 | DoIt(); 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/NativeMethods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.Runtime.InteropServices; 4 | 5 | namespace PresentationControls 6 | { 7 | /// 8 | /// CodeProject.com "Simple pop-up control" "http://www.codeproject.com/cs/miscctrl/simplepopup.asp". 9 | /// 10 | internal static class NativeMethods 11 | { 12 | internal const int WM_NCHITTEST = 0x0084, 13 | WM_NCACTIVATE = 0x0086, 14 | WS_EX_NOACTIVATE = 0x08000000, 15 | HTTRANSPARENT = -1, 16 | HTLEFT = 10, 17 | HTRIGHT = 11, 18 | HTTOP = 12, 19 | HTTOPLEFT = 13, 20 | HTTOPRIGHT = 14, 21 | HTBOTTOM = 15, 22 | HTBOTTOMLEFT = 16, 23 | HTBOTTOMRIGHT = 17, 24 | WM_USER = 0x0400, 25 | WM_REFLECT = WM_USER + 0x1C00, 26 | WM_COMMAND = 0x0111, 27 | CBN_DROPDOWN = 7, 28 | WM_GETMINMAXINFO = 0x0024; 29 | 30 | internal static int HIWORD(int n) 31 | { 32 | return (n >> 16) & 0xffff; 33 | } 34 | 35 | internal static int HIWORD(IntPtr n) 36 | { 37 | return HIWORD(unchecked((int)(long)n)); 38 | } 39 | 40 | internal static int LOWORD(int n) 41 | { 42 | return n & 0xffff; 43 | } 44 | 45 | internal static int LOWORD(IntPtr n) 46 | { 47 | return LOWORD(unchecked((int)(long)n)); 48 | } 49 | 50 | [StructLayout(LayoutKind.Sequential)] 51 | internal struct MINMAXINFO 52 | { 53 | public Point reserved; 54 | public Size maxSize; 55 | public Point maxPosition; 56 | public Size minTrackSize; 57 | public Size maxTrackSize; 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /DirectionalKeyInput/NotepadForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace DirInput 2 | { 3 | partial class NotepadForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.textBox1 = new System.Windows.Forms.TextBox(); 32 | this.SuspendLayout(); 33 | // 34 | // textBox1 35 | // 36 | this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 37 | this.textBox1.Location = new System.Drawing.Point(12, 12); 38 | this.textBox1.Multiline = true; 39 | this.textBox1.Name = "textBox1"; 40 | this.textBox1.Size = new System.Drawing.Size(268, 249); 41 | this.textBox1.TabIndex = 0; 42 | // 43 | // Form2 44 | // 45 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 46 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 47 | this.ClientSize = new System.Drawing.Size(292, 273); 48 | this.Controls.Add(this.textBox1); 49 | this.Name = "Form2"; 50 | this.Text = "Notepad"; 51 | this.Load += new System.EventHandler(this.Form2_Load); 52 | this.ResumeLayout(false); 53 | this.PerformLayout(); 54 | 55 | } 56 | 57 | #endregion 58 | 59 | private System.Windows.Forms.TextBox textBox1; 60 | } 61 | } -------------------------------------------------------------------------------- /WEPExplorer/Explorer/SimpleListViewItemComparer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Windows.Forms; 4 | 5 | namespace WEPExplorer 6 | { 7 | public class SimpleListViewItemComparer : IComparer 8 | { 9 | private int m_iCol; 10 | private bool m_bAsc = true; 11 | private bool m_bIsNumeric = false; 12 | 13 | public bool Ascending 14 | { 15 | get { return m_bAsc; } 16 | set { m_bAsc = value; } 17 | } 18 | 19 | public int Column 20 | { 21 | get { return m_iCol; } 22 | set { m_iCol = value; } 23 | } 24 | 25 | public bool Numeric 26 | { 27 | get { return m_bIsNumeric; } 28 | set { m_bIsNumeric = value; } 29 | } 30 | 31 | public SimpleListViewItemComparer(int columnIndex) 32 | { 33 | Column = columnIndex; 34 | } 35 | 36 | public int Compare(object x, object y) 37 | { 38 | ListViewItem itemX = x as ListViewItem; 39 | ListViewItem itemY = y as ListViewItem; 40 | 41 | if (itemX == null && itemY == null) 42 | return 0; 43 | else if (itemX == null) 44 | return -1; 45 | else if (itemY == null) 46 | return 1; 47 | 48 | if (itemX == itemY) 49 | return 0; 50 | 51 | int Result; 52 | 53 | if (Numeric) 54 | { 55 | decimal itemXVal, itemYVal; 56 | 57 | if (!Decimal.TryParse(itemX.SubItems[Column].Text, out itemXVal)) 58 | itemXVal = 0; 59 | 60 | if (!Decimal.TryParse(itemY.SubItems[Column].Text, out itemYVal)) 61 | itemYVal = 0; 62 | 63 | Result = Decimal.Compare(itemXVal, itemYVal); 64 | } 65 | else 66 | { 67 | string itemXText = itemX.SubItems[Column].Text; 68 | string itemYText = itemY.SubItems[Column].Text; 69 | Result = String.Compare(itemXText, itemYText); 70 | } 71 | if (Ascending) 72 | return Result; 73 | else 74 | return -Result; 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /AutoPicture/AutoPictureForm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | using System.IO; 4 | using System.Windows.Forms; 5 | 6 | namespace AutoPictureApp 7 | { 8 | public partial class AutoPictureForm : Form 9 | { 10 | string _filename; 11 | 12 | public AutoPictureForm(string filename) 13 | { 14 | _filename = filename; 15 | InitializeComponent(); 16 | } 17 | 18 | private void Form1_Load(object sender, EventArgs e) 19 | { 20 | fileSystemWatcher1.Path = Path.GetDirectoryName(_filename); 21 | fileSystemWatcher1.Filter = Path.GetFileName(_filename); 22 | BackgroundImageLayout = ImageLayout.Stretch; 23 | refresh_image(); 24 | } 25 | 26 | private void fileSystemWatcher1_Created(object sender, System.IO.FileSystemEventArgs e) 27 | { 28 | refresh_image(); 29 | } 30 | 31 | private void schedule_retry() 32 | { 33 | tmrRetry.Enabled = true; 34 | } 35 | 36 | private void refresh_image() 37 | { 38 | try 39 | { 40 | if (File.Exists(_filename)) 41 | { 42 | var img = Image.FromStream(new MemoryStream(File.ReadAllBytes(_filename))); 43 | BackgroundImage = img; 44 | int dx = Width - ClientRectangle.Width; 45 | int dy = Height - ClientRectangle.Height; 46 | Width = img.Width + dx; 47 | Height = img.Height + dy; 48 | Text = string.Format("'{0}' loaded @ {1}", _filename, File.GetLastWriteTime(_filename)); 49 | } 50 | else 51 | { 52 | Text = String.Format("'{0} does not exist!", _filename); 53 | } 54 | } 55 | catch (Exception) 56 | { 57 | schedule_retry(); 58 | } 59 | } 60 | 61 | private void fileSystemWatcher1_Changed(object sender, FileSystemEventArgs e) 62 | { 63 | refresh_image(); 64 | } 65 | 66 | private void tmrRetry_Tick(object sender, EventArgs e) 67 | { 68 | tmrRetry.Enabled = false; 69 | refresh_image(); 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace KeyboardSpeedReset 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); 33 | this.button1 = new System.Windows.Forms.Button(); 34 | this.TrayIcone = new System.Windows.Forms.NotifyIcon(this.components); 35 | this.SuspendLayout(); 36 | 37 | // 38 | // TrayIcone 39 | // 40 | this.TrayIcone.Icon = ((System.Drawing.Icon)(resources.GetObject("TrayIcone.Icon"))); 41 | this.TrayIcone.Text = "Keyboard Fixer"; 42 | this.TrayIcone.Visible = true; 43 | this.TrayIcone.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TrayIcone_MouseDoubleClick); 44 | // 45 | // Form1 46 | // 47 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 48 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 49 | this.ClientSize = new System.Drawing.Size(284, 262); 50 | this.Controls.Add(this.button1); 51 | this.Name = "Form1"; 52 | this.Text = "Form1"; 53 | this.Shown += new System.EventHandler(this.Form1_Shown); 54 | this.ResumeLayout(false); 55 | 56 | } 57 | 58 | #endregion 59 | 60 | private System.Windows.Forms.Button button1; 61 | private System.Windows.Forms.NotifyIcon TrayIcone; 62 | } 63 | } 64 | 65 | -------------------------------------------------------------------------------- /WerFaultTool/AboutForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace WerFaultTool 2 | { 3 | partial class AboutForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm)); 32 | this.richTextBox1 = new System.Windows.Forms.RichTextBox(); 33 | this.SuspendLayout(); 34 | // 35 | // richTextBox1 36 | // 37 | this.richTextBox1.BackColor = System.Drawing.Color.AntiqueWhite; 38 | this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; 39 | this.richTextBox1.Location = new System.Drawing.Point(0, 0); 40 | this.richTextBox1.Name = "richTextBox1"; 41 | this.richTextBox1.Size = new System.Drawing.Size(552, 111); 42 | this.richTextBox1.TabIndex = 0; 43 | this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); 44 | // 45 | // AboutForm 46 | // 47 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 48 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 49 | this.ClientSize = new System.Drawing.Size(552, 111); 50 | this.Controls.Add(this.richTextBox1); 51 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 52 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 53 | this.MaximizeBox = false; 54 | this.MinimizeBox = false; 55 | this.Name = "AboutForm"; 56 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 57 | this.Text = "About"; 58 | this.ResumeLayout(false); 59 | 60 | } 61 | 62 | #endregion 63 | 64 | private System.Windows.Forms.RichTextBox richTextBox1; 65 | } 66 | } -------------------------------------------------------------------------------- /AutoPicture/AutoPictureForm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace AutoPictureApp 2 | { 3 | partial class AutoPictureForm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.fileSystemWatcher1 = new System.IO.FileSystemWatcher(); 33 | this.tmrRetry = new System.Windows.Forms.Timer(this.components); 34 | ((System.ComponentModel.ISupportInitialize)(this.fileSystemWatcher1)).BeginInit(); 35 | this.SuspendLayout(); 36 | // 37 | // fileSystemWatcher1 38 | // 39 | this.fileSystemWatcher1.EnableRaisingEvents = true; 40 | this.fileSystemWatcher1.SynchronizingObject = this; 41 | this.fileSystemWatcher1.Changed += new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Changed); 42 | this.fileSystemWatcher1.Created += new System.IO.FileSystemEventHandler(this.fileSystemWatcher1_Created); 43 | // 44 | // tmrRetry 45 | // 46 | this.tmrRetry.Interval = 500; 47 | this.tmrRetry.Tick += new System.EventHandler(this.tmrRetry_Tick); 48 | // 49 | // AutoPictureForm 50 | // 51 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 52 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 53 | this.ClientSize = new System.Drawing.Size(372, 288); 54 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; 55 | this.Name = "AutoPictureForm"; 56 | this.Text = "Automatic picture renderer - lallouslab.net"; 57 | this.Load += new System.EventHandler(this.Form1_Load); 58 | ((System.ComponentModel.ISupportInitialize)(this.fileSystemWatcher1)).EndInit(); 59 | this.ResumeLayout(false); 60 | 61 | } 62 | 63 | #endregion 64 | private System.IO.FileSystemWatcher fileSystemWatcher1; 65 | private System.Windows.Forms.Timer tmrRetry; 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /WerFaultTool/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /AutoPicture/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace AutoPicture.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AutoPicture.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Explore.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Explore.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34014 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace KeyboardSpeedReset.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("KeyboardSpeedReset.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /ControlColorExplorer/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace ControlColorExplorer.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ControlColorExplorer.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Utils.cs: -------------------------------------------------------------------------------- 1 | using System.Diagnostics; 2 | using System.IO; 3 | 4 | /* ----------------------------------------------------------------------------- 5 | * Copyright (c) Elias Bachaalany 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following conditions 10 | * are met: 11 | * 1. Redistributions of source code must retain the above copyright 12 | * notice, this list of conditions and the following disclaimer. 13 | * 2. Redistributions in binary form must reproduce the above copyright 14 | * notice, this list of conditions and the following disclaimer in the 15 | * documentation and/or other materials provided with the distribution. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 | * SUCH DAMAGE. 28 | * ----------------------------------------------------------------------------- 29 | */ 30 | namespace Explore 31 | { 32 | public static class Utils 33 | { 34 | public static string GetCurrentAsmDirectory() 35 | { 36 | return Path.GetDirectoryName((new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location)).FullName); 37 | } 38 | } 39 | 40 | public static class Cli 41 | { 42 | const string CLI_PATH = @"Tools\cli.exe"; 43 | 44 | public static bool GetProviders(string Outfile) 45 | { 46 | Process p = new Process(); 47 | p.StartInfo = new ProcessStartInfo() 48 | { 49 | Arguments = "/out \"" + Outfile + "\"", 50 | FileName = CLI_PATH, 51 | UseShellExecute = false, 52 | CreateNoWindow = true 53 | }; 54 | 55 | p.Start(); 56 | p.WaitForExit(); 57 | return p.ExitCode == 0; 58 | } 59 | 60 | public static bool GetProviderMetadata( 61 | string ProviderName, 62 | string ProvidersFileName) 63 | { 64 | Process p = new Process(); 65 | p.StartInfo = new ProcessStartInfo() 66 | { 67 | Arguments = "/meta /eventmeta /name \"" + ProviderName + "\" /out \"" + ProvidersFileName + "\"", 68 | FileName = CLI_PATH, 69 | UseShellExecute = false, 70 | CreateNoWindow = true 71 | }; 72 | 73 | p.Start(); 74 | p.WaitForExit(); 75 | return p.ExitCode == 0; 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /LoadDll/LoadDll.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | LPSTR GetErrorAsString(DWORD error_code) 6 | { 7 | LPSTR message_buffer = nullptr; 8 | size_t size = FormatMessageA( 9 | FORMAT_MESSAGE_ALLOCATE_BUFFER | 10 | FORMAT_MESSAGE_FROM_SYSTEM | 11 | FORMAT_MESSAGE_IGNORE_INSERTS, 12 | NULL, 13 | error_code, 14 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 15 | reinterpret_cast(&message_buffer), 16 | 0, 17 | NULL 18 | ); 19 | 20 | return message_buffer; 21 | } 22 | 23 | //------------------------------------------------------------------------- 24 | int main(int argc, char *argv[]) 25 | { 26 | if (argc < 2) 27 | { 28 | printf("Please pass a library or libraries to load! (build" __DATE__ " " __TIME__ "\n"); 29 | return -1; 30 | } 31 | 32 | size_t nMaxDlls = size_t(argc) - 1; 33 | size_t nLoadDlls = 0; 34 | HMODULE *hMods = new HMODULE[nMaxDlls]; 35 | char **dll_names = new char *[nMaxDlls]; 36 | 37 | // Loading stage 38 | for (int iArg=1, iMod=0; iArg < argc; ++iArg) 39 | { 40 | const char *dll_name = argv[iArg]; 41 | if (_stricmp(dll_name, "--pause") == 0) 42 | { 43 | printf("Pausing...press any key to continue"); 44 | _getch(); 45 | printf("\n"); 46 | continue; 47 | } 48 | else if (_stricmp(dll_name, "--break") == 0) 49 | { 50 | printf("breakpoint...attach a debugger then press any key to continue"); 51 | _getch(); 52 | ::DebugBreak(); 53 | printf("\n"); 54 | continue; 55 | } 56 | __try 57 | { 58 | HMODULE hMod = LoadLibraryA(dll_name); 59 | if (hMod == nullptr) 60 | { 61 | auto gle = GetLastError(); 62 | auto message_buffer = GetErrorAsString(gle); 63 | printf("#%d failed to load '%s'...skipped with error %d: %s", 64 | iArg, 65 | dll_name, 66 | gle, 67 | message_buffer); 68 | LocalFree(message_buffer); 69 | 70 | continue; 71 | } 72 | 73 | printf("#%d %p: '%s' loaded...\n", iArg, hMod, dll_name); 74 | 75 | hMods[iMod] = hMod; 76 | dll_names[iMod] = _strdup(dll_name); 77 | ++iMod; 78 | } 79 | __except (EXCEPTION_EXECUTE_HANDLER) 80 | { 81 | printf("#%d exception occurred while loading '%s'...skipped", iArg, dll_name); 82 | (void)_getch(); 83 | continue; 84 | } 85 | } 86 | 87 | // Pause and unload 88 | printf("\nPress any key to terminate and unload..."); 89 | (void)_getch(); 90 | printf("\n"); 91 | 92 | for (size_t i=0; i < nLoadDlls; ++i) 93 | { 94 | HMODULE hMod = hMods[i]; 95 | FreeLibrary(hMod); 96 | printf("%p '%s', library unloaded...\n", hMod, dll_names[i]); 97 | free(dll_names[i]); 98 | } 99 | 100 | delete[] hMods; 101 | delete[] dll_names; 102 | 103 | return 0; 104 | } -------------------------------------------------------------------------------- /FixCodeMarkers/FixCodeMarkers.py: -------------------------------------------------------------------------------- 1 | """ 2 | TODO: 3 | ------ 4 | 5 | -- Allow numbering per group. For instance: 6 | 7 | /* A (1) */ 8 | /* A (2) */ 9 | /* B (1) */ 10 | /* (1) */ 11 | /* (2) */ 12 | 13 | That means 3 numbering groups in total 14 | 15 | -- Allow switch to remove instead of injecting 16 | """ 17 | import os, sys, re, codecs 18 | from optparse import OptionParser 19 | 20 | marker_re = re.compile(r"\/\*[^\(]*\(([\d]+|\*)[^\)]*\)\s*\*\/") 21 | 22 | #--------------------------------------------------------------------- 23 | def parse_args(): 24 | """ 25 | Parses the arguments and returns a triplet 26 | (bool, options, args) 27 | The first bool designates whether arguments satisfy the program. If it is false, then the caller should terminate the program 28 | """ 29 | parser = OptionParser('usage: %prog [options]') 30 | 31 | parser.add_option('-i', '--input', 32 | type="string", 33 | dest='input_file', 34 | help='Input file name', 35 | default=None) 36 | 37 | parser.add_option('-o', '--output', 38 | type="string", 39 | dest='output_file', 40 | help='Output file name', 41 | default=None) 42 | 43 | parser.add_option('-c', '--col', 44 | type="int", 45 | dest='col', 46 | help='Column location', 47 | default=None) 48 | 49 | try: 50 | (options, args) = parser.parse_args() 51 | except SystemExit: 52 | exit(0) 53 | except: 54 | print("Error while parsing the arguments. Trying running the tool again with the -h or --help switch") 55 | return (False, None, None) 56 | 57 | 58 | return (True, options, args) 59 | 60 | 61 | # ---------------------------------------------------------- 62 | def main(args): 63 | try: 64 | ok, options, args = parse_args() 65 | except SystemExit: 66 | exit(0) 67 | except Exception as e: 68 | print("Error while parsing the arguments. Trying running the tool again with the -h or --help switch") 69 | return 70 | 71 | try: 72 | f = codecs.open(options.input_file, "r", encoding = "utf-8") 73 | except: 74 | print("Failed to open input file %s" % args[1]) 75 | 76 | lines = f.readlines() 77 | f.close() 78 | 79 | try: 80 | f = codecs.open(options.output_file, "w", encoding = "utf-8") 81 | except: 82 | print("Failed to create output file for writing: %s" % options.output_file) 83 | return 84 | 85 | 86 | nmatch = 1 87 | inject_point = options.col 88 | for line in lines: 89 | line = line.rstrip('\n').rstrip('\r') 90 | m = marker_re.search(line) 91 | if m is not None: 92 | line = line[:m.start()] + line[m.end():] 93 | nline = len(line) 94 | if nline <= inject_point: 95 | line = line + ((inject_point - nline) * ' ') 96 | 97 | line += ' /* (%d) */' % (nmatch) 98 | 99 | nmatch += 1 100 | 101 | f.write(line + os.linesep) 102 | 103 | f.close() 104 | 105 | print("Success!") 106 | 107 | # ---------------------------------------------------------- 108 | if __name__ == '__main__': 109 | main(sys.argv) 110 | 111 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/GripBounds.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Drawing; 3 | 4 | namespace PresentationControls 5 | { 6 | /// 7 | /// CodeProject.com "Simple pop-up control" "http://www.codeproject.com/cs/miscctrl/simplepopup.asp". 8 | /// 9 | internal struct GripBounds 10 | { 11 | private const int GripSize = 6; 12 | private const int CornerGripSize = GripSize << 1; 13 | 14 | public GripBounds(Rectangle clientRectangle) 15 | { 16 | this.clientRectangle = clientRectangle; 17 | } 18 | 19 | private Rectangle clientRectangle; 20 | public Rectangle ClientRectangle 21 | { 22 | get { return clientRectangle; } 23 | //set { clientRectangle = value; } 24 | } 25 | 26 | public Rectangle Bottom 27 | { 28 | get 29 | { 30 | Rectangle rect = ClientRectangle; 31 | rect.Y = rect.Bottom - GripSize + 1; 32 | rect.Height = GripSize; 33 | return rect; 34 | } 35 | } 36 | 37 | public Rectangle BottomRight 38 | { 39 | get 40 | { 41 | Rectangle rect = ClientRectangle; 42 | rect.Y = rect.Bottom - CornerGripSize + 1; 43 | rect.Height = CornerGripSize; 44 | rect.X = rect.Width - CornerGripSize + 1; 45 | rect.Width = CornerGripSize; 46 | return rect; 47 | } 48 | } 49 | 50 | public Rectangle Top 51 | { 52 | get 53 | { 54 | Rectangle rect = ClientRectangle; 55 | rect.Height = GripSize; 56 | return rect; 57 | } 58 | } 59 | 60 | public Rectangle TopRight 61 | { 62 | get 63 | { 64 | Rectangle rect = ClientRectangle; 65 | rect.Height = CornerGripSize; 66 | rect.X = rect.Width - CornerGripSize + 1; 67 | rect.Width = CornerGripSize; 68 | return rect; 69 | } 70 | } 71 | 72 | public Rectangle Left 73 | { 74 | get 75 | { 76 | Rectangle rect = ClientRectangle; 77 | rect.Width = GripSize; 78 | return rect; 79 | } 80 | } 81 | 82 | public Rectangle BottomLeft 83 | { 84 | get 85 | { 86 | Rectangle rect = ClientRectangle; 87 | rect.Width = CornerGripSize; 88 | rect.Y = rect.Height - CornerGripSize + 1; 89 | rect.Height = CornerGripSize; 90 | return rect; 91 | } 92 | } 93 | 94 | public Rectangle Right 95 | { 96 | get 97 | { 98 | Rectangle rect = ClientRectangle; 99 | rect.X = rect.Right - GripSize + 1; 100 | rect.Width = GripSize; 101 | return rect; 102 | } 103 | } 104 | 105 | public Rectangle TopLeft 106 | { 107 | get 108 | { 109 | Rectangle rect = ClientRectangle; 110 | rect.Width = CornerGripSize; 111 | rect.Height = CornerGripSize; 112 | return rect; 113 | } 114 | } 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /AutoPicture/AutoPicture.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {C2CA5410-2C5E-449F-BB0B-29CF61469496} 8 | WinExe 9 | AutoPicture 10 | AutoPicture 11 | v4.0 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | Form 47 | 48 | 49 | AutoPictureForm.cs 50 | 51 | 52 | 53 | 54 | AutoPictureForm.cs 55 | 56 | 57 | ResXFileCodeGenerator 58 | Resources.Designer.cs 59 | Designer 60 | 61 | 62 | True 63 | Resources.resx 64 | True 65 | 66 | 67 | SettingsSingleFileGenerator 68 | Settings.Designer.cs 69 | 70 | 71 | True 72 | Settings.settings 73 | True 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /DirectionalKeyInput/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18449 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace DirInput.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DirInput.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap mapping { 67 | get { 68 | object obj = ResourceManager.GetObject("mapping", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap mapping0 { 77 | get { 78 | object obj = ResourceManager.GetObject("mapping0", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/CheckBoxComboBox.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 9.0.20404 7 | 2.0 8 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C} 9 | Library 10 | Properties 11 | CheckBoxComboBox 12 | CheckBoxComboBox 13 | v3.5 14 | 512 15 | 16 | 17 | 18 | 19 | 3.5 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | 40 | 41 | 3.5 42 | 43 | 44 | 45 | 46 | 3.5 47 | 48 | 49 | 50 | 51 | 52 | 53 | Component 54 | 55 | 56 | CheckBoxComboBox.cs 57 | 58 | 59 | 60 | 61 | 62 | 63 | Component 64 | 65 | 66 | Popup.cs 67 | 68 | 69 | Component 70 | 71 | 72 | PopupComboBox.cs 73 | 74 | 75 | 76 | 77 | 78 | PopupComboBox.cs 79 | Designer 80 | 81 | 82 | 83 | 90 | -------------------------------------------------------------------------------- /WerFaultTool/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace WerFaultTool.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Returns the cached ResourceManager instance used by this class. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WerFaultTool.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Overrides the current thread's CurrentUICulture property for all 51 | /// resource lookups using this strongly typed resource class. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | 63 | /// 64 | /// Looks up a localized resource of type System.Drawing.Bitmap. 65 | /// 66 | internal static System.Drawing.Bitmap _checked { 67 | get { 68 | object obj = ResourceManager.GetObject("_checked", resourceCulture); 69 | return ((System.Drawing.Bitmap)(obj)); 70 | } 71 | } 72 | 73 | /// 74 | /// Looks up a localized resource of type System.Drawing.Bitmap. 75 | /// 76 | internal static System.Drawing.Bitmap about { 77 | get { 78 | object obj = ResourceManager.GetObject("about", resourceCulture); 79 | return ((System.Drawing.Bitmap)(obj)); 80 | } 81 | } 82 | 83 | /// 84 | /// Looks up a localized resource of type System.Drawing.Bitmap. 85 | /// 86 | internal static System.Drawing.Bitmap minus { 87 | get { 88 | object obj = ResourceManager.GetObject("minus", resourceCulture); 89 | return ((System.Drawing.Bitmap)(obj)); 90 | } 91 | } 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /WEPExplorer/WEPExplorer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.24720.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cli", "cli\cli.vcxproj", "{04EBA7A6-1FCD-4683-A64D-776FC53A475C}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Explorer", "Explorer\Explorer.csproj", "{66A8A92E-DD65-4776-8AA4-154600EE9159}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CheckBoxComboBox", "Controls\CheckBoxComboBox\CheckBoxComboBox.csproj", "{70A25201-8EA4-48F8-A4A6-ED13ADF8823C}" 11 | EndProject 12 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2F8FF265-C3AE-4461-803B-56E8D48D6067}" 13 | ProjectSection(SolutionItems) = preProject 14 | LICENSE.md = LICENSE.md 15 | README.md = README.md 16 | EndProjectSection 17 | EndProject 18 | Global 19 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 20 | Debug|Any CPU = Debug|Any CPU 21 | Debug|x64 = Debug|x64 22 | Debug|x86 = Debug|x86 23 | Release|Any CPU = Release|Any CPU 24 | Release|x64 = Release|x64 25 | Release|x86 = Release|x86 26 | EndGlobalSection 27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 28 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|Any CPU.ActiveCfg = Debug|Win32 29 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|Any CPU.Build.0 = Debug|Win32 30 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|x64.ActiveCfg = Debug|x64 31 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|x64.Build.0 = Debug|x64 32 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|x86.ActiveCfg = Debug|Win32 33 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Debug|x86.Build.0 = Debug|Win32 34 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Release|Any CPU.ActiveCfg = Release|Win32 35 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Release|x64.ActiveCfg = Release|x64 36 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Release|x64.Build.0 = Release|x64 37 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Release|x86.ActiveCfg = Release|Win32 38 | {04EBA7A6-1FCD-4683-A64D-776FC53A475C}.Release|x86.Build.0 = Release|Win32 39 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 40 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|Any CPU.Build.0 = Debug|Any CPU 41 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|x64.ActiveCfg = Debug|Any CPU 42 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|x64.Build.0 = Debug|Any CPU 43 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|x86.ActiveCfg = Debug|Any CPU 44 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Debug|x86.Build.0 = Debug|Any CPU 45 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|Any CPU.ActiveCfg = Release|Any CPU 46 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|Any CPU.Build.0 = Release|Any CPU 47 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|x64.ActiveCfg = Release|Any CPU 48 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|x64.Build.0 = Release|Any CPU 49 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|x86.ActiveCfg = Release|Any CPU 50 | {66A8A92E-DD65-4776-8AA4-154600EE9159}.Release|x86.Build.0 = Release|Any CPU 51 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 52 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|Any CPU.Build.0 = Debug|Any CPU 53 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|x64.ActiveCfg = Debug|Any CPU 54 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|x64.Build.0 = Debug|Any CPU 55 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|x86.ActiveCfg = Debug|Any CPU 56 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Debug|x86.Build.0 = Debug|Any CPU 57 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|Any CPU.ActiveCfg = Release|Any CPU 58 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|Any CPU.Build.0 = Release|Any CPU 59 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|x64.ActiveCfg = Release|Any CPU 60 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|x64.Build.0 = Release|Any CPU 61 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|x86.ActiveCfg = Release|Any CPU 62 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C}.Release|x86.Build.0 = Release|Any CPU 63 | EndGlobalSection 64 | GlobalSection(SolutionProperties) = preSolution 65 | HideSolutionNode = FALSE 66 | EndGlobalSection 67 | EndGlobal 68 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/KeyboardSpeedReset.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 9.0.21022 7 | 2.0 8 | {67332E5B-C136-40A3-A564-7EA562E55F6B} 9 | WinExe 10 | Properties 11 | KeyboardSpeedReset 12 | KeyboardSpeedReset 13 | v3.5 14 | 512 15 | 16 | 17 | 18 | 19 | 3.5 20 | 21 | 22 | true 23 | full 24 | false 25 | bin\Debug\ 26 | DEBUG;TRACE 27 | prompt 28 | 4 29 | 30 | 31 | pdbonly 32 | true 33 | bin\Release\ 34 | TRACE 35 | prompt 36 | 4 37 | 38 | 39 | success.ico 40 | 41 | 42 | 43 | 44 | 3.5 45 | 46 | 47 | 3.5 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | Form 58 | 59 | 60 | Form1.cs 61 | 62 | 63 | 64 | 65 | Form1.cs 66 | Designer 67 | 68 | 69 | ResXFileCodeGenerator 70 | Resources.Designer.cs 71 | Designer 72 | 73 | 74 | True 75 | Resources.resx 76 | True 77 | 78 | 79 | SettingsSingleFileGenerator 80 | Settings.Designer.cs 81 | 82 | 83 | True 84 | Settings.settings 85 | True 86 | 87 | 88 | 89 | 90 | 91 | 92 | 99 | -------------------------------------------------------------------------------- /DirectionalKeyInput/.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Dd]ebugPublic/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | bld/ 16 | [Bb]in/ 17 | [Oo]bj/ 18 | 19 | # MSTest test Results 20 | [Tt]est[Rr]esult*/ 21 | [Bb]uild[Ll]og.* 22 | 23 | #NUNIT 24 | *.VisualState.xml 25 | TestResult.xml 26 | 27 | # Build Results of an ATL Project 28 | [Dd]ebugPS/ 29 | [Rr]eleasePS/ 30 | dlldata.c 31 | 32 | *_i.c 33 | *_p.c 34 | *_i.h 35 | *.ilk 36 | *.meta 37 | *.obj 38 | *.pch 39 | *.pdb 40 | *.pgc 41 | *.pgd 42 | *.rsp 43 | *.sbr 44 | *.tlb 45 | *.tli 46 | *.tlh 47 | *.tmp 48 | *.tmp_proj 49 | *.log 50 | *.vspscc 51 | *.vssscc 52 | .builds 53 | *.pidb 54 | *.svclog 55 | *.scc 56 | 57 | # Chutzpah Test files 58 | _Chutzpah* 59 | 60 | # Visual C++ cache files 61 | ipch/ 62 | *.aps 63 | *.ncb 64 | *.opensdf 65 | *.sdf 66 | *.cachefile 67 | 68 | # Visual Studio profiler 69 | *.psess 70 | *.vsp 71 | *.vspx 72 | 73 | # TFS 2012 Local Workspace 74 | $tf/ 75 | 76 | # Guidance Automation Toolkit 77 | *.gpState 78 | 79 | # ReSharper is a .NET coding add-in 80 | _ReSharper*/ 81 | *.[Rr]e[Ss]harper 82 | *.DotSettings.user 83 | 84 | # JustCode is a .NET coding addin-in 85 | .JustCode 86 | 87 | # TeamCity is a build add-in 88 | _TeamCity* 89 | 90 | # DotCover is a Code Coverage Tool 91 | *.dotCover 92 | 93 | # NCrunch 94 | *.ncrunch* 95 | _NCrunch_* 96 | .*crunch*.local.xml 97 | 98 | # MightyMoose 99 | *.mm.* 100 | AutoTest.Net/ 101 | 102 | # Web workbench (sass) 103 | .sass-cache/ 104 | 105 | # Installshield output folder 106 | [Ee]xpress/ 107 | 108 | # DocProject is a documentation generator add-in 109 | DocProject/buildhelp/ 110 | DocProject/Help/*.HxT 111 | DocProject/Help/*.HxC 112 | DocProject/Help/*.hhc 113 | DocProject/Help/*.hhk 114 | DocProject/Help/*.hhp 115 | DocProject/Help/Html2 116 | DocProject/Help/html 117 | 118 | # Click-Once directory 119 | publish/ 120 | 121 | # Publish Web Output 122 | *.[Pp]ublish.xml 123 | *.azurePubxml 124 | 125 | # NuGet Packages Directory 126 | packages/ 127 | ## TODO: If the tool you use requires repositories.config uncomment the next line 128 | #!packages/repositories.config 129 | 130 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 131 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented) 132 | !packages/build/ 133 | 134 | # Windows Azure Build Output 135 | csx/ 136 | *.build.csdef 137 | 138 | # Windows Store app package directory 139 | AppPackages/ 140 | 141 | # Others 142 | sql/ 143 | *.Cache 144 | ClientBin/ 145 | [Ss]tyle[Cc]op.* 146 | ~$* 147 | *~ 148 | *.dbmdl 149 | *.dbproj.schemaview 150 | *.pfx 151 | *.publishsettings 152 | node_modules/ 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | *.mdf 166 | *.ldf 167 | 168 | # Business Intelligence projects 169 | *.rdl.data 170 | *.bim.layout 171 | *.bim_*.settings 172 | 173 | # Microsoft Fakes 174 | FakesAssemblies/ 175 | 176 | # ========================= 177 | # Operating System Files 178 | # ========================= 179 | 180 | # OSX 181 | # ========================= 182 | 183 | .DS_Store 184 | .AppleDouble 185 | .LSOverride 186 | 187 | # Icon must ends with two \r. 188 | Icon 189 | 190 | # Thumbnails 191 | ._* 192 | 193 | # Files that might appear on external disk 194 | .Spotlight-V100 195 | .Trashes 196 | 197 | # Windows 198 | # ========================= 199 | 200 | # Windows image file caches 201 | Thumbs.db 202 | ehthumbs.db 203 | 204 | # Folder config file 205 | Desktop.ini 206 | 207 | # Recycle Bin used on file shares 208 | $RECYCLE.BIN/ 209 | 210 | # Windows Installer files 211 | *.cab 212 | *.msi 213 | *.msm 214 | *.msp 215 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Dd]ebugPublic/ 12 | [Rr]elease/ 13 | x64/ 14 | build/ 15 | bld/ 16 | [Bb]in/ 17 | [Oo]bj/ 18 | 19 | # MSTest test Results 20 | [Tt]est[Rr]esult*/ 21 | [Bb]uild[Ll]og.* 22 | 23 | #NUNIT 24 | *.VisualState.xml 25 | TestResult.xml 26 | 27 | # Build Results of an ATL Project 28 | [Dd]ebugPS/ 29 | [Rr]eleasePS/ 30 | dlldata.c 31 | 32 | *_i.c 33 | *_p.c 34 | *_i.h 35 | *.ilk 36 | *.meta 37 | *.obj 38 | *.pch 39 | *.pdb 40 | *.pgc 41 | *.pgd 42 | *.rsp 43 | *.sbr 44 | *.tlb 45 | *.tli 46 | *.tlh 47 | *.tmp 48 | *.tmp_proj 49 | *.log 50 | *.vspscc 51 | *.vssscc 52 | .builds 53 | *.pidb 54 | *.svclog 55 | *.scc 56 | 57 | # Chutzpah Test files 58 | _Chutzpah* 59 | 60 | # Visual C++ cache files 61 | ipch/ 62 | *.aps 63 | *.ncb 64 | *.opensdf 65 | *.sdf 66 | *.cachefile 67 | 68 | # Visual Studio profiler 69 | *.psess 70 | *.vsp 71 | *.vspx 72 | 73 | # TFS 2012 Local Workspace 74 | $tf/ 75 | 76 | # Guidance Automation Toolkit 77 | *.gpState 78 | 79 | # ReSharper is a .NET coding add-in 80 | _ReSharper*/ 81 | *.[Rr]e[Ss]harper 82 | *.DotSettings.user 83 | 84 | # JustCode is a .NET coding addin-in 85 | .JustCode 86 | 87 | # TeamCity is a build add-in 88 | _TeamCity* 89 | 90 | # DotCover is a Code Coverage Tool 91 | *.dotCover 92 | 93 | # NCrunch 94 | *.ncrunch* 95 | _NCrunch_* 96 | .*crunch*.local.xml 97 | 98 | # MightyMoose 99 | *.mm.* 100 | AutoTest.Net/ 101 | 102 | # Web workbench (sass) 103 | .sass-cache/ 104 | 105 | # Installshield output folder 106 | [Ee]xpress/ 107 | 108 | # DocProject is a documentation generator add-in 109 | DocProject/buildhelp/ 110 | DocProject/Help/*.HxT 111 | DocProject/Help/*.HxC 112 | DocProject/Help/*.hhc 113 | DocProject/Help/*.hhk 114 | DocProject/Help/*.hhp 115 | DocProject/Help/Html2 116 | DocProject/Help/html 117 | 118 | # Click-Once directory 119 | publish/ 120 | 121 | # Publish Web Output 122 | *.[Pp]ublish.xml 123 | *.azurePubxml 124 | 125 | # NuGet Packages Directory 126 | packages/ 127 | ## TODO: If the tool you use requires repositories.config uncomment the next line 128 | #!packages/repositories.config 129 | 130 | # Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets 131 | # This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented) 132 | !packages/build/ 133 | 134 | # Windows Azure Build Output 135 | csx/ 136 | *.build.csdef 137 | 138 | # Windows Store app package directory 139 | AppPackages/ 140 | 141 | # Others 142 | sql/ 143 | *.Cache 144 | ClientBin/ 145 | [Ss]tyle[Cc]op.* 146 | ~$* 147 | *~ 148 | *.dbmdl 149 | *.dbproj.schemaview 150 | *.pfx 151 | *.publishsettings 152 | node_modules/ 153 | 154 | # RIA/Silverlight projects 155 | Generated_Code/ 156 | 157 | # Backup & report files from converting an old project file to a newer 158 | # Visual Studio version. Backup files are not needed, because we have git ;-) 159 | _UpgradeReport_Files/ 160 | Backup*/ 161 | UpgradeLog*.XML 162 | UpgradeLog*.htm 163 | 164 | # SQL Server files 165 | *.mdf 166 | *.ldf 167 | 168 | # Business Intelligence projects 169 | *.rdl.data 170 | *.bim.layout 171 | *.bim_*.settings 172 | 173 | # Microsoft Fakes 174 | FakesAssemblies/ 175 | 176 | # ========================= 177 | # Operating System Files 178 | # ========================= 179 | 180 | # OSX 181 | # ========================= 182 | 183 | .DS_Store 184 | .AppleDouble 185 | .LSOverride 186 | 187 | # Icon must ends with two \r. 188 | Icon 189 | 190 | # Thumbnails 191 | ._* 192 | 193 | # Files that might appear on external disk 194 | .Spotlight-V100 195 | .Trashes 196 | 197 | # Windows 198 | # ========================= 199 | 200 | # Windows image file caches 201 | Thumbs.db 202 | ehthumbs.db 203 | 204 | # Folder config file 205 | Desktop.ini 206 | 207 | # Recycle Bin used on file shares 208 | $RECYCLE.BIN/ 209 | 210 | # Windows Installer files 211 | *.cab 212 | *.msi 213 | *.msm 214 | *.msp 215 | -------------------------------------------------------------------------------- /ControlColorExplorer/ControlColorExplorer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {76592021-3BF6-41A8-AFC6-C7F9DF67817C} 8 | WinExe 9 | Properties 10 | ControlColorExplorer 11 | ControlColorExplorer 12 | v4.5.2 13 | 512 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | ico100.ico 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | Form 54 | 55 | 56 | ControlColorExplorer.cs 57 | 58 | 59 | 60 | 61 | ControlColorExplorer.cs 62 | 63 | 64 | ResXFileCodeGenerator 65 | Resources.Designer.cs 66 | Designer 67 | 68 | 69 | True 70 | Resources.resx 71 | True 72 | 73 | 74 | SettingsSingleFileGenerator 75 | Settings.Designer.cs 76 | 77 | 78 | True 79 | Settings.settings 80 | True 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 97 | -------------------------------------------------------------------------------- /ControlColorExplorer/ControlColorExplorer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Diagnostics; 6 | using System.Drawing; 7 | using System.Linq; 8 | using System.Reflection; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace WindowsFormsApplication1 14 | { 15 | public partial class frmColorExplorer : Form 16 | { 17 | 18 | public Dictionary ColorNames = new Dictionary(); 19 | 20 | public frmColorExplorer() 21 | { 22 | InitializeComponent(); 23 | GetAllColors(); 24 | } 25 | 26 | private void PopulateColors(bool bBackground) 27 | { 28 | int ColorRepeat; 29 | if (!int.TryParse(txtColorRepeat.Text, out ColorRepeat)) 30 | ColorRepeat = 5; 31 | lvColors.BeginUpdate(); 32 | lvColors.Items.Clear(); 33 | AddColorsDynamically(bBackground, ColorRepeat); 34 | lvColors.EndUpdate(); 35 | } 36 | 37 | private void GetAllColors() 38 | { 39 | ColorNames.Clear(); 40 | var T = typeof(System.Drawing.Color); 41 | PropertyInfo[] properties = T.GetProperties(); 42 | foreach (var property in properties) 43 | { 44 | if (!property.DeclaringType.Name.Equals("Color")) 45 | continue; 46 | 47 | try 48 | { 49 | var c = (Color)property.GetValue(T, null); 50 | var n = property.Name; 51 | ColorNames[c] = n; 52 | } 53 | catch 54 | { 55 | break; 56 | } 57 | } 58 | } 59 | 60 | private void AddColoredItem( 61 | string Name, 62 | Color c, 63 | bool bBackground) 64 | { 65 | var lvi = new ListViewItem(Name); 66 | if (bBackground) 67 | lvi.BackColor = c; 68 | else 69 | lvi.ForeColor = c; 70 | 71 | lvColors.Items.Add(lvi); 72 | } 73 | 74 | private void AddColorsDynamically( 75 | bool bBackground, 76 | int ColorRepeat = 1) 77 | { 78 | var T = typeof(System.Drawing.Color); 79 | PropertyInfo[] properties = T.GetProperties(); 80 | foreach (var property in properties) 81 | { 82 | if (!property.DeclaringType.Name.Equals("Color")) 83 | continue; 84 | 85 | Color c; 86 | try 87 | { 88 | c = (Color)property.GetValue(T, null); 89 | } 90 | catch 91 | { 92 | break; 93 | } 94 | var n = property.Name; 95 | 96 | for (int i=0;i(); 125 | foreach (ListViewItem lvi in lvColors.SelectedItems) 126 | Colors.Add(lvi.Text); 127 | 128 | if (Colors.Count > 0) 129 | { 130 | Clipboard.Clear(); 131 | Clipboard.SetText(string.Join(", ", Colors)); 132 | } 133 | } 134 | 135 | private void btnAbout_Click(object sender, EventArgs e) 136 | { 137 | MessageBox.Show( 138 | @"ControlColorExplorer 139 | 140 | Explorer the colors of a windows control, design your application better! 141 | 142 | (c) Elias Bachaalany 143 | ", "About", MessageBoxButtons.OK, MessageBoxIcon.Information); 144 | } 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Explorer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {66A8A92E-DD65-4776-8AA4-154600EE9159} 8 | WinExe 9 | Properties 10 | Explorer 11 | Explorer 12 | v4.0 13 | 512 14 | true 15 | 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | ico101.ico 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | Form 57 | 58 | 59 | WEPExplorer.cs 60 | 61 | 62 | 63 | 64 | 65 | 66 | WEPExplorer.cs 67 | 68 | 69 | ResXFileCodeGenerator 70 | Resources.Designer.cs 71 | Designer 72 | 73 | 74 | True 75 | Resources.resx 76 | True 77 | 78 | 79 | SettingsSingleFileGenerator 80 | Settings.Designer.cs 81 | 82 | 83 | True 84 | Settings.settings 85 | True 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | {70A25201-8EA4-48F8-A4A6-ED13ADF8823C} 94 | CheckBoxComboBox 95 | 96 | 97 | 98 | 99 | 100 | 101 | PreserveNewest 102 | 103 | 104 | 105 | 112 | -------------------------------------------------------------------------------- /WEPExplorer/controls/CheckBoxComboBox/Selection Wrappers/ObjectSelectionWrapper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.ComponentModel; 7 | using System.Reflection; 8 | using System.Data; 9 | 10 | namespace PresentationControls 11 | { 12 | /// 13 | /// Used together with the ListSelectionWrapper in order to wrap data sources for a CheckBoxComboBox. 14 | /// It helps to ensure you don't add an extra "Selected" property to a class that don't really need or want that information. 15 | /// 16 | public class ObjectSelectionWrapper : INotifyPropertyChanged 17 | { 18 | public ObjectSelectionWrapper(T item, ListSelectionWrapper container) 19 | : base() 20 | { 21 | _Container = container; 22 | _Item = item; 23 | } 24 | 25 | 26 | #region PRIVATE PROPERTIES 27 | 28 | /// 29 | /// Used as a count indicator for the item. Not necessarily displayed. 30 | /// 31 | private int _Count = 0; 32 | /// 33 | /// Is this item selected. 34 | /// 35 | private bool _Selected = false; 36 | /// 37 | /// A reference to the wrapped item. 38 | /// 39 | private T _Item; 40 | /// 41 | /// The containing list for these selections. 42 | /// 43 | private ListSelectionWrapper _Container; 44 | 45 | #endregion 46 | 47 | #region PUBLIC PROPERTIES 48 | 49 | /// 50 | /// An indicator of how many items with the specified status is available for the current filter level. 51 | /// Thaught this would make the app a bit more user-friendly and help not to miss items in Statusses 52 | /// that are not often used. 53 | /// 54 | public int Count 55 | { 56 | get { return _Count; } 57 | set { _Count = value; } 58 | } 59 | /// 60 | /// A reference to the item wrapped. 61 | /// 62 | public T Item 63 | { 64 | get { return _Item; } 65 | set { _Item = value; } 66 | } 67 | /// 68 | /// The item display value. If ShowCount is true, it displays the "Name [Count]". 69 | /// 70 | public string Name 71 | { 72 | get 73 | { 74 | string Name = null; 75 | if (string.IsNullOrEmpty(_Container.DisplayNameProperty)) 76 | Name = Item.ToString(); 77 | else if (Item is DataRow) // A specific implementation for DataRow 78 | Name = ((DataRow)((Object)Item))[_Container.DisplayNameProperty].ToString(); 79 | else 80 | { 81 | PropertyDescriptorCollection PDs = TypeDescriptor.GetProperties(Item); 82 | foreach (PropertyDescriptor PD in PDs) 83 | if (PD.Name.CompareTo(_Container.DisplayNameProperty) == 0) 84 | { 85 | Name = (string)PD.GetValue(Item).ToString(); 86 | break; 87 | } 88 | if (string.IsNullOrEmpty(Name)) 89 | { 90 | PropertyInfo PI = Item.GetType().GetProperty(_Container.DisplayNameProperty); 91 | if (PI == null) 92 | throw new Exception(String.Format( 93 | "Property {0} cannot be found on {1}.", 94 | _Container.DisplayNameProperty, 95 | Item.GetType())); 96 | Name = PI.GetValue(Item, null).ToString(); 97 | } 98 | } 99 | return _Container.ShowCounts ? String.Format("{0} [{1}]", Name, Count) : Name; 100 | } 101 | } 102 | /// 103 | /// The textbox display value. The names concatenated. 104 | /// 105 | public string NameConcatenated 106 | { 107 | get { return _Container.SelectedNames; } 108 | } 109 | /// 110 | /// Indicates whether the item is selected. 111 | /// 112 | public bool Selected 113 | { 114 | get { return _Selected; } 115 | set 116 | { 117 | if (_Selected != value) 118 | { 119 | _Selected = value; 120 | OnPropertyChanged("Selected"); 121 | OnPropertyChanged("NameConcatenated"); 122 | } 123 | } 124 | } 125 | 126 | #endregion 127 | 128 | #region INotifyPropertyChanged 129 | 130 | public event PropertyChangedEventHandler PropertyChanged; 131 | 132 | protected virtual void OnPropertyChanged(string propertyName) 133 | { 134 | PropertyChangedEventHandler handler = PropertyChanged; 135 | if (handler != null) 136 | handler(this, new PropertyChangedEventArgs(propertyName)); 137 | } 138 | 139 | #endregion 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /WerFaultTool/WerFaultTool.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {EA072B05-A1F6-4337-9079-F7D074F8E0A2} 8 | WinExe 9 | WerFaultTool 10 | WerFaultTool 11 | v4.0 12 | 512 13 | publish\ 14 | true 15 | Disk 16 | false 17 | Foreground 18 | 7 19 | Days 20 | false 21 | false 22 | true 23 | 0 24 | 1.0.0.%2a 25 | false 26 | false 27 | true 28 | 29 | 30 | AnyCPU 31 | true 32 | full 33 | false 34 | bin\Debug\ 35 | DEBUG;TRACE 36 | prompt 37 | 4 38 | 39 | 40 | AnyCPU 41 | pdbonly 42 | true 43 | bin\Release\ 44 | TRACE 45 | prompt 46 | 4 47 | 48 | 49 | WerFault.ico 50 | 51 | 52 | app.manifest 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | Form 69 | 70 | 71 | AboutForm.cs 72 | 73 | 74 | Form 75 | 76 | 77 | WerFaultGUI.cs 78 | 79 | 80 | 81 | 82 | 83 | AboutForm.cs 84 | 85 | 86 | WerFaultGUI.cs 87 | 88 | 89 | ResXFileCodeGenerator 90 | Resources.Designer.cs 91 | Designer 92 | 93 | 94 | True 95 | Resources.resx 96 | True 97 | 98 | 99 | 100 | SettingsSingleFileGenerator 101 | Settings.Designer.cs 102 | 103 | 104 | True 105 | Settings.settings 106 | True 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | False 119 | .NET Framework 3.5 SP1 120 | false 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /DirectionalKeyInput/DirInput.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.50727 7 | 2.0 8 | {83CFBD87-DEC4-4A06-B7BD-1CD48A962403} 9 | WinExe 10 | Properties 11 | DirInput 12 | DirInput 13 | v2.0 14 | 15 | 16 | 17 | 18 | 2.0 19 | publish\ 20 | true 21 | Disk 22 | false 23 | Foreground 24 | 7 25 | Days 26 | false 27 | false 28 | true 29 | 0 30 | 1.0.0.%2a 31 | false 32 | false 33 | true 34 | 35 | 36 | true 37 | full 38 | false 39 | bin\Debug\ 40 | DEBUG;TRACE 41 | prompt 42 | 4 43 | 44 | 45 | pdbonly 46 | true 47 | bin\Release\ 48 | TRACE 49 | prompt 50 | 4 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | Form 63 | 64 | 65 | KeyboardForm.cs 66 | 67 | 68 | Form 69 | 70 | 71 | NotepadForm.cs 72 | 73 | 74 | 75 | 76 | Designer 77 | KeyboardForm.cs 78 | 79 | 80 | Designer 81 | NotepadForm.cs 82 | 83 | 84 | ResXFileCodeGenerator 85 | Resources.Designer.cs 86 | Designer 87 | 88 | 89 | True 90 | Resources.resx 91 | True 92 | 93 | 94 | SettingsSingleFileGenerator 95 | Settings.Designer.cs 96 | 97 | 98 | True 99 | Settings.settings 100 | True 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | PreserveNewest 109 | 110 | 111 | 112 | 113 | False 114 | .NET Framework 3.5 SP1 Client Profile 115 | false 116 | 117 | 118 | False 119 | .NET Framework 3.5 SP1 120 | true 121 | 122 | 123 | 124 | 131 | -------------------------------------------------------------------------------- /WorkingSet/main.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | QueryWorkingSetEx example. 3 | 4 | The companion dummy DLL project is used for testing the API. 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | constexpr size_t PAGE_SIZE = 0x1000; 16 | 17 | //------------------------------------------------------------------------- 18 | static void setup_wksinfo( 19 | HMODULE hDll, 20 | PPSAPI_WORKING_SET_EX_INFORMATION *pv, 21 | DWORD *count) 22 | { 23 | auto pinh = (PIMAGE_NT_HEADERS)((char*)hDll + PIMAGE_DOS_HEADER(hDll)->e_lfanew); 24 | 25 | DWORD nb_pages = *count = pinh->OptionalHeader.SizeOfCode / PAGE_SIZE; 26 | 27 | PPSAPI_WORKING_SET_EX_INFORMATION pwks = *pv = new _PSAPI_WORKING_SET_EX_INFORMATION[nb_pages]; 28 | if (pwks == nullptr) 29 | { 30 | printf("Fatal error: could not allocate for %u pages (%" PRIuPTR " bytes)\n", 31 | nb_pages, 32 | nb_pages * sizeof(*pwks)); 33 | exit(ENOMEM); 34 | } 35 | 36 | uintptr_t p_code = uintptr_t(hDll) + pinh->OptionalHeader.BaseOfCode; 37 | for (DWORD i = 0; 38 | i < nb_pages; 39 | ++i, p_code += PAGE_SIZE, ++pwks) 40 | { 41 | pwks->VirtualAddress = PVOID(p_code); 42 | pwks->VirtualAttributes.Flags = 0; 43 | } 44 | } 45 | 46 | //------------------------------------------------------------------------- 47 | static int get_key(const char* prompt = nullptr) 48 | { 49 | if (prompt != nullptr) 50 | printf("%s", prompt); 51 | 52 | auto ch = _getch(); 53 | 54 | if (prompt != nullptr) 55 | printf("%c\n", ch); 56 | 57 | return ch; 58 | } 59 | 60 | //------------------------------------------------------------------------- 61 | int main(int argc, char *argv[]) 62 | { 63 | HMODULE hDll = LoadLibrary(_TEXT("DummyDll")); 64 | if (hDll == nullptr) 65 | { 66 | printf("DummyDll not found!\n"); 67 | return -1; 68 | } 69 | 70 | srand((unsigned int)time(NULL)); 71 | 72 | printf("Loaded test DLL at %p\n", hDll); 73 | 74 | PPSAPI_WORKING_SET_EX_INFORMATION pv; 75 | DWORD pv_count; 76 | setup_wksinfo(hDll, &pv, &pv_count); 77 | 78 | DWORD pv_size = sizeof(*pv) * pv_count; 79 | 80 | for (;;) 81 | { 82 | printf( 83 | "---------------------------------------------------------------\n" 84 | "i) information\n" 85 | "s) scan pages\n" 86 | "p) patch page\n" 87 | "q) quit\n"); 88 | 89 | auto ch = get_key(); 90 | 91 | // Internal information 92 | if (ch == 'i') 93 | { 94 | printf( 95 | "----------- Information ---------------------------------------\n" 96 | "Test DLL image base: %p\n" 97 | "Number of pages %u\n", 98 | hDll, pv_count); 99 | } 100 | // Scan memory pages 101 | else if (ch == 's') 102 | { 103 | printf("---- Querying all pages ---------------------------------------\n"); 104 | // Query all pages 105 | if (!QueryWorkingSetEx(GetCurrentProcess(), pv, pv_size)) 106 | { 107 | printf("QWS failed!\n"); 108 | break; 109 | } 110 | 111 | // Inspect changes 112 | for (DWORD i = 0; i < pv_count; ++i) 113 | { 114 | auto pvi = pv + i; 115 | auto valid = DWORD(pvi->VirtualAttributes.Valid); 116 | auto rsvd_ = DWORD(pvi->VirtualAttributes.Reserved & 0x40) != 0; 117 | DWORD shared = valid ? DWORD(pvi->VirtualAttributes.Shared) : DWORD(pvi->VirtualAttributes.Invalid.Shared); 118 | printf("Page #%2u: %p; Valid: %u; Shared: %u Rsvd: %u\n", 119 | i + 1, 120 | pvi->VirtualAddress, 121 | valid, 122 | shared, 123 | rsvd_); 124 | } 125 | } 126 | // Patch 127 | else if (ch == 'p') do 128 | { 129 | printf("------ Patching a page ----------------------------------------\n"); 130 | DWORD page_no; 131 | char input[10]; 132 | printf("enter page number: "); 133 | gets_s(input); 134 | input[sizeof(input) - 1] = '\0'; 135 | sscanf_s(input, "%u", &page_no); 136 | 137 | if (page_no <= 1) 138 | { 139 | printf("Reserved paged number %u cannot be used!\n", page_no); 140 | continue; 141 | } 142 | 143 | --page_no; 144 | 145 | if (page_no >= pv_count) 146 | { 147 | printf("Invalid page number\n"); 148 | continue; 149 | } 150 | 151 | DWORD old_protect; 152 | auto addr = pv[page_no].VirtualAddress; 153 | if (!VirtualProtect(addr, PAGE_SIZE, PAGE_EXECUTE_READWRITE, &old_protect)) 154 | { 155 | printf("Failed to change page #%u @ %" PRIxPTR " protection\n", page_no, uintptr_t(addr)); 156 | exit(ENXIO); 157 | } 158 | 159 | volatile auto rnd_addr = (uint8_t * )(uintptr_t(addr) + (rand() % PAGE_SIZE)); 160 | 161 | // Touch the shared page 162 | *rnd_addr = *rnd_addr; 163 | 164 | VirtualProtect(addr, PAGE_SIZE, old_protect, &old_protect); 165 | } while (false); 166 | // Quit 167 | else if (ch == 'q') 168 | { 169 | break; 170 | } 171 | } 172 | 173 | FreeLibrary(hDll); 174 | return 0; 175 | } -------------------------------------------------------------------------------- /AutoPicture/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /ControlColorExplorer/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /KeyboardSpeedReset/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /WEPExplorer/Explorer/Extensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Xml; 7 | using System.Xml.Serialization; 8 | 9 | /* ----------------------------------------------------------------------------- 10 | * Copyright (c) Elias Bachaalany 11 | * All rights reserved. 12 | * 13 | * Redistribution and use in source and binary forms, with or without 14 | * modification, are permitted provided that the following conditions 15 | * are met: 16 | * 1. Redistributions of source code must retain the above copyright 17 | * notice, this list of conditions and the following disclaimer. 18 | * 2. Redistributions in binary form must reproduce the above copyright 19 | * notice, this list of conditions and the following disclaimer in the 20 | * documentation and/or other materials provided with the distribution. 21 | * 22 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 23 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 26 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 | * SUCH DAMAGE. 33 | * ----------------------------------------------------------------------------- 34 | */ 35 | namespace Explore 36 | { 37 | public static class XmlExtensions 38 | { 39 | static public string GetAttrValue( 40 | this XmlNode node, 41 | string AttrName) 42 | { 43 | try 44 | { 45 | return node.Attributes[AttrName].Value; 46 | } 47 | catch (Exception) 48 | { 49 | return null; 50 | } 51 | } 52 | 53 | public static bool SerializeToXmlFile( 54 | this object obj, 55 | string FileName, 56 | out string ExMessage) 57 | { 58 | try 59 | { 60 | using (TextWriter writer = new StreamWriter(FileName)) 61 | { 62 | XmlSerializer ser = new XmlSerializer(obj.GetType()); 63 | ser.Serialize(writer, obj); 64 | } 65 | ExMessage = null; 66 | return true; 67 | } 68 | catch (Exception ex) 69 | { 70 | ExMessage = ex.ToString(); 71 | Debug.WriteLine( 72 | string.Format("SerializeToXmlFile failed to serialize {0} of the type {1}.\n" + 73 | "Exception: {2}", 74 | FileName, 75 | obj.GetType().Name, 76 | ExMessage)); 77 | return false; 78 | } 79 | } 80 | 81 | public static bool SerializeToXmlFile( 82 | this object obj, 83 | string FileName) 84 | { 85 | string ExMessage; 86 | return obj.SerializeToXmlFile(FileName, out ExMessage); 87 | } 88 | 89 | public static T DeserializeFromXmlFile( 90 | string FileName, 91 | out string ExMessage) where T : class 92 | { 93 | try 94 | { 95 | using (TextReader reader = new StreamReader(FileName)) 96 | { 97 | ExMessage = null; 98 | XmlSerializer ser = new XmlSerializer(typeof(T)); 99 | return ser.Deserialize(reader) as T; 100 | } 101 | } 102 | catch (Exception ex) 103 | { 104 | ExMessage = ex.ToString(); 105 | Debug.WriteLine( 106 | string.Format("DeserializeFromFile failed to deserialize {0} of the type {1}.\n" + 107 | "Exception: {2}", 108 | FileName, 109 | typeof(T).Name, 110 | ExMessage)); 111 | return default(T); 112 | } 113 | } 114 | 115 | public static T DeserializeFromXmlFile(string FileName) where T : class 116 | { 117 | string ExMessage; 118 | return DeserializeFromXmlFile(FileName, out ExMessage); 119 | } 120 | 121 | } 122 | 123 | public static class Extensions 124 | { 125 | static public bool HasAttribute(this Type t, Type Attr) 126 | { 127 | return t.GetCustomAttributes(Attr, true).Any(); 128 | } 129 | } 130 | 131 | public static class ListViewExtensions 132 | { 133 | public static string GetItemsString( 134 | this System.Windows.Forms.ListViewItem lvi, 135 | string SurroundL = "\"", 136 | string SurroundR = "\"", 137 | string Join = "\t") 138 | { 139 | List s = new List(); 140 | foreach (System.Windows.Forms.ListViewItem.ListViewSubItem CurSub in lvi.SubItems) 141 | s.Add(string.Format("{0}{1}{2}", SurroundL, CurSub.Text, SurroundR)); 142 | 143 | return string.Join(Join, s); 144 | } 145 | 146 | public static void SelectAll( 147 | this System.Windows.Forms.ListView lv) 148 | { 149 | lv.BeginUpdate(); 150 | foreach (System.Windows.Forms.ListViewItem lvi in lv.Items) 151 | lvi.Selected = true; 152 | lv.EndUpdate(); 153 | } 154 | } 155 | } 156 | --------------------------------------------------------------------------------