UEAsLibrary mouse input not working as app is never active

i tell you what i do:
1. build ue as lib
2.copy the dll file to my another c++ application
3.user LoadLibrary to call UELibrary_InitA
4.build my c++ application
5.run and show me error:
微信图片_20220322090549

this is my code ships :