Create "ghost" form from Win32 handle
I'd like to know if there is any mean of accessing a native window win32 structure from its handle passed to a .net assembly.
In theory it would be possible since the handle is a system unique identifier of a structure; for methods it works using the windows message pump + PInvoke. The handle is referenced in a system ressources table with it's reserved space. Since this structure if of type "form"/"window", then the offsets to its properties would be the same whatever the active process is accessing them, both for managed and unmamaged processes. I'd even be OK with PInvoke.
If anyone has gone thru this experience I'd be happy to learn about.