DirectX SDK

DirectInputEnumEffects.GetName

The DirectInputEnumEffects.GetName method retrieves the name of the effect.

object.GetName(i As Long) As String

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 the name of the effect, such as "Constant Force".

Error Codes

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