mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-30 05:57:42 +00:00
[VCM]Add enabled telemetry (#32094)
This commit is contained in:
parent
576e2a7d2c
commit
054c5c833b
@ -611,6 +611,7 @@ void VideoConferenceModule::enable()
|
|||||||
#endif
|
#endif
|
||||||
hook_handle = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, GetModuleHandle(NULL), NULL);
|
hook_handle = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, GetModuleHandle(NULL), NULL);
|
||||||
}
|
}
|
||||||
|
Trace::EnableVideoConference(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoConferenceModule::unmuteAll()
|
void VideoConferenceModule::unmuteAll()
|
||||||
@ -664,6 +665,7 @@ void VideoConferenceModule::disable()
|
|||||||
|
|
||||||
_enabled = false;
|
_enabled = false;
|
||||||
}
|
}
|
||||||
|
Trace::EnableVideoConference(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VideoConferenceModule::is_enabled()
|
bool VideoConferenceModule::is_enabled()
|
||||||
|
@ -19,6 +19,17 @@ void Trace::UnregisterProvider() noexcept
|
|||||||
TraceLoggingUnregister(g_hProvider);
|
TraceLoggingUnregister(g_hProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log if the user has VCM enabled or disabled
|
||||||
|
void Trace::EnableVideoConference(const bool enabled) noexcept
|
||||||
|
{
|
||||||
|
TraceLoggingWrite(
|
||||||
|
g_hProvider,
|
||||||
|
"VideoConference_EnableVideoConference",
|
||||||
|
ProjectTelemetryPrivacyDataTag(ProjectTelemetryTag_ProductAndServicePerformance),
|
||||||
|
TraceLoggingKeyword(PROJECT_KEYWORD_MEASURE),
|
||||||
|
TraceLoggingBoolean(enabled, "Enabled"));
|
||||||
|
}
|
||||||
|
|
||||||
void Trace::SettingsChanged(const struct VideoConferenceSettings& settings) noexcept
|
void Trace::SettingsChanged(const struct VideoConferenceSettings& settings) noexcept
|
||||||
{
|
{
|
||||||
bool CustomOverlayImage = (settings.imageOverlayPath.length() > 0);
|
bool CustomOverlayImage = (settings.imageOverlayPath.length() > 0);
|
||||||
|
@ -6,6 +6,7 @@ class Trace
|
|||||||
public:
|
public:
|
||||||
static void RegisterProvider() noexcept;
|
static void RegisterProvider() noexcept;
|
||||||
static void UnregisterProvider() noexcept;
|
static void UnregisterProvider() noexcept;
|
||||||
|
static void EnableVideoConference(const bool enabled) noexcept;
|
||||||
static void SettingsChanged(const struct VideoConferenceSettings &settings) noexcept;
|
static void SettingsChanged(const struct VideoConferenceSettings &settings) noexcept;
|
||||||
static void MicrophoneMuted() noexcept;
|
static void MicrophoneMuted() noexcept;
|
||||||
static void CameraMuted() noexcept;
|
static void CameraMuted() noexcept;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user