Add TypedPaths and common-dialogs MRU cleaners - #3
Open
EnriqueGF wants to merge 1 commit into
Open
Conversation
Adds two selective cleaners to ClearAllExecutionTraces: - ClearTypedPaths: removes Explorer address-bar PathN values matching a needle and repairs the matching letter out of MRUList. - ClearCommonDialogsMru: OpenSavePidlMRU/LastVisitedPidlMRU keep the last files/folder per executable as MRUItemN blobs (pidl with an embedded UTF-16 path) ordered by MRUListEx. Own-app subkeys are removed whole; foreign subkeys only lose the matching MRUItemN values, repairing MRUListEx. Reuses the existing RemoveMruIndex helper. Same selective rule as the other cleaners: unrelated entries are kept.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ClearTypedPaths: HKCU...\Explorer\TypedPathsstores every path typed into the Explorer address bar asPathN(REG_SZ), ordered by letters inMRUList. Removes only values matching the needles and repairs the matching letter out ofMRUList(both cases).ClearCommonDialogsMru:ComDlg32\OpenSavePidlMRUkeeps the last files chosen throughGetOpenFileName/GetSaveFileNameper executable, andLastVisitedPidlMRUthe last folder per executable. Values areMRUItemNblobs (pidl with an embedded UTF-16 path) ordered byMRUListEx. A subkey named like one of the needles belongs to the target app and goes away whole; foreign subkeys only lose the matchingMRUItemNvalues, reusing the existingRemoveMruIndexto repairMRUListEx.Both are wired into
ClearAllExecutionTracesand follow the same selective rule as the existing cleaners (unknown/foreign entries are kept).Context
Found while wiring these into our own launcher sweep: any app that uses the common file dialogs leaves per-app entries in
OpenSavePidlMRUeven when it never touches RecentDocs, and address-bar navigation lands inTypedPaths. Same registry-MRU family as the Shellbags/RunMRU work from the previous PRs.Verification
cl /std:c++17 /DUNICODE /D_UNICODE, VS 2022 BuildTools + WDK 10.0.26100 headers): clean.MRUListEx/MRUListrepaired).