Platform SDK: DirectX

DIPROPRANGE

The DIPROPRANGE type is used to store property information to be set on or retrieved from the input device by using the DirectInputDevice.SetProperty and DirectInputDevice.GetProperty methods, where the property is a range of values.

Type DIPROPRANGE
    lHow As Long
    lMax As Long
    lMin As Long
    lObj As Long
    lSize As Long
End Type

Members

lHow
Value specifying how the lObj member should be interpreted. This value may be one of the members of the CONST_DIPHFLAGS enumeration.
lMax
Upper limit of the range. If the range of the device is unrestricted, this value will be DIPROPRANGE_NOMAX (from the CONST_DINPUT enumeration) when the DirectInputDevice.GetProperty method returns.
lMin
Lower limit of the range. If the range of the device is unrestricted, this value will be DIPROPRANGE_NOMIN (from the CONST_DINPUT enumeration)when the DirectInputDevice.GetProperty method returns.
lObj
Object for which the property is to be accessed.

If the lHow member is DIPH_BYID, this member must be the identifier for the object whose property setting is to be set or retrieved. This value can be retrieved for the object by using the DirectInputDeviceObjectInstance.GetType method.

If the lHow member is DIPH_BYOFFSET, this member must be a data format offset for the object whose property setting is to be set or retrieved. This value can be obtained by using the DirectInputDeviceObjectInstance.GetOfs method.

If lHow is DIPH_DEVICE, this value should be 0.

lSize
Size of this type.

See Also

DIPROPLONG