How to send object instances to WndProc
问题 I'm using my custom class that describes some states and values: class MyClass { int State; String Message; IList<string> Values; } Because of application architecture, for forms interaction is used messages and its infrastructure (SendMessage/PostMessage, WndProc). The question is - how, using SendMessage/PostMessage, to send an instance of MyClass to WndProc? In my code PostMessage is defined next way: [DllImport("user32.dll", SetLastError = true)] public static extern bool PostMessage