microsoft / cppwinrt

C++/WinRT
MIT License
1.61k stars 232 forks source link

Expose wrapped APIs to open Win32 handles for WinRT storage items #1394

Closed JaiganeshKumaran closed 4 months ago

JaiganeshKumaran commented 4 months ago

The WindowsStorageCOM.h file defines interop interfaces for Windows::Storage.* types, but ironically it seems to be unusable under the UWP due to incorrect #ifdef-ing.

Could C++/WinRT expose wrappers for these? C++/WinRT already has an RAII type for file handles: winrt::file_handle, so no need to put it in WIL.

sylveon commented 4 months ago

This feels like a wrapper that would work best in WIL.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 10 days with no activity. Remove stale label or comment or this will be closed in 5 days.