# IKeyboard Interface Reference

The IKeyboard interface represents the virtual machine's keyboard. More...

List of all members.

## Public Member Functions
void | putScancode (in long scancode)
| Sends a scancode to the keyboard.
void | putScancodes (in long[] scancodes,[retval] out unsigned long codesStored)
| Sends an array of scancodes to the keyboard.
void | putCAD ()
| Sends the Ctrl-Alt-Del sequence to the keyboard.

## Detailed Description

The IKeyboard interface represents the virtual machine's keyboard.

Used in IConsole::keyboard.

Use this interface to send keystrokes or the Ctrl-Alt-Del sequence to the virtual machine.

Interface ID:
  `{2D1A531B-4C6E-49CC-8AF6-5C857B78B5D7}`

## Member Function Documentation

void IKeyboard::putScancode | ( | in long | scancode | ) |

Sends a scancode to the keyboard.

Expected result codes:

  VBOX_E_IPRT_ERROR | Could not send scan code to virtual keyboard.

void IKeyboard::putScancodes | ( | in long[] | scancodes,
|  | [retval] out unsigned long | codesStored |
| ) |  |  |

Sends an array of scancodes to the keyboard.

Expected result codes:

  VBOX_E_IPRT_ERROR | Could not send all scan codes to virtual keyboard.

void IKeyboard::putCAD | ( |  | ) |

Sends the Ctrl-Alt-Del sequence to the keyboard.

This function is nothing special, it is just a convenience function calling IKeyboard::putScancodes with the proper scancodes.

Expected result codes:

  VBOX_E_IPRT_ERROR | Could not send all scan codes to virtual keyboard.