winealsa: Remove GetAudioSessionWrapper.
[wine.git] / include / windows.storage.streams.idl
blob9255fb43ff395ace9a720cced50f2384bae12b56
1 /*
2 * Copyright 2021 Jactry Zeng for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
23 import "inspectable.idl";
24 import "eventtoken.idl";
25 import "windows.foundation.idl";
27 namespace Windows.Storage.Streams {
28 interface IBuffer;
29 interface IBufferFactory;
30 interface IBufferStatics;
31 interface IContentTypeProvider;
32 interface IInputStream;
33 interface IOutputStream;
34 interface IRandomAccessStream;
35 interface IRandomAccessStreamWithContentType;
36 runtimeclass Buffer;
38 declare {
39 interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Storage.Streams.IBuffer *>;
40 interface Windows.Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer *>;
44 contract(Windows.Foundation.UniversalApiContract, 1.0),
45 uuid(905a0fe0-bc53-11df-8c49-001e4fc686da)
47 interface IBuffer : IInspectable
49 [propget] HRESULT Capacity([out, retval] UINT32 *value);
50 [propget] HRESULT Length([out, retval] UINT32 *value);
51 [propput] HRESULT Length([in] UINT32 value);
55 contract(Windows.Foundation.UniversalApiContract, 1.0),
56 exclusiveto(Windows.Storage.Streams.Buffer),
57 uuid(71af914d-c10f-484b-bc50-14bc623b3a27)
59 interface IBufferFactory : IInspectable
61 HRESULT Create([in, range(0x00000000, 0x7fffffff)] UINT32 capacity,
62 [out, retval] Windows.Storage.Streams.Buffer **value);
66 contract(Windows.Foundation.UniversalApiContract, 1.0),
67 exclusiveto(Windows.Storage.Streams.Buffer),
68 uuid(e901e65b-d716-475a-a90a-af7229b1e741)
70 interface IBufferStatics : IInspectable
72 HRESULT CreateCopyFromMemoryBuffer([in] Windows.Foundation.IMemoryBuffer *input,
73 [out, retval] Windows.Storage.Streams.Buffer **value);
74 HRESULT CreateMemoryBufferOverIBuffer([in] Windows.Storage.Streams.IBuffer *input,
75 [out, retval] Windows.Foundation.MemoryBuffer **value);
79 uuid(cc254827-4b3d-438f-9232-10c76bc7e038),
81 interface IRandomAccessStreamWithContentType : IInspectable
82 requires
83 Windows.Storage.Streams.IRandomAccessStream,
84 Windows.Foundation.IClosable,
85 Windows.Storage.Streams.IInputStream,
86 Windows.Storage.Streams.IOutputStream,
87 Windows.Storage.Streams.IContentTypeProvider
92 activatable(Windows.Storage.Streams.IBufferFactory, Windows.Foundation.UniversalApiContract, 1.0),
93 contract(Windows.Foundation.UniversalApiContract, 1.0),
94 marshaling_behavior(agile),
95 static(Windows.Storage.Streams.IBufferStatics, Windows.Foundation.UniversalApiContract, 1.0),
96 threading(both)
98 runtimeclass Buffer
100 [default] interface Windows.Storage.Streams.IBuffer;