Search code examples
c#winformswindows-messages

Get the string of a Windows Message in C#?


I see that I can send strings in Windows Messages.
But how do I read them from a processed Windows Message?


Solution

  • You should use Marshal.PtrToStringAnsi() or (Marshal.PtrToStringUni() / Marshal.PtrToStringAuto())