HP Operations Manager for Windows

IOvStdio::IsAnyKeyPressed


Check if any key is pressed.

HRESULT IsAnyKeyPressed([out, retval] VARIANT_BOOL* pbPressed);

Parameters

None.

Returning Parameter

pbPressed
If any key was pressed, VARIANT_TRUE is returned on this parameter. Otherwise, VARIANT_FALSE is returned.

HRESULT Return Values

S_OK
Any key was pressed.

S_FALSE
No key was pressed.

(FAILED)
An error occurred. IErrorInfo was created. A detailed error description is traced.

Description

The IsAnyKeyPressed method returns VARIANT_TRUE when any key is pressed.