@genesisVI
try this to freez a value
while (1)// this mean inside this all will be repeated forever
{
*(DWORD*)YOUR_ADDRESS = YOURVALUE;
Sleep(1);// this sleep for 1 sec to keep the programm running normaly you can test and remove it and you will freez instead of freezing a variable

}