terrafx / terrafx.interop.windows

Interop bindings for Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request for WinRT UI, Composition, Interop classes

rickbrew opened this issue · comments

Not all of them necessarily, but just (some of) what I would need to access from a classic Win32 app.

In particular, I'm looking at the following class right now: Windows.UI.ViewManagement.UISettings https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.uisettings?view=winrt-22000

This has methods for me to retrieve things like the accent color, which there is no legacy Win32 API for. I'm currently retrieving this through the registry (!!!) which I'd like to clean up.

In addition, there are APIs that should enable me to hook up Mica. Some of these APIs are already in TerraFX, but it's not complete. For instance, CreateDispatcherQueueController() is there (although it's in Windows instead of WinRT? not sure if that's desired), but the IDispatcherQueueController interface is not.

This gist outlines the APIs I believe I would need: https://gist.github.com/sylveon/95afbd8424e3c111782e665629000729 (credit to wil::com_ptr on Discord). This includes APIs from Windows::UI, Windows::UI::Composition, and Windows::UI::Composition:Desktop.