This dll can change variable value via memory address in the target process into which we inject it. Just we need the desired variable memory address.
You can compile the test program with g++.
Compile commands:
g++ -c main.cpp -o main.o
g++ -Wall -o program.exe main.o
YT video: https://youtu.be/9pWb3Dasiao