[PR #16467] Add missing TraceLoggingRegister calls #30928

Open
opened 2026-01-31 09:43:52 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/16467

State: closed
Merged: Yes


17cc109 and e9de646 both made the same mistake: When cleaning up our
telemetry code they also removed the calls to TraceLoggingRegister
which also broke regular tracing. Windows Defender in particular uses
the "CookedRead" event to monitor for malicious shell commands.

This doesn't fix it the "right way", because destructors of statics
aren't executed when DLLs are unloaded. But I felt like that this is
fine because we have way more statics than that in conhost land,
all of which have the same kind of issue.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/16467 **State:** closed **Merged:** Yes --- 17cc109 and e9de646 both made the same mistake: When cleaning up our telemetry code they also removed the calls to `TraceLoggingRegister` which also broke regular tracing. Windows Defender in particular uses the "CookedRead" event to monitor for malicious shell commands. This doesn't fix it the "right way", because destructors of statics aren't executed when DLLs are unloaded. But I felt like that this is fine because we have way more statics than that in conhost land, all of which have the same kind of issue.
claunia added the pull-request label 2026-01-31 09:43:52 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30928