Collapse All
Parallels Virtualization SDK
ContentsIndex
PreviousUpNext
PrlDevKeyboard_SendKeyPressedAndReleased Function
Keyboard Control

Sends a keyboard key pressed and released to a virtual machine.

Syntax
PRL_RESULT PrlDevKeyboard_SendKeyPressedAndReleased(
    PRL_HANDLE hVm, 
    PRL_KEY key
);
File

PrlApiVm.h

Parameters

hVm
A handle of type of PHT_VIRTUAL_MACHINE identifying the virtual machine.
key
Key code. See the PrlKeys.h file for the list of the available key codes.

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed. 

PRL_ERR_SUCCESS - function completed successfully. 

Links
© 2021 Parallels International GmbH. All rights reserved.