po: Update Lithuanian translation.
[wine.git] / include / windows.storage.streams.idl
blobbb107b25976b0a2d5ddc6514289a9bc59b156854
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;
39 contract(Windows.Foundation.UniversalApiContract, 1.0),
40 uuid(905a0fe0-bc53-11df-8c49-001e4fc686da)
42 interface IBuffer : IInspectable
44 [propget] HRESULT Capacity([out, retval] UINT32 *value);
45 [propget] HRESULT Length([out, retval] UINT32 *value);
46 [propput] HRESULT Length([in] UINT32 value);
50 contract(Windows.Foundation.UniversalApiContract, 1.0),
51 exclusiveto(Windows.Storage.Streams.Buffer),
52 uuid(71af914d-c10f-484b-bc50-14bc623b3a27)
54 interface IBufferFactory : IInspectable
56 HRESULT Create([in, range(0x00000000, 0x7fffffff)] UINT32 capacity,
57 [out, retval] Windows.Storage.Streams.Buffer **value);
61 contract(Windows.Foundation.UniversalApiContract, 1.0),
62 exclusiveto(Windows.Storage.Streams.Buffer),
63 uuid(e901e65b-d716-475a-a90a-af7229b1e741)
65 interface IBufferStatics : IInspectable
67 HRESULT CreateCopyFromMemoryBuffer([in] Windows.Foundation.IMemoryBuffer *input,
68 [out, retval] Windows.Storage.Streams.Buffer **value);
69 HRESULT CreateMemoryBufferOverIBuffer([in] Windows.Storage.Streams.IBuffer *input,
70 [out, retval] Windows.Foundation.MemoryBuffer **value);
74 uuid(cc254827-4b3d-438f-9232-10c76bc7e038),
76 interface IRandomAccessStreamWithContentType : IInspectable
77 requires
78 Windows.Storage.Streams.IRandomAccessStream,
79 Windows.Foundation.IClosable,
80 Windows.Storage.Streams.IInputStream,
81 Windows.Storage.Streams.IOutputStream,
82 Windows.Storage.Streams.IContentTypeProvider
87 activatable(Windows.Storage.Streams.IBufferFactory, Windows.Foundation.UniversalApiContract, 1.0),
88 contract(Windows.Foundation.UniversalApiContract, 1.0),
89 marshaling_behavior(agile),
90 static(Windows.Storage.Streams.IBufferStatics, Windows.Foundation.UniversalApiContract, 1.0),
91 threading(both)
93 runtimeclass Buffer
95 [default] interface Windows.Storage.Streams.IBuffer;