Platform SDK: DirectX

DirectInputEnumEffects.GetEffectGuid

The DirectInputEnumEffects.GetEffectGuid method retrieves the GUID for the supported effect. This GUID can be passed to the DirectInputDevice.CreateEffect method.

object.GetEffectGuid(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 GUID in string form. For standard effects, the return value is an alias such as "GUID_ConstantForce".

Error Codes

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

See Also

Using GUIDs