You need to call this function to get info
Create FDisplayMetrics struct then put it as argument of that function and it will be filled with information.
You don’t need to “inject” any code to engine to expose functionality to blueprint as long as APIs are exposed to other modules. Just make blueprint function that calls that C++ function.