Microsoft DirectX 8.1 (Visual Basic)

DirectInputDeviceObjectInstance.GetOfs

Retrieves the offset of the device object's data within the data format for the device.

object.GetOfs() As Long

Parts

object
Resolves to a DirectInputDeviceObjectInstance object.

Return Values

Returns the offset within the data format at which data is reported for this object. This value can be used to identify the object in method calls and types that accept the DIPH_BYOFFSET flag.

Error Codes

If the method fails, an error is raised and Err.Number is set.

See Also

DirectInputDevice8.GetObjectInfo, DIPROPLONG, DIPROPRANGE