ok, changing it doesnt make it work though. I have no idea what I need to change, bit that confused me most was
code:
var editStream = Interop.Allocate(24)
editStream.WriteDWORD(0,0)
editStream.WriteDWORD(8,0)
editStream.WriteDWORD(16,Interop.GetCallbackPtr("EditStreamCallback"))
Its probably wrong, as I copied it from documentation on msgplus along with using microsoft documentation.
I read that to retrieve the rtf text you need to use EM_STREAMOUT message which it then sends back to the calling program as an EditStreamCallback from which you can then get the string?
I made a window with a RichEditControl and been experimenting with it with no luck