C
Capsule
Hi everyone!
I'm trying to get the windows messages sent to and from another
application.
I'm able to get the handle to this object, and I pass it into the
following function:
public class MyHookClass : NativeWindow {
public MyHookClass(IntPtr hWnd) {
// Assign the handle from the source window to this
class.
this.AssignHandle(hWnd);
}
protected override void WndProc(ref Message m) {
Console.WriteLine(m.ToString());
base.WndProc(ref m);
}
}
Problem is, nothing is ever shown.
My assumtion is that the object I'm trying to pull from is not a
NativeWindow, but when I look at it through Spy++, messages are
present.
I figure if Spy++ can do it, I should be able to also...
Any ideas?
I'm using .NET 2.0 and C#
thanks in advance
I'm trying to get the windows messages sent to and from another
application.
I'm able to get the handle to this object, and I pass it into the
following function:
public class MyHookClass : NativeWindow {
public MyHookClass(IntPtr hWnd) {
// Assign the handle from the source window to this
class.
this.AssignHandle(hWnd);
}
protected override void WndProc(ref Message m) {
Console.WriteLine(m.ToString());
base.WndProc(ref m);
}
}
Problem is, nothing is ever shown.
My assumtion is that the object I'm trying to pull from is not a
NativeWindow, but when I look at it through Spy++, messages are
present.
I figure if Spy++ can do it, I should be able to also...
Any ideas?
I'm using .NET 2.0 and C#
thanks in advance