Platform SDK: DirectX

DirectInputEnumEffects.GetType

The DirectInputEnumEffects.GetType method retrieves information about the type and capabilities of the effect.

object.GetType(i As Long) As CONST_DIEFTFLAGS

Parameters

object
Object expression that resolves to a DirectInputEnumEffects object.
i
Index (1-based) of the effect in the collection.

Return Values

The method 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 will be set.

Remarks

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