Freigeben über


Keyboard Functions (Compact 2013)

3/28/2014

The following table shows the keyboard functions.

  • ActivateKeyboardLayout
    This function sets the input locale identifier, formerly called the keyboard layout handle, for the system.
  • EnableWindow
    This function enables or disables mouse and keyboard input to the specified window or control.
  • GetActiveWindow
    This function retrieves the window handle to the active window associated with the thread that calls the function.
  • GetAsyncKeyState
    This function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
  • GetAsyncShiftFlags
    This function provides asynchronous state information about the virtual key that is passed in. It also provides the current state information on the shift flags provided by KEY_STATE_FLAGS.
  • GetFocus
    This function retrieves the handle to the keyboard focus window associated with the thread that called the function.
  • GetKeybdGuidFromKeybdMessage
    This function returns the identifier of the keyboard that produced a keyboard event, so that an application can verify the correct keyboard layout is loaded.
  • GetKeyboardLayout
    This function retrieves the active keyboard layout for a specified thread.
  • GetKeyboardLayoutList
    This function retrieves the input locale identifiers, formerly called keyboard layout handles, corresponding to the current set of input locales in the system.
  • GetKeyboardType
    This function retrieves information about the current keyboard.
  • GetKeyState
    This function retrieves the status of the specified virtual key.
  • IsWindowEnabled
    This function determines whether the specified window is enabled for touch screen input and keyboard input.
  • keybd_eventEx
    This function synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message.
  • KeybdGetDeviceInfo
    This function returns information about the keyboard and the keyboard driver.
  • LoadKeyboardLayout
    This function places the specified layout in the available layout list.
  • MapVirtualKey
    This function translates, or maps, a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
  • PostKeybdMessage
    This function posts a keyboard message to the specified window.
  • PostKeybdMessageEx
    This function posts a keyboard message from a specified keyboard to the specified window.
  • SendInput
    This function synthesizes keystrokes, stylus and mouse motions, and button clicks.
  • SetActiveWindow
    This function makes the specified top-level window associated with the thread calling this function the active window.
  • SetFocus
    This function sets the keyboard focus to the specified window.

See Also

Reference

Keyboard Reference