wmpdui.dll Error in Windows 10 and 11: Legacy media player controls

Legacy Windows Media Player launches, but its library or playback controls render blank and the event names wmpdui.dll.
The Windows file inventory identifies wmpdui.dll as Windows Media Player UI Engine. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Try a short known-good local file and note whether only controls fail. Record the current Windows display scale and app language so the check can be repeated.
Repair the affected feature
Repair the official optional media component or apply approved Windows updates. Restore a confirmed affected display or accessibility setting through Settings.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Open the same player view and verify that playback controls render, accept input and allow the sample to play.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.