Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 07:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C] DirectInput hooking

Discussion on [C] DirectInput hooking within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 24
Received Thanks: 7
[C] DirectInput hooking

So, I'm working with a process which loads d3dx9.dll at runtime, and I believe it also captures keystrokes through DirectInput. So, my questions are:

How do I determine whether it is actually using DirectInput to capture keystrokes?

What is the callback which fires to send those keystrokes to the process?

I have read some tutorials and code for this sort of thing, and I have loaded the process into both OllyDbg and IDA Pro. I can see it loading d3dx9.dll, but not dinput.dll. The source suggests that DirectInput8Create is the callback for mouse/keyboard input. I dumped the first 256 bytes of DirectInput8Create loaded in my own application from LoadLibrary/GetProcAddress, and I cannot find a byte match in the process at runtime. Perhaps I am going about it wrong. Even if I do find it, I still then have to figure out how to map that address back to an entry in the IAT. Is this process even correct, or am I going about this completely wrong?
pushbyte is offline  
Reply

Tags
directinput, directx, hook, hooking


Similar Threads Similar Threads
DirectInput hook
09/01/2013 - General Coding - 9 Replies
Da die Frage in einem anderen Thread aufkam, benutzt ihr fremde Libraries um einen Hook durchzuführen und wenn ja welche ? Kann man damit HackShield oder GameGuard umgehen und einen Bot mit virtuellen Tastendrücken ansteuern?
Help with Hooking (Detour) DirectInput
11/25/2012 - C/C++ - 1 Replies
Hello, I want to hook or Detour DirectInput so I can send keys to a game (Aion). Does someone know a tutorial where I can learn how to do this or can someone help me? Please :) Greets!
DirectInput Injected DLL
03/02/2012 - General Coding - 30 Replies
Moin. ich hab immer noch ein problem mit meinem "Eden Eternal" Bot. und zwar kann ich mit dem Bot keinerlei Tasten ingame drücken - es sei denn das Chatfenster ist offen und angewählt -. da hab ich alles weitere probiert wie PostMessage SendInput Keybd_Event nichts davon funktioniert.
Making a bot: DirectInput
08/16/2010 - Perfect World - 2 Replies
I have been looking for the place where it checks the keyboard for keypresses, but I haven't been able to get there yet. It's probably not done in the Elementclient.exe, but in one of the dlls. (ifc22, or immwrapper.dll). I'm pretty sure it uses DirectInput (it loads dinput.dll). I need this because I want to make a bot in C++ and don't want to send keystrokes to the client, so that it is easy to use. I have found the virtual mouse function in ifc22.dll: .text:10012A40 ; public:...
C++ D3D Hooking
08/24/2009 - C/C++ - 12 Replies
Hallo zusammen, ich stehe gerade vor folgendem Problem: ich habe eine DLL und einen Loader gecoded, jedoch will ich anstelle des Loader einen Injecter haben, sprich: das spiel, in das injected werden soll, soll schon laufen. Natürlich hab ich das ganze schon probiert, jedoch werden die D3D-funktionen nicht wirklich gehookt, da die DLL auf ein Direct3DCreate9 wartet. Da diese Funktion aber wahrscheinlich direkt beim Starten des "Opfer-Spiels" ausgeführt wird, werden deswegen die anderen...



All times are GMT +1. The time now is 07:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.