From e8f0a69be8d4354d8fcb5f46329e448399dd114f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sof=C3=ADa=20Aritz?= Date: Mon, 12 Jun 2023 22:11:12 +0200 Subject: [PATCH] Initial commit --- .gitignore | 398 ++++++++++++++++++ MicrophoneMuter.sln | 31 ++ MicrophoneMuter/MicrophoneMuter.cpp | 342 +++++++++++++++ MicrophoneMuter/MicrophoneMuter.h | 6 + MicrophoneMuter/MicrophoneMuter.ico | Bin 0 -> 46227 bytes MicrophoneMuter/MicrophoneMuter.rc | Bin 0 -> 6972 bytes MicrophoneMuter/MicrophoneMuter.vcxproj | 148 +++++++ .../MicrophoneMuter.vcxproj.filters | 49 +++ MicrophoneMuter/Resource.h | 30 ++ MicrophoneMuter/framework.h | 15 + MicrophoneMuter/small.ico | Bin 0 -> 46227 bytes MicrophoneMuter/targetver.h | 6 + README.md | 19 + 13 files changed, 1044 insertions(+) create mode 100644 .gitignore create mode 100644 MicrophoneMuter.sln create mode 100644 MicrophoneMuter/MicrophoneMuter.cpp create mode 100644 MicrophoneMuter/MicrophoneMuter.h create mode 100644 MicrophoneMuter/MicrophoneMuter.ico create mode 100644 MicrophoneMuter/MicrophoneMuter.rc create mode 100644 MicrophoneMuter/MicrophoneMuter.vcxproj create mode 100644 MicrophoneMuter/MicrophoneMuter.vcxproj.filters create mode 100644 MicrophoneMuter/Resource.h create mode 100644 MicrophoneMuter/framework.h create mode 100644 MicrophoneMuter/small.ico create mode 100644 MicrophoneMuter/targetver.h create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8dd4607 --- /dev/null +++ b/.gitignore @@ -0,0 +1,398 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml \ No newline at end of file diff --git a/MicrophoneMuter.sln b/MicrophoneMuter.sln new file mode 100644 index 0000000..a8491d5 --- /dev/null +++ b/MicrophoneMuter.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33110.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MicrophoneMuter", "MicrophoneMuter\MicrophoneMuter.vcxproj", "{7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Debug|x64.ActiveCfg = Debug|x64 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Debug|x64.Build.0 = Debug|x64 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Debug|x86.ActiveCfg = Debug|Win32 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Debug|x86.Build.0 = Debug|Win32 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Release|x64.ActiveCfg = Release|x64 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Release|x64.Build.0 = Release|x64 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Release|x86.ActiveCfg = Release|Win32 + {7A679CBB-D7B6-46C9-8BD3-E49A8FA9845B}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3F9FE12F-8788-475D-AC58-334E4BE0744F} + EndGlobalSection +EndGlobal diff --git a/MicrophoneMuter/MicrophoneMuter.cpp b/MicrophoneMuter/MicrophoneMuter.cpp new file mode 100644 index 0000000..3dc64f8 --- /dev/null +++ b/MicrophoneMuter/MicrophoneMuter.cpp @@ -0,0 +1,342 @@ +// MicrophoneMuter.cpp : Defines the entry point for the application. +// + +#include "framework.h" +#include "windows.h" +#include "mmdeviceapi.h" +#include "endpointvolume.h" +#include "shellapi.h" +#include "MicrophoneMuter.h" + +#define MUTED 1 +#define UNMUTED 2 +#define NO_DEVICE 3 + +#define MAX_LOADSTRING 100 +#define MUTE_BUTTON 4 +#define UNMUTE_BUTTON 5 + +// Global Variables: +HINSTANCE hInst; // current instance +WCHAR szTitle[MAX_LOADSTRING]; // The title bar text +WCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name +TCHAR appName[] = _T("Microphone Muter"); +TCHAR successfulMuteMsg[] = _T("Sucessfully muted default microphone!"); +TCHAR successfulUnmuteMsg[] = _T("Sucessfully unmuted default microphone!"); +TCHAR noDefaultDevice[] = _T("No default microphone was found."); +TCHAR unknownStatus[] = _T("Unknown status. Contact the developer"); +HRESULT hResult = NULL; +UINT16 status = NULL; + +// Forward declarations of functions included in this code module: +ATOM MyRegisterClass(HINSTANCE hInstance); +BOOL InitInstance(HINSTANCE, int); +LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); +INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); + +int APIENTRY wWinMain(_In_ HINSTANCE hInstance, + _In_opt_ HINSTANCE hPrevInstance, + _In_ LPWSTR lpCmdLine, + _In_ int nCmdShow) +{ + UNREFERENCED_PARAMETER(hPrevInstance); + UNREFERENCED_PARAMETER(lpCmdLine); + + hResult = CoInitialize(NULL); + + int args; + LPWSTR* argList = CommandLineToArgvW(GetCommandLineW(), &args); + if (args != NULL && args > 1) + { + OutputDebugStringW(L"There are args!\n"); + + for (int i = 0; i < args; i++) + { + if (wcscmp(argList[i], L"unmute") == 0) + { + UnmuteDefaultMic(); + return 0; + } + else if (wcscmp(argList[i], L"mute") == 0) + { + MuteDefaultMic(); + return 0; + } + } + } + + // Initialize global strings + LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); + LoadStringW(hInstance, IDC_MICROPHONEMUTER, szWindowClass, MAX_LOADSTRING); + MyRegisterClass(hInstance); + + // Perform application initialization: + if (!InitInstance (hInstance, nCmdShow)) + { + return FALSE; + } + + HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_MICROPHONEMUTER)); + + MSG msg; + + // Main message loop: + while (GetMessage(&msg, nullptr, 0, 0)) + { + if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + + return (int) msg.wParam; +} + + + +// +// FUNCTION: MyRegisterClass() +// +// PURPOSE: Registers the window class. +// +ATOM MyRegisterClass(HINSTANCE hInstance) +{ + WNDCLASSEXW wcex; + + wcex.cbSize = sizeof(WNDCLASSEX); + + wcex.style = CS_HREDRAW | CS_VREDRAW; + wcex.lpfnWndProc = WndProc; + wcex.cbClsExtra = 0; + wcex.cbWndExtra = 0; + wcex.hInstance = hInstance; + wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MICROPHONEMUTER)); + wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); + wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); + wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_MICROPHONEMUTER); + wcex.lpszClassName = szWindowClass; + wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); + + return RegisterClassExW(&wcex); +} + +// +// FUNCTION: InitInstance(HINSTANCE, int) +// +// PURPOSE: Saves instance handle and creates main window +// +// COMMENTS: +// +// In this function, we save the instance handle in a global variable and +// create and display the main program window. +// +BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) +{ + hInst = hInstance; // Store instance handle in our global variable + + HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, 450, 350, nullptr, nullptr, hInstance, nullptr); + + if (!hWnd) + { + return FALSE; + } + + ShowWindow(hWnd, nCmdShow); + UpdateWindow(hWnd); + + return TRUE; +} + +// +// FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM) +// +// PURPOSE: Processes messages for the main window. +// +// WM_COMMAND - process the application menu +// WM_PAINT - Paint the main window +// WM_DESTROY - post a quit message and return +// +// +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch (message) + { + case WM_COMMAND: + { + switch (wParam) + { + case MUTE_BUTTON: + { + MuteDefaultMic(); + RedrawWindow(hWnd, NULL, NULL, RDW_ERASE | RDW_INVALIDATE | RDW_ERASENOW | RDW_ALLCHILDREN); + } + break; + + case UNMUTE_BUTTON: + { + UnmuteDefaultMic(); + RedrawWindow(hWnd, NULL, NULL, RDW_ERASE | RDW_INVALIDATE | RDW_ERASENOW | RDW_ALLCHILDREN); + } + break; + } + + int wmId = LOWORD(wParam); + // Parse the menu selections: + switch (wmId) + { + case IDM_ABOUT: + DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); + break; + case IDM_EXIT: + DestroyWindow(hWnd); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + } + break; + case WM_PAINT: + { + PAINTSTRUCT ps; + HDC hdc = BeginPaint(hWnd, &ps); + TextOut(hdc, 5, 5, appName, _tcslen(appName)); + + + switch (status) + { + case NULL: + { + HWND hwndButton = CreateWindow( + L"BUTTON", + L"Mute Microphone", + WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, + 5, 35, + 150, 25, + hWnd, + (HMENU)MUTE_BUTTON, + (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE), + NULL); + + HWND hwndButton1 = CreateWindow( + L"BUTTON", + L"Unmute Microphone", + WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, + 165, 35, + 150, 25, + hWnd, + (HMENU)UNMUTE_BUTTON, + (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE), + NULL); + } + break; + case MUTED: + { + TextOut(hdc, 5, 65, successfulMuteMsg, _tcslen(successfulMuteMsg)); + } + break; + case UNMUTED: + { + TextOut(hdc, 5, 65, successfulUnmuteMsg, _tcslen(successfulUnmuteMsg)); + } + break; + case NO_DEVICE: + { + TextOut(hdc, 5, 65, noDefaultDevice, _tcslen(noDefaultDevice)); + } + break; + default: + { + TextOut(hdc, 5, 65, unknownStatus, _tcslen(unknownStatus)); + } + break; + } + + EndPaint(hWnd, &ps); + } + break; + case WM_DESTROY: + PostQuitMessage(0); + break; + default: + return DefWindowProc(hWnd, message, wParam, lParam); + } + return 0; +} + +// Message handler for about box. +INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +{ + UNREFERENCED_PARAMETER(lParam); + switch (message) + { + case WM_INITDIALOG: + return (INT_PTR)TRUE; + + case WM_COMMAND: + if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL) + { + EndDialog(hDlg, LOWORD(wParam)); + return (INT_PTR)TRUE; + } + break; + } + return (INT_PTR)FALSE; +} + +void MuteDefaultMic() { + IMMDeviceEnumerator* deviceEnumerator = NULL; + hResult = CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IMMDeviceEnumerator), (LPVOID*)&deviceEnumerator); + IMMDevice* defaultDevice = NULL; + + hResult = deviceEnumerator->GetDefaultAudioEndpoint(eCapture, eCommunications, &defaultDevice); + deviceEnumerator->Release(); + deviceEnumerator = NULL; + + if (defaultDevice == NULL) { + OutputDebugStringW(L"Default device not found!"); + status = NO_DEVICE; + return; + } + + IAudioEndpointVolume* endpointVolume = NULL; + hResult = defaultDevice->Activate(__uuidof(IAudioEndpointVolume), CLSCTX_INPROC_SERVER, NULL, (LPVOID*)&endpointVolume); + defaultDevice->Release(); + defaultDevice = NULL; + + hResult = endpointVolume->SetMasterVolumeLevelScalar(0.0, NULL); + hResult = endpointVolume->SetMute(true, NULL); + endpointVolume->Release(); + + OutputDebugStringW(L"Done muting\n"); + status = MUTED; +} + +void UnmuteDefaultMic() { + IMMDeviceEnumerator* deviceEnumerator = NULL; + hResult = CoCreateInstance(__uuidof(MMDeviceEnumerator), NULL, CLSCTX_INPROC_SERVER, __uuidof(IMMDeviceEnumerator), (LPVOID*)&deviceEnumerator); + IMMDevice* defaultDevice = NULL; + + hResult = deviceEnumerator->GetDefaultAudioEndpoint(eCapture, eCommunications, &defaultDevice); + deviceEnumerator->Release(); + deviceEnumerator = NULL; + + if (defaultDevice == NULL) { + OutputDebugStringW(L"Default device not found!"); + status = NO_DEVICE; + return; + } + + IAudioEndpointVolume* endpointVolume = NULL; + hResult = defaultDevice->Activate(__uuidof(IAudioEndpointVolume), CLSCTX_INPROC_SERVER, NULL, (LPVOID*)&endpointVolume); + defaultDevice->Release(); + defaultDevice = NULL; + + hResult = endpointVolume->SetMasterVolumeLevelScalar(1.0, NULL); + hResult = endpointVolume->SetMute(false, NULL); + endpointVolume->Release(); + + OutputDebugStringW(L"Done unmuting\n"); + status = UNMUTED; +} \ No newline at end of file diff --git a/MicrophoneMuter/MicrophoneMuter.h b/MicrophoneMuter/MicrophoneMuter.h new file mode 100644 index 0000000..ca8212b --- /dev/null +++ b/MicrophoneMuter/MicrophoneMuter.h @@ -0,0 +1,6 @@ +#pragma once + +#include "resource.h" + +void MuteDefaultMic(); +void UnmuteDefaultMic(); \ No newline at end of file diff --git a/MicrophoneMuter/MicrophoneMuter.ico b/MicrophoneMuter/MicrophoneMuter.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*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cj>I$WEws=5;5FhPb7RV0lEbZ>mE?o+XPo&Q@FaHv{s!Rn6#EBv55_{v zqC(U^J*~hxB`spr0&GDGyjMSQv>jG!ke1neM`caMmi+BB#*rU6*hXJIhF0o`4=ucj z&$dcr`x0mHyf}W=8JFi0;)r_>sdA0%wX!^mXIOu)aZ!!v_2Zgv>2yjl5{ZMp`XWzM z>>e{z}SYm~~pP7)jaV8y$aK5w_1Bm5!zK`?X7rounPxhhL=^t>FA^_gke) zM9xc`T#^}isD8V8I~XFmrr$M%ppiv~=OT9ll|ANLZl$uRuHSEldJ8~){JW}6+;6_) z*>r=I#aEWS4_{>O=dSYYo}WMeHI97$bbj0eVwo8{A~&GFUL()r`N$v1I + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {7a679cbb-d7b6-46c9-8bd3-e49a8fa9845b} + MicrophoneMuter + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + Level3 + true + _DEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + + + + + Level3 + true + true + true + NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + + + Windows + true + true + true + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MicrophoneMuter/MicrophoneMuter.vcxproj.filters b/MicrophoneMuter/MicrophoneMuter.vcxproj.filters new file mode 100644 index 0000000..ea1d9f0 --- /dev/null +++ b/MicrophoneMuter/MicrophoneMuter.vcxproj.filters @@ -0,0 +1,49 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Header Files + + + Header Files + + + Header Files + + + Header Files + + + + + Source Files + + + + + Resource Files + + + + + Resource Files + + + Resource Files + + + \ No newline at end of file diff --git a/MicrophoneMuter/Resource.h b/MicrophoneMuter/Resource.h new file mode 100644 index 0000000..4f576d6 --- /dev/null +++ b/MicrophoneMuter/Resource.h @@ -0,0 +1,30 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by MicrophoneMuter.rc + +#define IDS_APP_TITLE 103 + +#define IDR_MAINFRAME 128 +#define IDD_MICROPHONEMUTER_DIALOG 102 +#define IDD_ABOUTBOX 103 +#define IDM_ABOUT 104 +#define IDM_EXIT 105 +#define IDI_MICROPHONEMUTER 107 +#define IDI_SMALL 108 +#define IDC_MICROPHONEMUTER 109 +#define IDC_MYICON 2 +#ifndef IDC_STATIC +#define IDC_STATIC -1 +#endif +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS + +#define _APS_NO_MFC 130 +#define _APS_NEXT_RESOURCE_VALUE 129 +#define _APS_NEXT_COMMAND_VALUE 32771 +#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_SYMED_VALUE 110 +#endif +#endif diff --git a/MicrophoneMuter/framework.h b/MicrophoneMuter/framework.h new file mode 100644 index 0000000..33a6be6 --- /dev/null +++ b/MicrophoneMuter/framework.h @@ -0,0 +1,15 @@ +// header.h : include file for standard system include files, +// or project specific include files +// + +#pragma once + +#include "targetver.h" +#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers +// Windows Header Files +#include +// C RunTime Header Files +#include +#include +#include +#include diff --git a/MicrophoneMuter/small.ico b/MicrophoneMuter/small.ico new file mode 100644 index 0000000000000000000000000000000000000000..b3ec03bd617f32e58128fa977fd6ac9605124f4b GIT binary patch literal 46227 zcmeG_3s@7^(i=en%FAlCDneRC>$M_k6<<8GwYF8!R&T*-0nuNr4^Sy8A`n5bmRqT{ zK5o_G(b(u^yZQ8UkW5(>;x9{lDqk(~eD_5>eNlDqb zapUaSv*o2vfswy>543gya=eTKJ}bJsb08RyLkrbzg~EDF)&yx{%~3lMOmjI z2r>fq&!#BLn;*SDdg=``Ge%vn(_ zHtGJ!s?^=xQ)VolXES2J@MURR$8V^WUk}@~H&O9u;)XhDr?A*8NV1jpnGS9@R3zjJlMS^bL*v(^3?X@it_xf^eOAIF1)HHQBqYfeohaonv$Cm)jId+ zOVxIDS1y%GYM&OxMbuR%tEwZv6c&U_detcl+-(L0I+vtX6%TS(6-esN{F)w7bMOD| zOWW0^33nGuWA6=U_k~Z`_8H2%Xi~K^>vZ`oLJj;+dof+Rb*dtUE!B9(#yAE zinCMDvqwpLLl>`DVqzVqn&SNSS4zywZ(O!oQ5+P}ZqDo*iQywp2?H;6m*1FM+v(ik zKuPue2llH<lpzzQC0ZQ&fW!@2| zCA+sBFDXoZ&s`OJt!UeG*-;nSw@IqwS!bgXV{4brPy0l^ru(7V((LEr;MieH9$eol ztF#|gWOnaxM#TNAhX?ycZV#28>t6U2vUhev*6X=!y^Cyctm@*mSw&||2b89k2T12S zs5WPQGwMKAfV2p*(!)o6B2$E!rv#ZHO0PlduB^0pWIyVm*{I^DzUzC8eCW8? z=BFT&pQ;pzy=-=tzc!;ZH7GzD1dQ^-Q+y&NpT{jR`AMZnyl1oX>1)aw`%wjE%C9pb z{^#7`jy{pUx+;`bicdg?AKvS8+Eg+s!X*4ofn?BwTUi5A9Wt#IhcW`Cp;u~zX&I+$ z6~0HjCOi(CTN{<%GdDz;c&lIU&Wcl8MG?v_mEWu%n^Nd_qUfnFly0f|W~(eABVuOa zHt$DA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=bA?y z*gnBizg*Y9cYJY_@nqfC^oix4Qmc+gMvaf#%Wl+G8F*R8j$Df>NMHP`dl6Do;zmXf zBMwMBvTwC zx39j>7!rS6{Q6h+KReEwlW$7=HK#o`Z)qBF5hqHnq=@mnn;+b+r$5xQ~!YXt>yn zzw>PDchx$4fo*6#2|*s8mGem3Ty4g^FRpu;EMH(-9_R;6+stQlgMS;`*!Kpwm&M#S z)!2z`5*>8z;ozPO>dp2s?lm#@YcS1@5#+)BD<++$T?t@60IfbiU*HAhA^jo~Ren=!kukg)&8SBOE_~-UA>GK&yWsuhIb4Bal23BMSwUQPd=3>6gt zkl&Mem_kO+1$GfTIbpUK diff --git a/README.md b/README.md new file mode 100644 index 0000000..0d3663d --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Microphone Muter + +A simple [Win32 C++](https://learn.microsoft.com/en-us/windows/win32/learnwin32/learn-to-program-for-windows) desktop +program that I made to start learning how to do desktop development in Windows. + +## Usage + +You can use this software as a CLI program and as a GUI desktop program. The "_CLI mode_" supports the following: +* `MicrophoneMuter.exe mute` - Mutes the default microphone. +* `MicrophoneMuter.exe unmute` - Unmutes the default microphone. + +## Expectations + +This is my first Win32 C++ desktop program, and I just went _straight in_ instead of following something like the +tutorial I linked above, this means that **the code is not good**, and **I'm not liable for any claim, damages or +other liability, arising from the usage of this software**. + +Even though I just said that, this is something I use on a daily basis and any bug report or suggestion will be +highly appreciated :)