![]() |
VOOZH | about |
Requires NuGet 2.5 or higher.
dotnet add package YexuanXiao.CppWinRTPlus.Ext --version 0.9.0.3
NuGet\Install-Package YexuanXiao.CppWinRTPlus.Ext -Version 0.9.0.3
<PackageReference Include="YexuanXiao.CppWinRTPlus.Ext" Version="0.9.0.3" />
<PackageVersion Include="YexuanXiao.CppWinRTPlus.Ext" Version="0.9.0.3" />Directory.Packages.props
<PackageReference Include="YexuanXiao.CppWinRTPlus.Ext" />Project file
paket add YexuanXiao.CppWinRTPlus.Ext --version 0.9.0.3
#r "nuget: YexuanXiao.CppWinRTPlus.Ext, 0.9.0.3"
#:package YexuanXiao.CppWinRTPlus.Ext@0.9.0.3
#addin nuget:?package=YexuanXiao.CppWinRTPlus.Ext&version=0.9.0.3Install as a Cake Addin
#tool nuget:?package=YexuanXiao.CppWinRTPlus.Ext&version=0.9.0.3Install as a Cake Tool
CppWinRTPlus.Ext provides a set of C++20 module interface extensions for C++/WinRT and the Windows App SDK.
winrtplus_coroutineProvides coroutine helpers:
winrtplus::resume_foreground(dispatcher, priority)co_await dispatcherSupported dispatchers:
Windows::System::DispatcherQueueMicrosoft::UI::Dispatching::DispatcherQueueWindows::UI::Core::CoreDispatcherThe following module wrapper wraps the WinUI Interop header files from Microsoft.WindowsAppSDK.InteractiveExperiences as C++ modules.
All declarations remain in the original namespace.
winrtplus.Microsoft.UI.InteropWraps winrt/Microsoft.UI.Interop.h:
GetWindowIdFromWindow(HWND)GetWindowFromWindowId(WindowId)GetDisplayIdFromMonitor(HMONITOR)GetMonitorFromDisplayId(DisplayId)GetIconIdFromIcon(HICON)GetIconFromIconId(IconId)winrtplus.Microsoft.UI.Composition.InteropWraps winrt/Microsoft.UI.Composition.Interop.h:
ICompositionDrawingSurfaceInteropICompositionDrawingSurfaceInterop2ICompositionGraphicsDeviceInteropICompositorInteropICompositorSwapChainInteropIVisualInteractionSourceInteropwinrtplus.Microsoft.UI.Designer.InteropWraps winrt/Microsoft.UI.Designer.Interop.h:
IDesignerOutputHostInteropwinrtplus.Microsoft.UI.Dispatching.InteropWraps winrt/Microsoft.UI.Dispatching.Interop.h:
ContentPreTranslateMessage(const MSG*)winrtplus.Microsoft.UI.Input.InputCursor.InteropWraps winrt/Microsoft.UI.Input.InputCursor.Interop.h:
IInputCursorStaticsInteropwinrtplus.Microsoft.UI.Input.InputPreTranslateSource.InteropWraps winrt/Microsoft.UI.Input.InputPreTranslateSource.Interop.h:
IInputPreTranslateKeyboardSourceHandlerIInputPreTranslateKeyboardSourceInteropCppWinRTBuildModule.BuildStlModules.WINRT_ENABLE_LEGACY_COM globally.If Microsoft.WindowsAppSDK.InteractiveExperiences is not installed, the relevant module will still exist, but will not contain any content.
Example project settings:
<PropertyGroup>
<CppWinRTBuildModule>true</CppWinRTBuildModule>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<BuildStlModules>true</BuildStlModules>
<PreprocessorDefinitions>WINRT_ENABLE_LEGACY_COM;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native native is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.