penimc.dll Error in Windows 10 and 11: Windows Presentation Foundation stylus input

A WPF app may open and accept mouse input while its stylus or ink feature fails.
The Windows file inventory identifies penimc.dll as Microsoft® .NET Framework. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Compare actual pen pressure and strokes in the target application and another compatible app. Record the app’s .NET runtime and device version.
Repair the affected feature
Use the publisher’s supported app or Framework repair and the PC maker’s signed digitizer update. Keep other input methods available.
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
Draw a short stroke in the original WPF app and confirm it records the expected path and device input.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.