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:
Member Value
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/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dinput.h.

See Also

IDirectInputDevice::GetProperty, IDirectInputDevice::SetProperty