- Home /
Question by
YoulSystems.INC · Mar 24, 2015 at 01:41 AM ·
c#windowsmessagereceiver
Receiving windows message in Unity
now, I can send message from unity to C# but i have one question I can send message from C# to C# not to send message from C# to unity How do I receive messages from other programs to unity.
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case Win32.WM_COPYDATA:
Win32.CopyDataStruct st = (Win32.CopyDataStruct)Marshal.PtrToStructure(m.LParam, typeof(Win32.CopyDataStruct));
string strData = Marshal.PtrToStringUni(st.lpData);
}
}
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Windows Forms freezes Unity game 1 Answer
UI only, on top of user desktop PC 1 Answer
My T4 template tt file customtool changes when editor updates assets 0 Answers