'How to recognize different HID keyboards in WPF

I'm developing WPF application. I have two textboxes in XAML, I now want the two textboxes to receive input message from different HID keyboards which has different PID and VID. How to achieve it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source