Fix #398 keyboard layout change not working

This commit is contained in:
stax76
2022-04-08 19:16:18 +02:00
parent 1bc6fb9509
commit 309ddbf08e
4 changed files with 10 additions and 17 deletions

View File

@@ -18,6 +18,9 @@ namespace mpvnet
[DllImport("kernel32.dll")]
public static extern IntPtr LoadLibrary(string path);
[DllImport("user32.dll")]
public static extern uint ActivateKeyboardLayout(IntPtr hkl, uint flags);
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
public static extern IntPtr FindWindowEx(
IntPtr parentHandle, IntPtr childAfter, string lclassName, string windowTitle);