Audit finding
Win32MenuWindowTracker.cs contains the event args, public tracker interface, association policy, timer coordinator, WinEvent hook management, message-only window, menu-window enumeration, deduplication and native declarations.
As a result, a single class/file owns notification transport, candidate discovery, association policy and publication state.
Target state
Keep a small Win32MenuWindowTracker coordinator and extract focused collaborators:
- menu event hook/refresh signal source;
- menu-window enumerator;
- candidate/association policy;
- changed-window-set publisher or snapshot comparer.
Native declarations should move to the consolidated interop boundary tracked separately.
Acceptance criteria
Audit finding
Win32MenuWindowTracker.cscontains the event args, public tracker interface, association policy, timer coordinator, WinEvent hook management, message-only window, menu-window enumeration, deduplication and native declarations.As a result, a single class/file owns notification transport, candidate discovery, association policy and publication state.
Target state
Keep a small
Win32MenuWindowTrackercoordinator and extract focused collaborators:Native declarations should move to the consolidated interop boundary tracked separately.
Acceptance criteria