Enumerates all the effects in a file created by the Force Editor utility or another application using the same file format.
HRESULT EnumEffectsInFile( LPCSTR lpszFileName, LPENUMEFFECTSINFILECALLBACK pec, LPVOID pvRef, DWORD dwFlags )
- Name of the RIFF file.
- Address of an application-defined callback function. The declaration of this function must conform to that of the DIEnumEffectsInFileCallback prototype.
- Application-defined value to be passed to the callback function. This parameter can be any 32-bit type.
Can be DIFEF_DEFAULT ( = 0) or one or both of the following values:
- Include effect types that are not defined by DirectInput.
- Instruct DirectInput to modify the authored effect, if necessary, so that it plays on the current device. For example, by default, an effect authored for two axes does not play on a single-axis device. Setting this flag allows the effect to play on a single axis. The parameters are modified in the DIEFFECT structure pointed to by the lpDiEffect member of the DIFILEEFFECT structure passed to the callback.
If the method succeeds, the return value is DI_OK. If the method fails, the return value can be one of the following error values:DIERR_INVALIDPARAM DIERR_NOTINITIALIZED