https://bugs.winehq.org/show_bug.cgi?id=54963
--- Comment #7 from Tomáš Bžatek bugs@bzatek.net --- Managed to find what looks like an independent reimplementation of the Storage Stream classes, MIT licensed, though written in C#. Might be a good source of inspiration:
https://github.com/nanoframework/Windows.Storage.Streams