2 * Copyright 2023 Hans Leidekker 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
20 #pragma winrt ns_prefix
23 import
"inspectable.idl";
24 import
"asyncinfo.idl";
25 import
"eventtoken.idl";
26 import
"windowscontracts.idl";
27 import
"windows.foundation.idl";
28 import
"windows.storage.fileproperties.idl";
29 /* import "windows.storage.provider.idl"; */
30 import
"windows.storage.search.idl";
31 import
"windows.storage.streams.idl";
32 import
"windows.system.idl";
34 namespace Windows.Storage
{
35 typedef enum ApplicationDataCreateDisposition ApplicationDataCreateDisposition
;
36 typedef enum ApplicationDataLocality ApplicationDataLocality
;
37 typedef enum CreationCollisionOption CreationCollisionOption
;
38 typedef enum FileAccessMode FileAccessMode
;
39 typedef enum FileAttributes FileAttributes
;
40 typedef enum KnownFolderId KnownFolderId
;
41 typedef enum KnownFoldersAccessStatus KnownFoldersAccessStatus
;
42 typedef enum NameCollisionOption NameCollisionOption
;
43 typedef enum StorageDeleteOption StorageDeleteOption
;
44 typedef enum StorageItemTypes StorageItemTypes
;
46 interface IApplicationData
;
47 interface IApplicationData2
;
48 interface IApplicationData3
;
49 interface IApplicationDataContainer
;
50 interface IApplicationDataStatics
;
51 interface IApplicationDataStatics2
;
52 interface IKnownFoldersCameraRollStatics
;
53 interface IKnownFoldersPlaylistsStatics
;
54 interface IKnownFoldersSavedPicturesStatics
;
55 interface IKnownFoldersStatics
;
56 interface IKnownFoldersStatics2
;
57 interface IKnownFoldersStatics3
;
58 interface IKnownFoldersStatics4
;
59 interface ISetVersionDeferral
;
60 interface ISetVersionRequest
;
61 interface IStorageFolder
;
62 interface IStorageFolderStatics
;
63 interface IStorageFolderStatics2
;
64 interface IStorageFileStatics
;
65 interface IStorageFileStatics2
;
66 interface IStorageItem
;
68 runtimeclass ApplicationData
;
69 runtimeclass ApplicationDataContainer
;
70 runtimeclass KnownFolders
;
71 runtimeclass SetVersionDeferral
;
72 runtimeclass SetVersionRequest
;
73 runtimeclass StorageFolder
;
74 runtimeclass StorageFile
;
75 runtimeclass StorageStreamTransaction
;
78 interface Windows.Foundation.Collections.IKeyValuePair
<HSTRING
, Windows.Storage.ApplicationDataContainer
*>;
79 interface Windows.Foundation.Collections.IIterable
<Windows.Foundation.Collections.IKeyValuePair
<HSTRING
, Windows.Storage.ApplicationDataContainer
*> *>;
80 interface Windows.Foundation.Collections.IIterator
<Windows.Foundation.Collections.IKeyValuePair
<HSTRING
, Windows.Storage.ApplicationDataContainer
*> *>;
81 interface Windows.Foundation.Collections.IMapView
<HSTRING
, Windows.Storage.ApplicationDataContainer
*>;
82 interface Windows.Foundation.Collections.IVectorView
<Windows.Storage.IStorageItem
*>;
83 interface Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFile
*>;
84 interface Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFolder
*>;
85 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.IStorageItem
*> *>;
86 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFile
*> *>;
87 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFolder
*> *>;
88 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.ApplicationData
*>;
89 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.KnownFoldersAccessStatus
>;
90 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.IStorageItem
*>;
91 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.StorageFile
*>;
92 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.StorageFolder
*>;
93 interface Windows.Foundation.AsyncOperationCompletedHandler
<Windows.Storage.StorageStreamTransaction
*>;
94 interface Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.IStorageItem
*> *>;
95 interface Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFile
*> *>;
96 interface Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFolder
*> *>;
97 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.ApplicationData
*>;
98 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.KnownFoldersAccessStatus
>;
99 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.IStorageItem
*>;
100 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*>;
101 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*>;
102 interface Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageStreamTransaction
*>;
103 interface Windows.Foundation.TypedEventHandler
<Windows.Storage.ApplicationData
*, IInspectable
*>;
107 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
109 enum ApplicationDataCreateDisposition
116 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
118 enum ApplicationDataLocality
124 [contract
(Windows.Foundation.UniversalApiContract
, 12.0)]
129 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
131 enum CreationCollisionOption
133 GenerateUniqueName
= 0,
140 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
149 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
159 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)]
160 LocallyIncomplete
= 0x200,
164 contract
(Windows.Foundation.UniversalApiContract
, 2.0)
170 DocumentsLibrary
= 2,
172 MediaServerDevices
= 4,
178 RemovableDevices
= 10,
182 [contract
(Windows.Foundation.UniversalApiContract
, 4.0)]
184 [contract
(Windows.Foundation.UniversalApiContract
, 4.0)]
186 [contract
(Windows.Foundation.UniversalApiContract
, 11.0)]
187 DownloadsFolder
= 16,
191 contract
(Windows.Foundation.UniversalApiContract
, 10.0)
193 enum KnownFoldersAccessStatus
196 NotDeclaredByApp
= 1,
198 UserPromptRequired
= 3,
200 [contract
(Windows.Foundation.UniversalApiContract
, 11.0)]
201 AllowedPerAppFolder
= 5,
205 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
207 enum NameCollisionOption
209 GenerateUniqueName
= 0,
215 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
217 enum StorageDeleteOption
224 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
227 enum StorageItemTypes
235 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
236 uuid(a05791e6
-cc9f
-4687-acab
-a364fd785463
)
238 delegate
HRESULT ApplicationDataSetVersionHandler
([in] Windows.Storage.SetVersionRequest
*version);
241 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
242 exclusiveto
(Windows.Storage.ApplicationData
),
243 uuid(c3da6fb7
-b744
-4b45
-b0b8
-223a0938d0dc
)
245 interface IApplicationData
: IInspectable
247 [propget] HRESULT Version([out, retval] UINT32
*value
);
248 HRESULT SetVersionAsync
(
250 [in] Windows.Storage.ApplicationDataSetVersionHandler
*handler
,
251 [out, retval] Windows.Foundation.IAsyncAction
**operation
253 [overload
("ClearAsync")]
254 HRESULT ClearAllAsync
(
255 [out, retval] Windows.Foundation.IAsyncAction
**operation
257 [overload
("ClearAsync")]
259 [in] Windows.Storage.ApplicationDataLocality locality
,
260 [out, retval] Windows.Foundation.IAsyncAction
**operation
262 [propget] HRESULT LocalSettings
([out, retval] Windows.Storage.ApplicationDataContainer
**value
);
263 [propget] HRESULT RoamingSettings
([out, retval] Windows.Storage.ApplicationDataContainer
**value
);
264 [propget] HRESULT LocalFolder
([out, retval] Windows.Storage.StorageFolder
**value
);
265 [propget] HRESULT RoamingFolder
([out, retval] Windows.Storage.StorageFolder
**value
);
266 [propget] HRESULT TemporaryFolder
([out, retval] Windows.Storage.StorageFolder
**value
);
267 [eventadd
] HRESULT DataChanged
(
268 [in] Windows.Foundation.TypedEventHandler
<Windows.Storage.ApplicationData
*, IInspectable
*> *handler
,
269 [out, retval] EventRegistrationToken
*token
271 [eventremove
] HRESULT DataChanged
([in] EventRegistrationToken token
);
272 HRESULT SignalDataChanged
();
273 [propget] HRESULT RoamingStorageQuota
([out, retval] UINT64
*value
);
277 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
278 exclusiveto
(Windows.Storage.ApplicationData
),
279 uuid(9e65cd69
-0ba3
-4e32
-be29
-b02de6607638
)
281 interface IApplicationData2
: IInspectable
283 [propget] HRESULT LocalCacheFolder
([out, retval] Windows.Storage.StorageFolder
**value
);
287 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
288 exclusiveto
(Windows.Storage.ApplicationData
),
289 uuid(dc222cf4
-2772-4c1d
-aa2c
-c9f743ade8d1
)
291 interface IApplicationData3
: IInspectable
293 HRESULT GetPublisherCacheFolder
(
294 [in] HSTRING folder_name
,
295 [out, retval] Windows.Storage.StorageFolder
**value
297 HRESULT ClearPublisherCacheFolderAsync
(
298 [in] HSTRING folder_name
,
299 [out, retval] Windows.Foundation.IAsyncAction
**operation
301 [propget] HRESULT SharedLocalFolder
([out, retval] Windows.Storage.StorageFolder
**value
);
305 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
306 exclusiveto
(Windows.Storage.ApplicationDataContainer
),
307 uuid(c5aefd1e
-f467
-40ba
-8566-ab640a441e1d
)
309 interface IApplicationDataContainer
: IInspectable
311 [propget] HRESULT Name
([out, retval] HSTRING
*value
);
312 [propget] HRESULT Locality
([out, retval] Windows.Storage.ApplicationDataLocality
*value
);
313 [propget] HRESULT Values
([out, retval] Windows.Foundation.Collections.IPropertySet
**value
);
314 [propget] HRESULT Containers
([out, retval] Windows.Foundation.Collections.IMapView
<HSTRING
, Windows.Storage.ApplicationDataContainer
*> **value
);
315 HRESULT CreateContainer
(
317 [in] Windows.Storage.ApplicationDataCreateDisposition disposition
,
318 [out, retval] Windows.Storage.ApplicationDataContainer
**container
320 HRESULT DeleteContainer
([in] HSTRING name
);
324 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
325 exclusiveto
(Windows.Storage.ApplicationData
),
326 uuid(5612147b
-e843
-45e3
-94d8
-06169e3c8e17
)
328 interface IApplicationDataStatics
: IInspectable
330 [propget] HRESULT Current
([out, retval] Windows.Storage.ApplicationData
**value
);
334 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
335 exclusiveto
(Windows.Storage.ApplicationData
),
336 uuid(cd606211
-cf49
-40a4
-a47c
-c7f0dbba8107
)
338 interface IApplicationDataStatics2
: IInspectable
340 HRESULT GetForUserAsync
(
341 [in] Windows.System.User
*user
,
342 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.ApplicationData
*> **operation
347 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
348 exclusiveto
(Windows.Storage.KnownFolders
),
349 uuid(5d115e66
-27e8
-492f
-b8e5
-2f90896cd4cd
)
351 interface IKnownFoldersCameraRollStatics
: IInspectable
353 [propget] HRESULT CameraRoll
([out, retval] Windows.Storage.StorageFolder
**value
);
357 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
358 exclusiveto
(Windows.Storage.KnownFolders
),
359 uuid(dad5ecd6
-306f
-4d6a
-b496
-46ba8eb106ce
)
361 interface IKnownFoldersPlaylistsStatics
: IInspectable
363 [propget] HRESULT Playlists
([out, retval] Windows.Storage.StorageFolder
**value
);
367 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
368 exclusiveto
(Windows.Storage.KnownFolders
),
369 uuid(055c93ea
-253d
-467c
-b6ca
-a97da1e9a18d
)
371 interface IKnownFoldersSavedPicturesStatics
: IInspectable
373 [propget] HRESULT SavedPictures
([out, retval] Windows.Storage.StorageFolder
**value
);
377 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
378 exclusiveto
(Windows.Storage.KnownFolders
),
379 uuid(5a2a7520
-4802-452d
-9ad9
-4351ada7ec35
)
381 interface IKnownFoldersStatics
: IInspectable
383 [propget] HRESULT MusicLibrary
([out, retval] Windows.Storage.StorageFolder
**value
);
384 [propget] HRESULT PicturesLibrary
([out, retval] Windows.Storage.StorageFolder
**value
);
385 [propget] HRESULT VideosLibrary
([out, retval] Windows.Storage.StorageFolder
**value
);
386 [propget] HRESULT DocumentsLibrary
([out, retval] Windows.Storage.StorageFolder
**value
);
387 [propget] HRESULT HomeGroup
([out, retval] Windows.Storage.StorageFolder
**value
);
388 [propget] HRESULT RemovableDevices
([out, retval] Windows.Storage.StorageFolder
**value
);
389 [propget] HRESULT MediaServerDevices
([out, retval] Windows.Storage.StorageFolder
**value
);
393 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
394 exclusiveto
(Windows.Storage.KnownFolders
),
395 uuid(194bd0cd
-cf6e
-4d07
-9d53
-e9163a2536e9
)
397 interface IKnownFoldersStatics2
: IInspectable
399 [propget] HRESULT Objects3D
([out, retval] Windows.Storage.StorageFolder
**value
);
400 [propget] HRESULT AppCaptures
([out, retval] Windows.Storage.StorageFolder
**value
);
401 [propget] HRESULT RecordedCalls
([out, retval] Windows.Storage.StorageFolder
**value
);
405 contract
(Windows.Foundation.UniversalApiContract
, 2.0),
406 exclusiveto
(Windows.Storage.KnownFolders
),
407 uuid(c5194341
-9742-4ed5
-823d
-fc1401148764
)
409 interface IKnownFoldersStatics3
: IInspectable
411 HRESULT GetFolderForUserAsync
(
412 [in] Windows.System.User
*user
,
413 [in] Windows.Storage.KnownFolderId folder_id
,
414 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*> **operation
419 contract
(Windows.Foundation.UniversalApiContract
, 10.0),
420 exclusiveto
(Windows.Storage.KnownFolders
),
421 uuid(1722e6bf
-9ff9
-4b21
-bed5
-90ecb13a192e
)
423 interface IKnownFoldersStatics4
: IInspectable
425 HRESULT RequestAccessAsync
(
426 [in] Windows.Storage.KnownFolderId folder_id
,
427 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.KnownFoldersAccessStatus
> **operation
429 HRESULT RequestAccessForUserAsync
(
430 [in] Windows.System.User
*user
,
431 [in] Windows.Storage.KnownFolderId folder_id
,
432 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.KnownFoldersAccessStatus
> **operation
434 HRESULT GetFolderAsync
(
435 [in] Windows.Storage.KnownFolderId folder_id
,
436 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*> **operation
441 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
442 exclusiveto
(Windows.Storage.SetVersionDeferral
),
443 uuid(033508a2
-781a
-437a
-b078
-3f32badcfe47
)
445 interface ISetVersionDeferral
: IInspectable
451 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
452 exclusiveto
(Windows.Storage.SetVersionRequest
),
453 uuid(b9c76b9b
-1056-4e69
-8330-162619956f9b
)
455 interface ISetVersionRequest
: IInspectable
457 [propget] HRESULT CurrentVersion
([out, retval] UINT32
*version);
458 [propget] HRESULT DesiredVersion
([out, retval] UINT32
*version);
459 HRESULT GetDeferral
([out, retval] Windows.Storage.SetVersionDeferral
**deferral
);
463 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
464 uuid(fa3f6186
-4214-428c
-a64c
-14c9ac7315ea
)
466 interface IStorageFile
: IInspectable
467 requires Windows.Storage.IStorageItem
,
468 Windows.Storage.Streams.IRandomAccessStreamReference
,
469 Windows.Storage.Streams.IInputStreamReference
471 [propget] HRESULT FileType
([out, retval] HSTRING
*value
);
472 [propget] HRESULT ContentType
([out, retval] HSTRING
*value
);
474 [in] Windows.Storage.FileAccessMode mode
,
475 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.Streams.IRandomAccessStream
*> **operation
477 HRESULT OpenTransactedWriteAsync
([out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageStreamTransaction
*> **operation
);
478 [overload
("CopyAsync")]
479 HRESULT CopyOverloadDefaultNameAndOptions
(
480 [in] Windows.Storage.IStorageFolder
*folder
,
481 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
483 [overload
("CopyAsync")]
484 HRESULT CopyOverloadDefaultOptions
(
485 [in] Windows.Storage.IStorageFolder
*folder
,
487 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
);
488 [overload
("CopyAsync")]
489 HRESULT CopyOverload
(
490 [in] Windows.Storage.IStorageFolder
*folder
,
492 [in] Windows.Storage.NameCollisionOption option
,
493 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
495 HRESULT CopyAndReplaceAsync
([in] Windows.Storage.IStorageFile
*file
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
496 [overload
("MoveAsync")]
497 HRESULT MoveOverloadDefaultNameAndOptions
([in] Windows.Storage.IStorageFolder
*folder
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
498 [overload
("MoveAsync")]
499 HRESULT MoveOverloadDefaultOptions
(
500 [in] Windows.Storage.IStorageFolder
*folder
,
502 [out, retval] Windows.Foundation.IAsyncAction
**operation
504 [overload
("MoveAsync")]
505 HRESULT MoveOverload
(
506 [in] Windows.Storage.IStorageFolder
*folder
,
508 [in] Windows.Storage.NameCollisionOption option
,
509 [out, retval] Windows.Foundation.IAsyncAction
**operation
);
510 HRESULT MoveAndReplaceAsync
([in] Windows.Storage.IStorageFile
*file
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
514 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
515 uuid(72d1cb78
-b3ef
-4f75
-a80b
-6fd9dae2944b
)
517 interface IStorageFolder
: IInspectable
518 requires Windows.Storage.IStorageItem
520 [overload
("CreateFileAsync")]
521 HRESULT CreateFileAsyncOverloadDefaultOptions
(
523 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
525 [overload
("CreateFileAsync")]
526 HRESULT CreateFileAsync
(
528 [in] Windows.Storage.CreationCollisionOption options
,
529 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
531 [overload
("CreateFolderAsync")]
532 HRESULT CreateFolderAsyncOverloadDefaultOptions
(
534 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*> **operation
536 [overload
("CreateFolderAsync")]
537 HRESULT CreateFolderAsync
(
539 [in] Windows.Storage.CreationCollisionOption options
,
540 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*> **operation
542 HRESULT GetFileAsync
([in] HSTRING name
, [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFile
*> **operation
);
543 HRESULT GetFolderAsync
([in] HSTRING name
, [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.StorageFolder
*> **operation
);
544 HRESULT GetItemAsync
([in] HSTRING name
, [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.IStorageItem
*> **operation
);
545 [overload
("GetFilesAsync")]
546 HRESULT GetFilesAsyncOverloadDefaultOptionsStartAndCount
(
547 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFile
*> *> **operation
549 [overload
("GetFoldersAsync")]
550 HRESULT GetFoldersAsyncOverloadDefaultOptionsStartAndCount
(
551 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.StorageFolder
*> *> **operation
553 [overload
("GetItemsAsync")]
554 HRESULT GetItemsAsyncOverloadDefaultStartAndCount
(
555 [out, retval] Windows.Foundation.IAsyncOperation
<Windows.Foundation.Collections.IVectorView
<Windows.Storage.IStorageItem
*> *> **operation
560 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
561 uuid(4207a996
-ca2f
-42f7
-bde8
-8b10457a7f30
)
563 interface IStorageItem
: IInspectable
565 [overload
("RenameAsync")]
566 HRESULT RenameAsyncOverloadDefaultOptions
([in] HSTRING name
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
567 [overload
("RenameAsync")]
568 HRESULT RenameAsync
([in] HSTRING name
, [in] Windows.Storage.NameCollisionOption option
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
569 [overload
("DeleteAsync")]
570 HRESULT DeleteAsyncOverloadDefaultOptions
([out, retval] Windows.Foundation.IAsyncAction
**operation
);
571 [overload
("DeleteAsync")]
572 HRESULT DeleteAsync
([in] Windows.Storage.StorageDeleteOption option
, [out, retval] Windows.Foundation.IAsyncAction
**operation
);
573 HRESULT GetBasicPropertiesAsync
([out, retval] Windows.Foundation.IAsyncOperation
<Windows.Storage.FileProperties.BasicProperties
*> **operation
);
574 [propget] HRESULT Name
([out, retval] HSTRING
*value
);
575 [propget] HRESULT Path
([out, retval] HSTRING
*value
);
576 [propget] HRESULT Attributes
([out, retval] Windows.Storage.FileAttributes
*value
);
577 [propget] HRESULT DateCreated
([out, retval] Windows.Foundation.DateTime
*value
);
578 HRESULT IsOfType
([in] Windows.Storage.StorageItemTypes type
, [out, retval] boolean *value
);
582 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
583 exclusiveto
(Windows.Storage.StorageStreamTransaction
),
584 uuid(f67cf363
-a53d
-4d94
-ae2c
-67232d93acdd
)
586 interface IStorageStreamTransaction
: IInspectable
587 requires Windows.Foundation.IClosable
589 [propget] HRESULT Stream
([out, retval] Windows.Storage.Streams.IRandomAccessStream
**value
);
590 HRESULT CommitAsync
([out, retval] Windows.Foundation.IAsyncAction
**operation
);
594 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
595 marshaling_behavior
(agile
),
596 static
(Windows.Storage.IApplicationDataStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
597 static
(Windows.Storage.IApplicationDataStatics2
, Windows.Foundation.UniversalApiContract
, 1.0),
600 runtimeclass ApplicationData
602 [default] interface Windows.Storage.IApplicationData
;
603 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IApplicationData2
;
604 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IApplicationData3
;
605 [contract
(Windows.Foundation.UniversalApiContract
, 12.0)] interface Windows.Foundation.IClosable
;
609 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
610 marshaling_behavior
(agile
)
612 runtimeclass ApplicationDataContainer
614 [default] interface Windows.Storage.IApplicationDataContainer
;
615 [contract
(Windows.Foundation.UniversalApiContract
, 12.0)] interface Windows.Foundation.IClosable
;
619 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
620 marshaling_behavior
(agile
),
621 static
(Windows.Storage.IKnownFoldersCameraRollStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
622 static
(Windows.Storage.IKnownFoldersPlaylistsStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
623 static
(Windows.Storage.IKnownFoldersSavedPicturesStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
624 static
(Windows.Storage.IKnownFoldersStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
625 static
(Windows.Storage.IKnownFoldersStatics2
, Windows.Foundation.UniversalApiContract
, 1.0),
626 static
(Windows.Storage.IKnownFoldersStatics3
, Windows.Foundation.UniversalApiContract
, 2.0),
627 static
(Windows.Storage.IKnownFoldersStatics4
, Windows.Foundation.UniversalApiContract
, 10.0)
629 runtimeclass KnownFolders
634 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
635 marshaling_behavior
(agile
)
637 runtimeclass SetVersionDeferral
639 [default] interface Windows.Storage.ISetVersionDeferral
;
643 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
644 marshaling_behavior
(agile
)
646 runtimeclass SetVersionRequest
648 [default] interface Windows.Storage.ISetVersionRequest
;
652 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
653 static
(Windows.Storage.IStorageFileStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
654 static
(Windows.Storage.IStorageFileStatics2
, Windows.Foundation.UniversalApiContract
, 10.0)
656 runtimeclass StorageFile
658 [default] interface Windows.Storage.IStorageFile
;
659 interface Windows.Storage.Streams.IInputStreamReference
;
660 interface Windows.Storage.Streams.IRandomAccessStreamReference
;
661 interface Windows.Storage.IStorageItem
;
662 interface Windows.Storage.IStorageItemProperties
;
663 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItemProperties2
;
664 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItem2
;
665 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItemPropertiesWithProvider
;
666 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageFilePropertiesWithAvailability
;
667 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageFile2
;
671 contract
(Windows.Foundation.UniversalApiContract
, 1.0),
672 static
(Windows.Storage.IStorageFolderStatics
, Windows.Foundation.UniversalApiContract
, 1.0),
673 static
(Windows.Storage.IStorageFolderStatics2
, Windows.Foundation.UniversalApiContract
, 10.0)
675 runtimeclass StorageFolder
677 [default] interface Windows.Storage.IStorageFolder
;
678 interface Windows.Storage.IStorageItem
;
679 interface Windows.Storage.Search.IStorageFolderQueryOperations
;
680 interface Windows.Storage.IStorageItemProperties
;
681 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItemProperties2
;
682 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItem2
;
683 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageFolder2
;
684 [contract
(Windows.Foundation.UniversalApiContract
, 1.0)] interface Windows.Storage.IStorageItemPropertiesWithProvider
;
685 [contract
(Windows.Foundation.UniversalApiContract
, 6.0)] interface Windows.Storage.IStorageFolder3
;
689 contract
(Windows.Foundation.UniversalApiContract
, 1.0)
691 runtimeclass StorageStreamTransaction
693 [default] interface Windows.Storage.IStorageStreamTransaction
;
694 interface Windows.Foundation.IClosable
;