IVMMouse::VerticalPosition property
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Retrieves the absolute y-coordinate of the mouse.
This property is read/write.
Syntax
HRESULT put_VerticalPosition(
[in] long position
);
HRESULT get_VerticalPosition(
[out, retval] long *position
);
Property value
The y-coordinate indicating the new position of the mouse. When using absolute coordinates, this value specifies the new y-coordinate of the mouse. When using relative coordinates, this value specifies the number of pixels the mouse should be moved in the y direction.
Error codes
Name/value | Meaning |
---|---|
|
The operation was successful. |
|
The parameter is NULL. |
|
The virtual machine to which this mouse device is attached is not currently running. |
|
Integration components must be installed to retrieve the mouse position, or to set the mouse position when using absolute coordinates. |
|
The mouse device is currently set to use relative mouse coordinates. |
|
The absolute coordinates cannot be retrieved if the mouse device is not powered up, or if it is not currently active in the virtual machine. |
|
An unexpected error has occurred. |
Remarks
This property cannot be retrieved when using relative coordinates.
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 |