I\'m new to C# (from a native C++ background) and I\'m trying to write a little UI to print windows broadcast messages among other things. I\'ve overridden the default WndP
The above answer was great and it nearly solved the same issue for me but... I got what looks like Chinese characters back from the method (潆湵瑡氠慥瑳漠敮爠灥慥整浩条慮敭›䌢⸢). What I had to do was use the Marshal.PtrToStringAnsi(IntPtr) method as described here: http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.ptrtostringansi.aspx and here: http://answers.unity3d.com/questions/555441/unitys-simplest-plugin-print-does-not-work.html.
Once I made the change, my String was in English once more. Not sure why that was happening, but there ya go!