mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
## Summary of the Pull Request Removes all C++/CX code, replacing it with C++/WinRT. ## Detailed Description of the Pull Request / Additional comments Removes all C++/CX code. Renames interop namespaces to be better consumed by CsWinRT. Standardizes all projects on net8.0-windows10.0.20348.0, which is a requirement for C++/WinRT usage. FileLocksmithLibInterop brought to stdcpplatest and static analysis errors were corrected. Removed now unneeded string conversion code from FileLocksmithLibInterop. Changed interop KeyboardHook to use a single hook across all instances. Required because on C++/WinRT we don't have the .NET runtime to bind a object instance to a delegate and be able to pass it to a C function pointer argument (still no idea why this worked correctly on C++/CX to be honest). This change actually makes us create less low level keyboard hooks. Changed some code that depended on arrays since WinRT/C++ returns null instead of an empty array through the interface. ## Validation Steps Performed Built and tested runtime.
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
namespace PowerToys
|
|
{
|
|
namespace Interop
|
|
{
|
|
[default_interface] static runtimeclass Constants {
|
|
static UInt32 VK_WIN_BOTH {get; };
|
|
static String AppDataPath();
|
|
static String PowerLauncherSharedEvent();
|
|
static String PowerLauncherCentralizedHookSharedEvent();
|
|
static String RunSendSettingsTelemetryEvent();
|
|
static String RunExitEvent();
|
|
static String FZEExitEvent();
|
|
static String FZEToggleEvent();
|
|
static String ColorPickerSendSettingsTelemetryEvent();
|
|
static String ShowColorPickerSharedEvent();
|
|
static String ShowAdvancedPasteSharedEvent();
|
|
static String AdvancedPasteMarkdownEvent();
|
|
static String AdvancedPasteJsonEvent();
|
|
static String ShowPowerOCRSharedEvent();
|
|
static String MouseJumpShowPreviewEvent();
|
|
static String AwakeExitEvent();
|
|
static String ShowPeekEvent();
|
|
static String PowerAccentExitEvent();
|
|
static String ShortcutGuideTriggerEvent();
|
|
static String RegistryPreviewTriggerEvent();
|
|
static String MeasureToolTriggerEvent();
|
|
static String GcodePreviewResizeEvent();
|
|
static String QoiPreviewResizeEvent();
|
|
static String DevFilesPreviewResizeEvent();
|
|
static String MarkdownPreviewResizeEvent();
|
|
static String PdfPreviewResizeEvent();
|
|
static String SvgPreviewResizeEvent();
|
|
static String ShowHostsSharedEvent();
|
|
static String ShowHostsAdminSharedEvent();
|
|
static String CropAndLockThumbnailEvent();
|
|
static String CropAndLockReparentEvent();
|
|
static String ShowEnvironmentVariablesSharedEvent();
|
|
static String ShowEnvironmentVariablesAdminSharedEvent();
|
|
}
|
|
}
|
|
} |