misu – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.Runtime.InteropServices; |
||
3 | using System.Text; |
||
4 | |||
5 | namespace misu |
||
6 | { |
||
7 | public static class Natives |
||
8 | { |
||
9 | #region Public Methods |
||
10 | |||
11 | [DllImport("user32.dll")] |
||
12 | public static extern bool GetKeyboardState(byte[] lpKeyState); |
||
13 | |||
14 | [DllImport("user32.dll")] |
||
15 | public static extern uint MapVirtualKey(uint uCode, uint uMapType); |
||
16 | |||
17 | [DllImport("user32.dll")] |
||
18 | public static extern IntPtr GetKeyboardLayout(uint idThread); |
||
19 | |||
20 | [DllImport("user32.dll")] |
||
21 | public static extern int ToUnicodeEx(uint wVirtKey, uint wScanCode, byte[] lpKeyState, |
||
22 | [Out] [MarshalAs(UnmanagedType.LPWStr)] |
||
23 | StringBuilder pwszBuff, int cchBuff, uint wFlags, IntPtr dwhkl); |
||
24 | |||
25 | #endregion |
||
26 | } |
||
27 | } |