locked
IStream -> IRandomAccessStream

    Question

  • I am in a situation where I have an IStream, and need to call a function that takes a IRandomAccessStream. The description for RandomAccessStreamOverStream seems to perfectly fit this need... however I do not see any constructors or functions that take an IStream and wrap a RandomAccessStreamOverStream around it or anything similar. I feel like... I'm completely missing something, or RandomAccessStreamOverStream lies about what it can do...

    Thursday, June 28, 2012 9:39 PM

Answers

  • Hi, take a look at CreateRandomAccessStreamOverStream function.

    http://msdn.microsoft.com/en-us/library/hh846257%28v=vs.85%29.aspx
    • Marked as answer by amkent Thursday, June 28, 2012 11:28 PM
    Thursday, June 28, 2012 10:21 PM

All replies

  • Hi, take a look at CreateRandomAccessStreamOverStream function.

    http://msdn.microsoft.com/en-us/library/hh846257%28v=vs.85%29.aspx
    • Marked as answer by amkent Thursday, June 28, 2012 11:28 PM
    Thursday, June 28, 2012 10:21 PM
  • You rock.

    Thursday, June 28, 2012 11:28 PM