mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-29 13:37:43 +00:00
[VCM]Add enabled telemetry (#32094)
This commit is contained in:
parent
576e2a7d2c
commit
054c5c833b
@ -611,6 +611,7 @@ void VideoConferenceModule::enable()
|
||||
#endif
|
||||
hook_handle = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, GetModuleHandle(NULL), NULL);
|
||||
}
|
||||
Trace::EnableVideoConference(true);
|
||||
}
|
||||
|
||||
void VideoConferenceModule::unmuteAll()
|
||||
@ -664,6 +665,7 @@ void VideoConferenceModule::disable()
|
||||
|
||||
_enabled = false;
|
||||
}
|
||||
Trace::EnableVideoConference(false);
|
||||
}
|
||||
|
||||
bool VideoConferenceModule::is_enabled()
|
||||
|
@ -19,6 +19,17 @@ void Trace::UnregisterProvider() noexcept
|
||||
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
|
||||
{
|
||||
bool CustomOverlayImage = (settings.imageOverlayPath.length() > 0);
|
||||
|
@ -6,6 +6,7 @@ class Trace
|
||||
public:
|
||||
static void RegisterProvider() noexcept;
|
||||
static void UnregisterProvider() noexcept;
|
||||
static void EnableVideoConference(const bool enabled) noexcept;
|
||||
static void SettingsChanged(const struct VideoConferenceSettings &settings) noexcept;
|
||||
static void MicrophoneMuted() noexcept;
|
||||
static void CameraMuted() noexcept;
|
||||
|
Loading…
x
Reference in New Issue
Block a user