Help with no bounds function

Posts 1–4 of 4 · Page 1 of 1
Help with no bounds function
Soryy to bother u guys but I'm having a problem with warrock freezing when I try to use this nobounds function and help would be aprreciated.

Here are my addies
#define ADR_BOUNDS_1 0x00C5DF9C
#define ADR_BOUNDS_2 0x00C5DFA0

Here is my function
void nobound() // no boundries
{

*(float*) ADR_BOUNDS_1 = 5000000;
*(float*) ADR_BOUNDS_2 = 5000000;
}
Code:
if (NoBounds)
{
long t=0;
unsigned long Protection;
VirtualProtect((void*)BOUNDS1, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)BOUNDS1, &t , sizeof(t));
VirtualProtect((void*)BOUNDS1, sizeof(t), Protection, 0);

VirtualProtect((void*)BOUNDS2, sizeof(t), PAGE_READWRITE, &Protection);
memcpy((void*)BOUNDS2, &t , sizeof(t));
VirtualProtect((void*)BOUNDS2, sizeof(t), Protection, 0);
}
Thanks worked great!
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?