From: Biswapriyo Nath nathbappai@gmail.com
Required for https://github.com/mozilla/gecko-dev/blob/1b90936792b2c71ef931cb1b8d6baff9d8... --- include/windows.storage.streams.idl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/include/windows.storage.streams.idl b/include/windows.storage.streams.idl index 372b4cee591..02ed530ad15 100644 --- a/include/windows.storage.streams.idl +++ b/include/windows.storage.streams.idl @@ -23,6 +23,7 @@ import "inspectable.idl"; import "eventtoken.idl"; import "windows.foundation.idl"; +import "windows.storage.idl";
namespace Windows.Storage.Streams { typedef enum ByteOrder ByteOrder; @@ -180,6 +181,24 @@ namespace Windows.Storage.Streams { [propget] HRESULT CanWrite([out, retval] boolean *value); }
+ [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.Storage.Streams.RandomAccessStreamReference), + uuid(857309dc-3fbf-4e7d-986f-ef3b1a07a964) + ] + interface IRandomAccessStreamReferenceStatics : IInspectable + { + HRESULT CreateFromFile( + [in] Windows.Storage.IStorageFile *file, + [out, retval] Windows.Storage.Streams.RandomAccessStreamReference **stream_reference); + HRESULT CreateFromUri( + [in] Windows.Foundation.Uri *uri, + [out, retval] Windows.Storage.Streams.RandomAccessStreamReference **stream_reference); + HRESULT CreateFromStream( + [in] Windows.Storage.Streams.IRandomAccessStream *stream, + [out, retval] Windows.Storage.Streams.RandomAccessStreamReference **stream_reference); + } + [ uuid(cc254827-4b3d-438f-9232-10c76bc7e038), ]