Click here to Skip to main content
15,923,902 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net 1.0 & 2.0 on the same machine Pin
mav.northwind10-Jan-08 8:43
mav.northwind10-Jan-08 8:43 
GeneralRe: .Net 1.0 & 2.0 on the same machine Pin
Zoltan Balazs10-Jan-08 11:52
Zoltan Balazs10-Jan-08 11:52 
Generalneed event arguments for mshtml.HTMLElementEvents2_onclickEventHandler Pin
balakpn10-Jan-08 3:39
balakpn10-Jan-08 3:39 
GeneralRe: need event arguments for mshtml.HTMLElementEvents2_onclickEventHandler Pin
Judah Gabriel Himango10-Jan-08 5:20
sponsorJudah Gabriel Himango10-Jan-08 5:20 
GeneralRe: need event arguments for mshtml.HTMLElementEvents2_onclickEventHandler Pin
Skippums10-Jan-08 5:33
Skippums10-Jan-08 5:33 
QuestionDLL Injection - Reading Messages in c# Pin
OsoreWatashi10-Jan-08 3:25
OsoreWatashi10-Jan-08 3:25 
GeneralRe: DLL Injection - Reading Messages in c# Pin
Skippums10-Jan-08 4:57
Skippums10-Jan-08 4:57 
GeneralRe: DLL Injection - Reading Messages in c# Pin
OsoreWatashi10-Jan-08 5:20
OsoreWatashi10-Jan-08 5:20 
I have found many, many examples that use the SetWindowsHookEx function. But in my case they never work. Though I have never used the GetWindowThreadProcessId function before. That may make a little difference, although I've tested it with all the proccess Id's before...

I want to place a Hook into a different application of which I totally do not know how it works. So far I guess I have to inject a DLL, but how exactly I do this or what this DLL has to be able to do, I don't know.

All I want is the same functionality as Spy++ has: reading all the messages of a Window, which is in my case a loadingbar. It has it's own hwnd and such, and it receives/sends messages such as WM_PAINT (I want to read those!).

So far I'm only able to successfull place either a hook on the same process or a global hook. But those two aren't good enough for what I want to do. Though, it's rather easy to send messages to that loadingbar, so I'm realy confused why reading them should be so hard/difficult.


Thank you for your quick reply and I actually hope you can bring me a little exampe from somewhere that shows me how to place a hook on a different process totally different of the process my program is running in: exactly what Spy++ does...
I will try with the GetWindowThreadProcessId function, but I think that won't help either...
GeneralRe: DLL Injection - Reading Messages in c# Pin
Skippums10-Jan-08 5:42
Skippums10-Jan-08 5:42 
GeneralRe: DLL Injection - Reading Messages in c# Pin
OsoreWatashi11-Jan-08 1:04
OsoreWatashi11-Jan-08 1:04 
NewsRe: DLL Injection - Reading Messages in c# Pin
OsoreWatashi11-Jan-08 1:09
OsoreWatashi11-Jan-08 1:09 
NewsRe: DLL Injection - Reading Messages in c# Pin
OsoreWatashi14-Jan-08 1:42
OsoreWatashi14-Jan-08 1:42 
QuestionDelegate Question Pin
Programm3r10-Jan-08 3:05
Programm3r10-Jan-08 3:05 
GeneralRe: Delegate Question Pin
Justin Perez10-Jan-08 3:31
Justin Perez10-Jan-08 3:31 
QuestionRe: Delegate Question Pin
Programm3r10-Jan-08 3:40
Programm3r10-Jan-08 3:40 
GeneralRe: Delegate Question Pin
Luc Pattyn10-Jan-08 4:43
sitebuilderLuc Pattyn10-Jan-08 4:43 
GeneralStoring hexadecimal values in XML Pin
Tiger45610-Jan-08 3:02
Tiger45610-Jan-08 3:02 
GeneralRe: Storing hexadecimal values in XML Pin
Skippums10-Jan-08 5:02
Skippums10-Jan-08 5:02 
GeneralProgramatically discover the version of a pdf file Pin
Neophyte3010-Jan-08 2:49
Neophyte3010-Jan-08 2:49 
GeneralRe: Programatically discover the version of a pdf file Pin
Luc Pattyn10-Jan-08 3:39
sitebuilderLuc Pattyn10-Jan-08 3:39 
GeneralRe: Programatically discover the version of a pdf file [modified] Pin
Neophyte3010-Jan-08 6:00
Neophyte3010-Jan-08 6:00 
QuestionSearching the properties in the Active Directory Pin
khuzwayom10-Jan-08 2:18
khuzwayom10-Jan-08 2:18 
GeneralRe: Searching the properties in the Active Directory Pin
Justin Perez10-Jan-08 3:37
Justin Perez10-Jan-08 3:37 
GeneralRe: Searching the properties in the Active Directory Pin
khuzwayom10-Jan-08 20:02
khuzwayom10-Jan-08 20:02 
Generalexcel file export Pin
Member 475670910-Jan-08 2:08
Member 475670910-Jan-08 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.