wslapi.dll Error in Windows 10 and 11: Windows Subsystem for Linux startup API

A supported Windows app cannot launch or list installed WSL distributions and reports wslapi.dll.
The Windows file inventory identifies wslapi.dll as Windows Subsystem for Linux API. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Compare the app's result with wsl --list --verbose in an approved shell. Check the device build and whether the intended distribution is registered and starts normally.
Repair the affected feature
Update or repair WSL through Microsoft's supported installer. Keep existing distributions and their files intact. Repair the requesting app if official WSL tools still work.
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
Launch the intended distribution and repeat the supported app request, confirming the expected distribution name and state.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.