Επεξεργασία

Κοινή χρήση μέσω


IVMMouse::UsingAbsoluteCoordinates property

[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]

Retrieves whether mouse coordinates represent absolute or relative coordinates.

This property is read/write.

Syntax

HRESULT put_UsingAbsoluteCoordinates(
  [in]          VARIANT_BOOL usingAbsoluteCoordinates
);

HRESULT get_UsingAbsoluteCoordinates(
  [out, retval] VARIANT_BOOL *usingAbsoluteCoordinates
);

Property value

VARIANT_TRUE to set the mouse device to use absolute coordinates, VARIANT_FALSE to use relative coordinates.

Error codes

Name/value Meaning
S_OK
0
The operation was successful.
E_POINTER
0x80004003
The parameter is NULL.
VM_E_VM_NOT_RUNNING
0xA0040206
The virtual machine to which this mouse device is attached is not currently running.
VM_E_ADDITIONS_FEATURE_NOT_AVAIL
0xA0040505
Integration components are not installed. Integration components are required to use absolute coordinates.
DISP_E_EXCEPTION
0x80020009
An unexpected error has occurred.

Remarks

This property is local only to this object and will default to VARIANT_FALSE for a new IVMMouse object. Note that integration components must be installed in order to use absolute 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
VPCCOMInterfaces.h
IID
IID_IVMmouse is defined as ac903f6d-6346-4f29-8875-5d511a13895e

See also

IVMMouse