GetKeyState() private method

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