Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 19:06

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

Advertisement



C++ WndProc Detour

Discussion on C++ WndProc Detour within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
jackicola's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 129
Received Thanks: 15
C++ WndProc Detour

Hi,
ich will das WndProc von einem fremden Programm Detouren, aber ich weiß nicht wie der Name der WndProc ist... Wie kann ich ihn herausfinden?
Also das Programm hat nur ein Fenster sagen wir das Fenster heißt "Test" und ich habe das Handle dazu kann ich jetzt irgendwie den Name der WndProc herausfinden?
MFG!
jackicola is offline  
Old 07/26/2011, 15:16   #2


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
brauchst du nicht. das kannst du mit SetWindowLongPtr machen
buFFy! is offline  
Thanks
1 User
Old 07/26/2011, 16:10   #3
 
jackicola's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 129
Received Thanks: 15
Ja aber wenn ich es damit mache dann wird ja die ganze WndProc geändert und das ganze andere Zeug ist weg... Ich will ja nur was hinzufügen.

Ok EDIT: Ich habe es jetzt mit GetWindowLong versucht und bekomme dann einen Pointer zurück nur wie kann ich mit diesem Pointer die Funktion Detouren? MFG
jackicola is offline  
Old 07/26/2011, 22:43   #4


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Blödsinn, du musst nur zum alten WndProc returnen, dann geht da nichts verloren.
SetWindowLongPtr ist immernoch das was du suchst.
buFFy! is offline  
Thanks
2 Users
Old 07/27/2011, 11:25   #5
 
jackicola's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 129
Received Thanks: 15
Danke, ich habs jetzt verstanden!
jackicola is offline  
Reply


Similar Threads Similar Threads
AU3 Detour UDF - A simple way
05/21/2017 - AutoIt - 30 Replies
Here we go. Example is included If you have any wishes concerning functions, just post here. same with questions! Functions: OpenProcess Returns the Handle of the given Process by Id
QUESTION - redirect/detour IP of an .exe
05/05/2011 - General Coding - 3 Replies
Someone know how to do it? redirecting or detour the IP of an executable.. to localhost (127.0.0.1) --- Weiß einer wie das geht? umleiten einer IP bzw Verbindung von einer .exe zu localhost (127.0.0.1) ..
[Serach]Detour
02/19/2011 - WarRock Hacks, Bots, Cheats & Exploits - 5 Replies
Hi, Who has and will give the detour?
Suche Detour
01/18/2011 - WarRock - 15 Replies
Der titel sagt alles. Gebe meinetwegen auch e*gold dafür.
[C++]Detour - Register Adressen
08/11/2010 - C/C++ - 11 Replies
Hallo, und zwar möchte ich für ein Spiel einen Packet Logger schreiben. Jedenfalls hab ich nun ein Problem. Die Werte werden vor dem Aufruf in's Register geschrieben. (ganz normal eben) Dann greift meine Funktion per detour ein und überschreibt natürlich jetzt wieder den kompletten Register. Jetzt springt die Funktion wieder zur Ur-Funktion, allerdings mit den falschen Werten im Register. (D.h. -> Crash). So, jetzt hab ich versucht bevor meine Funktion aufgerufen wird per inline asm...



All times are GMT +1. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.