Microsoft DirectX 8.1 (Visual Basic)

DirectInputEnumEffects.GetType

Retrieves information about the type and capabilities of the effect.

object.GetType(i As Long) As CONST_DIEFTFLAGS

Parts

object
Resolves to a DirectInputEnumEffects object.
i
Index (1-based) of the effect in the collection.

Return Values

Returns flags from the CONST_DIEFTFLAGS enumeration giving information about the effect.

Error Codes

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

Remarks

The effect type is stored in the low byte and can be retrieved by a bitwise And with &HFF.