https://github.com/bash/fuck-ms-teams
An AppInit DLL that stops Microsoft Teams from hijacking the play/pause button.
https://github.com/bash/fuck-ms-teams
Last synced: about 1 year ago
JSON representation
An AppInit DLL that stops Microsoft Teams from hijacking the play/pause button.
- Host: GitHub
- URL: https://github.com/bash/fuck-ms-teams
- Owner: bash
- License: wtfpl
- Created: 2022-11-12T22:51:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-12T22:54:22.000Z (over 3 years ago)
- Last Synced: 2025-02-21T15:19:26.575Z (about 1 year ago)
- Language: CMake
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Fuck MS Teams
Microsoft Teams hijacks the play/pause media key after playing the ringtone.
This project prevents Teams from registering for the play/pause media key with Windows and ruining everyone's day.
## Installation
Build the library using:
```
cmake -B build
cmake --build build --config Release
```
Register the library as AppInit DLL in your registry:
* Set `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\RequireSignedAppInit_DLLs = 0` (dword)
* Set `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\LoadAppInit_DLLs = 1` (dword)
* Add `\build\Release\fuck-ms-teams.dll` to `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs` (string)
## FAQ
### How does it work?
Windows provides a mechanism called «AppInit DLLs» for injecting custom code into every process.
Using this mechanism and the amazing `MinHook` library we can inject code into Teams.exe that patches the `RegisterHotKey` function.
### Is it safe?
Most likely not. Use at your own risk.