IVMMouse::GetButton method
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Retrieves the current state (up or down) of the specified mouse button.
Syntax
HRESULT GetButton(
[in] VMMouseButton buttonIndex,
[out, retval] VARIANT_BOOL *isDown
);
Parameters
-
buttonIndex [in]
-
The index of the button whose state is being requested. For a list of values, see VMMouseButton.
-
isDown [out, retval]
-
The state of the indicated button. TRUE if the button is currently down in the virtual machine, FALSE otherwise.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successful. |
|
The isDown parameter is NULL. |
|
The buttonIndex parameter is not valid. |
|
The virtual machine to which this mouse device is attached is not currently running. |
|
The mouse device has not been powered up. |
|
An unexpected error has occurred. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
End of client support |
Windows 7 |
Product |
Windows Virtual PC |
Header |
|
IID |
IID_IVMmouse is defined as ac903f6d-6346-4f29-8875-5d511a13895e |