Hi, as a wrap-up for this forum thread, I found an elegant way to take a result as C wchar_t* from an FFI call on Windows, based on the idea of ExternalData>>#fromCString. If anybody needs it: https://github.com/eftomi/pharo-uFFI-readWin32WideString.
Best wishes, Tomaz -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html