Click here to Skip to main content
15,926,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: If statement not reading gridview row Pin
Skippums10-Jan-08 7:35
Skippums10-Jan-08 7:35 
GeneralRe: If statement not reading gridview row Pin
Member 439056910-Jan-08 8:14
Member 439056910-Jan-08 8:14 
GeneralRe: If statement not reading gridview row Pin
Skippums10-Jan-08 8:35
Skippums10-Jan-08 8:35 
GeneralRe: If statement not reading gridview row Pin
Member 439056910-Jan-08 8:48
Member 439056910-Jan-08 8:48 
QuestionHello' Who can give me a hand? Pin
Member 472830110-Jan-08 6:02
Member 472830110-Jan-08 6:02 
GeneralRe: Hello' Who can give me a hand? Pin
DaveyM6911-Jan-08 4:48
professionalDaveyM6911-Jan-08 4:48 
GeneralRe: Hello' Who can give me a hand? Pin
Member 472830111-Jan-08 5:06
Member 472830111-Jan-08 5:06 
QuestionPrintPreviewControl: Suppress pagecount message? Pin
W Balboos, GHB10-Jan-08 5:45
W Balboos, GHB10-Jan-08 5:45 
AnswerRe: PrintPreviewControl: Suppress pagecount message? Pin
m@u10-Jan-08 6:22
m@u10-Jan-08 6:22 
GeneralRe: PrintPreviewControl: Suppress pagecount message? Pin
W Balboos, GHB10-Jan-08 7:56
W Balboos, GHB10-Jan-08 7:56 
GeneralList<int> Serialization Format</int> Pin
justwantcode10-Jan-08 5:14
justwantcode10-Jan-08 5:14 
GeneralRe: List Serialization Format Pin
Skippums10-Jan-08 5:17
Skippums10-Jan-08 5:17 
GeneralRe: List Serialization Format Pin
justwantcode10-Jan-08 6:59
justwantcode10-Jan-08 6:59 
General.Net 1.0 & 2.0 on the same machine Pin
kozu10-Jan-08 4:27
kozu10-Jan-08 4:27 
GeneralRe: .Net 1.0 & 2.0 on the same machine Pin
Luc Pattyn10-Jan-08 4:40
sitebuilderLuc Pattyn10-Jan-08 4:40 
GeneralRe: .Net 1.0 & 2.0 on the same machine Pin
Justin Perez10-Jan-08 4:40
Justin Perez10-Jan-08 4:40 
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 

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.