How do I create a Windows Runtime IRandomAccessStream around a bunch of bytes or a classic COM IStream? Another wrapper function. Click here to read the article