olie122333
05-25-2008, 04:10 AM
Hi,
Im making a D3D, and have 5 bypass addresses which i need to NOP twice. I can do this in a function called H_Bypass, but where do i put the code ?
I have tried in BeginScene and EndScene, but both just exit War Rock ?
Here is my function for the NOP's:
void PBSNOPPBS998( void* pxAddress, int size )
{
unsigned long Protection;
BYTE IWriteNoFunctions[ ] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
memcpy((void*)pxAddress, (const void*)IWriteNoFunctions, size);
VirtualProtect((void*)pxAddress, size, Protection, 0);
}
Here is the function bool code:
bool H_Bypass = true;
(I want the bypass to come on automatically!)
Here is the function code:
if(H_Bypass)
{
PBSNOPPBS998( ( void* )Bypass_Addie1, 2);
PBSNOPPBS998( ( void* )Bypass_Addie2, 2);
PBSNOPPBS998( ( void* )Bypass_Addie3, 2);
PBSNOPPBS998( ( void* )Bypass_Addie4, 2);
PBSNOPPBS998( ( void* )Bypass_Addie5, 2);
H_Bypass = !H_Bypass;
}
(I want to NOP the 5 addies, then stop the bypass so i don't NOP them again...)
(Addresses not posted aulthough i will sell them...) :p
Any help is much apprichiated,
Olie122333
Im making a D3D, and have 5 bypass addresses which i need to NOP twice. I can do this in a function called H_Bypass, but where do i put the code ?
I have tried in BeginScene and EndScene, but both just exit War Rock ?
Here is my function for the NOP's:
void PBSNOPPBS998( void* pxAddress, int size )
{
unsigned long Protection;
BYTE IWriteNoFunctions[ ] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
memcpy((void*)pxAddress, (const void*)IWriteNoFunctions, size);
VirtualProtect((void*)pxAddress, size, Protection, 0);
}
Here is the function bool code:
bool H_Bypass = true;
(I want the bypass to come on automatically!)
Here is the function code:
if(H_Bypass)
{
PBSNOPPBS998( ( void* )Bypass_Addie1, 2);
PBSNOPPBS998( ( void* )Bypass_Addie2, 2);
PBSNOPPBS998( ( void* )Bypass_Addie3, 2);
PBSNOPPBS998( ( void* )Bypass_Addie4, 2);
PBSNOPPBS998( ( void* )Bypass_Addie5, 2);
H_Bypass = !H_Bypass;
}
(I want to NOP the 5 addies, then stop the bypass so i don't NOP them again...)
(Addresses not posted aulthough i will sell them...) :p
Any help is much apprichiated,
Olie122333