window messages hooking???
-
hi, i want to to hook a certain msg for a window like moving or sizing, this window is standalone app and i have its handle is there any APIS help me do this ?
If you want too hook your windows messages of your own application implement
IMessageFilter
interface and inheit your form from it then useApplication.AddMessageFilter
to add it to your application and do whatever you want with it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein -
If you want too hook your windows messages of your own application implement
IMessageFilter
interface and inheit your form from it then useApplication.AddMessageFilter
to add it to your application and do whatever you want with it. Mazy "I think that only daring speculation can lead us further and not accumulation of facts." - Albert Einstein -
You'll need to use a system hook, if nothing more than to inject your code into the other application's process space (since an application doesn't dispatch messages to other processes). See Using Hooks from C#[^].
Microsoft MVP, Visual C# My Articles