|
-
June 1st, 2011, 07:44 AM
#1
PostThreadMessage in c#
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|