Open the failed application using the Administrator privileges: Right-click the application’s executable file, select “Run as Administrator”
Failed application startup on old operating system platform:
Right-click on the program and select Properties:
Select the Compatibility tab, tick the Run this program in compatibility mode for:
In the list displayed, select the correct version of Windows that matches the program. Click Apply and the system will apply this setting for subsequent launches:
Turn off the antivirus program in your computer and run the application.
This way I installed the game Age of Empires II on win 10 error 0xc0000022 and successfully overcome.
Control Panel -> Programs and Features -> Turn Windows Features on or off -> Check “Legacy Components” (both DirectPlay inside).