Platform SDK: DirectX

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 IDirectInputDevice7::GetProperty and IDirectInputDevice7::SetProperty methods.

typedef struct DIPROPRANGE { 
    DIPROPHEADER diph; 
    LONG         lMin; 
    LONG         lMax; 
} DIPROPRANGE, *LPDIPROPRANGE; 
 
typedef const DIPROPRANGE *LPCDIPROPRANGE;

Members

diph
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
Lower limit of the range. If the range of the device is unrestricted, this value is DIPROPRANGE_NOMIN when the IDirectInputDevice7::GetProperty method returns.
lMax
Upper limit of the range. If the range of the device is unrestricted, this value is DIPROPRANGE_NOMAX when the IDirectInputDevice7::GetProperty method returns.

Remarks

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

Requirements

  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

IDirectInputDevice7::GetProperty, IDirectInputDevice7::SetProperty