DIPROPRANGE

The DIPROPRANGE structure contains information about the range of an object within a device. This structure is used with the DIPROP_RANGE flag set in the IDirectInputDevice::GetProperty and IDirectInputDevice::SetProperty methods.

typedef struct DIPROPRANGE {

DIPROPHEADER diph;

LONG lMin;

LONG lMax;

} DIPROPRANGE, *LPDIPROPRANGE;

typedef const DIPROPRANGE *LPCDIPROPRANGE;

Members

diph

A DIPROPHEADER structure that must be initialized as follows:

dwSize sizeof(DIPROPRANGE)
dwHeaderSize sizeof(DIPROPHEADER)
dwObj Identifier of the object whose range is being retrieved or set.
dwHow How the dwObj member should be interpreted.

lMin

The lower limit of the range, inclusive. If the range of the device is unrestricted, this value will be DIPROPRANGE_NOMIN when the IDirectInputDevice::GetProperty method returns.

lMax

The upper limit of the range, inclusive. If the range of the device is unrestricted, this value will be DIPROPRANGE_NOMAX when the IDirectInputDevice::GetProperty method returns.

Remarks

The range values for devices whose ranges are unrestricted will wrap around.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Use Windows 95 OSR2 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in dinput.h.

See Also

DIPROPDWORD, IDirectInputDevice::GetProperty, IDirectInputDevice::SetProperty