IVMKeyboard::IsPressed method
The IsPressed method returns the current state (pressed or released) of the specified key within the virtual machine.
Syntax
HRESULT IsPressed(
[in] BSTR key,
[out] VARIANT_BOOL *pressed
);
Parameters
-
key [in]
-
The key code for the key whose state is being queried.
-
pressed [out]
-
TRUE if the key is currently pressed down, FALSE otherwise.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
The operation was successful. |
|
The key or pressed parameter is NULL. |
|
The given text string is empty, or contains an invalid key code. |
|
An unexpected error occurred. |
Requirements
Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
Header |
|