mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
* Updated error message when SetWindowsHookEx fails to show correct error message * Added telemetry for exception in SG, FZ and KBM * Rename exception to error
30 lines
1.3 KiB
C++
30 lines
1.3 KiB
C++
#pragma once
|
|
|
|
class Trace
|
|
{
|
|
public:
|
|
static void RegisterProvider() noexcept;
|
|
static void UnregisterProvider() noexcept;
|
|
|
|
// Log if the user has KBM enabled or disabled - Can also be used to see how often users have to restart the keyboard hook
|
|
static void EnableKeyboardManager(const bool enabled) noexcept;
|
|
|
|
// Log number of key remaps when the user uses Edit Keyboard and saves settings
|
|
static void KeyRemapCount(const DWORD keyToKeyCount, const DWORD keyToShortcutCount) noexcept;
|
|
|
|
// Log number of os level shortcut remaps when the user uses Edit Shortcuts and saves settings
|
|
static void OSLevelShortcutRemapCount(const DWORD shortcutToShortcutCount, const DWORD shortcutToKeyCount) noexcept;
|
|
|
|
// Log number of app specific shortcut remaps when the user uses Edit Shortcuts and saves settings
|
|
static void AppSpecificShortcutRemapCount(const DWORD shortcutToShortcutCount, const DWORD shortcutToKeyCount) noexcept;
|
|
|
|
// Log if a key remap has been invoked
|
|
static void KeyRemapInvoked(bool isKeyToKey) noexcept;
|
|
|
|
// Log if a shortcut remap has been invoked
|
|
static void ShortcutRemapInvoked(bool isShortcutToShortcut, bool isAppSpecific) noexcept;
|
|
|
|
// Log if an error occurs in KBM
|
|
static void Error(const DWORD errorCode, std::wstring errorMessage, std::wstring methodName) noexcept;
|
|
};
|