[Solved] Unexplainable bug in my code

There are several issues with your code (using legacy APIs, using bad parameters, missing logic, etc). Try something more like this instead: #include <iostream> #include <Windows.h> const DWORD transparenton = 0x00000001; const DWORD transparentoff = 0x00000000; using namespace std; void pause(); void act(HKEY key); bool getTransparency(HKEY key, DWORD &value); void setTransparency(HKEY key, DWORD value); int … Read more