?/TD>
Microsoft DirectX 9.0

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

Syntax

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

Members

diph
DIPROPHEADER structure.
lMin
Lower limit of the range. If the range of the device is unrestricted, this value is DIPROPRANGE_NOMIN when the IDirectInputDevice8::GetProperty method returns.
lMax
Upper limit of the range. If the range of the device is unrestricted, this value is DIPROPRANGE_NOMAX when the IDirectInputDevice8::GetProperty method returns.

Remarks

The diph member must be initialized as follows:
MemberValue
dwSizesizeof(DIPROPRANGE)
dwHeaderSizesizeof(DIPROPHEADER)
dwObjIf the dwHow member is DIPH_DEVICE, this member must be 0.

If the dwHow member is DIPH_BYID, this member must be the identifier for the object whose property setting is to be set or retrieved.

If the dwHow member is DIPH_BYOFFSET, this member must be a data format offset for the object whose property setting is to be set or retrieved. For example, if the c_dfDIMouse data format is selected, it must be one of the DIMOFS_* values.Identifier of the object whose property is being retrieved or set.

If the dwHow member is DIPH_BYUSAGE, the device must be a Human Interface Device (HID). The device object will be identified by the HID usage page and usage values in packed form.

dwHowSpecifies how the dwObj member should be interpreted. See the preceding description of the dwObj member for details.

The range values for devices whose ranges are unrestricted wraparound.

Structure Information

Headerdinput.h
Minimum operating systems Windows 98

See Also

IDirectInputDevice8::GetProperty, IDirectInputDevice8::SetProperty


© 2002 Microsoft Corporation. All rights reserved.