How to properly use FInputDeviceScope?

I want to use FInputDeviceScope to determine which of all the connected gamepads is in use right now. But every time I try to use FInputDeviceScope::GetCurrent(), my project compile with error LNK2019.
So how should I properly use FInputDeviceScope to get currently active gamepad?

bumping this!

You need to add:

Dependency Module : “ApplicationCore” &
#include “GenericPlatform/GenericApplicationMessageHandler.h”