The MatriX
  • Welcome To Ghbsys
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Sign in to follow this  
Hans211

D3D framework for D3D8 and D3D9

Recommended Posts

hans211 im doing my best to find out how to unhook something but i just dont get it

 

im using theese funktion:

void  DetourRemove(BYTE *src, BYTE *restore, const int len=0);

BOOL DetourRemove(LPVOID lpDetourCreatePtr);



BOOL DetourRemove(LPVOID lpDetourCreatePtr)
{
PBYTE pbMallocPtr = NULL;
DWORD dwFuncOrig = NULL;
DWORD dwProt = NULL;
int i=0;

if((pbMallocPtr = (PBYTE)lpDetourCreatePtr) == NULL)
	return FALSE;

// Find the orig jmp32 opcode sig
for(i=0; i<=DETOUR_MAX_SRCH_OPLEN; i++)
{
	if(pbMallocPtr[i] == SIG_OP_0 
		&& pbMallocPtr[i+1] == SIG_OP_1
		&& pbMallocPtr[i+2] == SIG_OP_2)
		break;

	if(i == DETOUR_MAX_SRCH_OPLEN)
		return FALSE;
}

// Calculate the original address
pbMallocPtr += (i-JMP32_SZ+1); // Inc to jmp
dwFuncOrig = *(DWORD*)pbMallocPtr; // Get 32bit jmp
pbMallocPtr += BIT32_SZ; // Inc to end of jmp
dwFuncOrig += (DWORD)pbMallocPtr; // Add this addr to 32bit jmp
dwFuncOrig -= (i-JMP32_SZ); // Dec by detour len to get to start of orig

// Write the overwritten bytes back to the original
VirtualProtect((LPVOID)dwFuncOrig, (i-JMP32_SZ), PAGE_READWRITE, &dwProt);
memcpy((LPVOID)dwFuncOrig, lpDetourCreatePtr, (i-JMP32_SZ));
VirtualProtect((LPVOID)dwFuncOrig, (i-JMP32_SZ), dwProt, new DWORD);

return TRUE;
}

 

 

can you pleas tell me how to unhook Drawindexedprimitive as example

Share this post


Link to post
Share on other sites

Thanks for this amazing menu followed the instructions and compilied no errors played in game tested perfect.

 

can you give a small instruction on how to add the on off hacks . also right under the fps a clock and replay time whould be great. [maybee this 2 on the right side and not in menu.]

 

I chouldnt find how to rotate the menu also , I wont to make it more left center. not top left.

 

Thanks... good work.

Share this post


Link to post
Share on other sites

I followed everything and I am getting this

 

"1>LINK : fatal error LNK1561: entry point must be defined"

 

any suggestions? I see the dll main but not sure why its not working

Share this post


Link to post
Share on other sites

I followed everything and I am getting this

 

"1>LINK : fatal error LNK1561: entry point must be defined"

 

any suggestions? I see the dll main but not sure why its not working

 

compline dll lol

Share this post


Link to post
Share on other sites

This is a complete D3D framework containing:

- D3D Base, all basic stuff, hooks, font manipulation

- D3D Menu with folders

- Transparent Background function

- Optimized D3Dfont, centered and right aligned text,

- Code works for d3d8 or d3d9 (define it in d3dbase.h)

- test programs for d3d8 and d3d9

- All within a 9.5 kb dll

 

Used existing code parts for the framework from:

- Azorbix: DetourFunc

- Dominik or Patrick: FindPattern

- Gordon : device pointer signature

- Microsoft: Fonts

 

e0svgk.jpg

 

The zip file contains:

- all source files

- d3d8 and d3d9 prebuild dll

- d3d8 and d3d9 test program

- dll injector

 

To build a new version :

- create an empty c++ project for a multithreaded dll

- make sure your c++ finds the directx sdk files

- add the files: d3dbase.*, d3dmenu.* and hackbase.cpp

- DON'T include the d3dfont files in your project !!

- edit the d3dbase.h and select for which version

- build it

 

Have fun !

 

D3Dbase.zip

Thx Is Working on Crazy shooter online me test .....D3d9.dll Thx

Share this post


Link to post
Share on other sites

This is a complete D3D framework containing:

- D3D Base, all basic stuff, hooks, font manipulation

- D3D Menu with folders

- Transparent Background function

- Optimized D3Dfont, centered and right aligned text,

- Code works for d3d8 or d3d9 (define it in d3dbase.h)

- test programs for d3d8 and d3d9

- All within a 9.5 kb dll

 

Used existing code parts for the framework from:

- Azorbix: DetourFunc

- Dominik or Patrick: FindPattern

- Gordon : device pointer signature

- Microsoft: Fonts

 

e0svgk.jpg

 

The zip file contains:

- all source files

- d3d8 and d3d9 prebuild dll

- d3d8 and d3d9 test program

- dll injector

 

To build a new version :

- create an empty c++ project for a multithreaded dll

- make sure your c++ finds the directx sdk files

- add the files: d3dbase.*, d3dmenu.* and hackbase.cpp

- DON'T include the d3dfont files in your project !!

- edit the d3dbase.h and select for which version

- build it

 

Have fun !

 

D3Dbase.zip

still working is it ????

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.