GetKeyState() private method

private GetKeyState ( int vKey ) : short
vKey int
return short
コード例 #1
0
 /// <summary>
 /// Is capslock engaged?
 /// </summary>
 /// <returns></returns>
 public static bool IsNumLockOn()
 {
     return(User32Interop.GetKeyState(VK_NUMLOCK) != 0);
 }
コード例 #2
0
 /// <summary>
 /// Is capslock engaged?
 /// </summary>
 /// <returns></returns>
 public static bool IsCapsLockOn()
 {
     return(User32Interop.GetKeyState(VK_CAPITAL) != 0);
 }