New PC with Windows 11, can't start Bad Company 2

Hello all
Have a new PC with Windows 11
Bad Company 2 runs without the
dinput8.dll file but can’t connect due
the missing EA servers.
But after adding the dinput8.dll file
Bad Company 2 won’t start and
an Application error message comes
0xc000007b
After deleting dinput8.dll the game starts.
Who can help?