Peter
--
Peter Foot
Windows Embedded MVP
www.peterfoot.net | www.inthehand.com
"Stefano Magni" <Stefan...@discussions.microsoft.com> wrote in message
news:A8B1FF8D-F5C1-4821...@microsoft.com...
> Hi all,
> Is it possible intercept WM_COPYDATA that send from a unmanaged
> application
> to managed application ? Compact Framework haven't WndProc event. Is it
> possible intercept my WM_COPYDATA througth MessageWindow class ?
>
> Thanks
> Stefano
Use RegisterWindowMessage to register a unique message id for your app and
then have your MessageWindow broadcast this message and include it's own
hwnd in the wparam
Have a native method call which your managed app P/Invokes into and passes
the hwnd
Set a specific name on your MessageWindow and have your native app use
FindWindow to get the hwnd
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net
"Stefano Magni" <Stefan...@discussions.microsoft.com> wrote in message
news:44237DEA-F14D-4B6B...@microsoft.com...