i need to obtain the windows low level key code ( http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx ) intercepting input from UIElement.PreviewKeyDown()
for send it via socket and share these with another host.
Is there any way for it?
Asked
Active
Viewed 1,388 times
1

Alexander.It
- 187
- 1
- 1
- 16
1 Answers
3
I believe what you are looking for is System.Windows.Input.KeyInterop. Here is how you use it:
private void previewKeyDownHandler(object sender, KeyEventArgs e){
var vk = KeyInterop.VirtualKeyFromKey(e.Key);
//....
}

King King
- 61,710
- 16
- 105
- 130