Hi,


I am using PostThreadMessage() for sending data from my main form to a thread.
and receiving with GetMessage()


[DllImport("coredll.dll")]
public static extern bool PostThreadMessage(int threadId, uint msg, ushort wParam, uint lParam);

[DllImport("coredll.dll")]
public static extern int GetMessage(ref MSG msg, IntPtr hwnd, ushort fMin, uint fMax);


if I send msg in interger format then I am able to get the data.


But I want to send/recv data in structure format only.
Can anybody tell me how this can be done in c#


Thanks in advance