| View previous topic :: View next topic |
| Author |
Message |
Hologram How do I cheat?
Reputation: 0
Joined: 07 Jan 2010 Posts: 8
|
Posted: Mon Jan 11, 2010 7:46 am Post subject: directx hooking and overlay surface |
|
|
Hi all,
I have injected dll into the game (by hardcoded asm in the exe). After setting the hook for the DirectDrawCreate API and getting DirectDraw object I have created overlay surface. Everything works ok. Overlay surface can be displayed over primary surface. But whenever I want to release overlay surface (also right after creation), game just quits. But what is important same happens when I change the resolution in the game.
Anyone experiences with this problem?
Thanks in advance. |
|
| Back to top |
|
 |
manc Grandmaster Cheater
Reputation: 1
Joined: 16 Jun 2006 Posts: 551
|
Posted: Mon Jan 11, 2010 9:33 am Post subject: |
|
|
I cant really help but off the top of my head I would guess its something with permissions relating to memory?
Do you have read/write access of all the right memory?
I'm burnt. I tried. _________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Jan 11, 2010 12:26 pm Post subject: |
|
|
can be a ton of things, losing the device / surface when you release() somehow?
you can debug injected dll's fyi, might want to give it a shot. you can do it straight in visual studio as well, inject, attach debugger to that process and it will break where you have it set. |
|
| Back to top |
|
 |
Hologram How do I cheat?
Reputation: 0
Joined: 07 Jan 2010 Posts: 8
|
Posted: Sat Jan 16, 2010 3:30 pm Post subject: |
|
|
| Thank you for answers, I'll try to debug it and detect some problem. Game can be run in windowed mode so it makes things simplier at least. |
|
| Back to top |
|
 |
|