Microsoft DirectX 8.1 (C++) |
Creates and initializes an instance of an effect identified by the effect GUID.
HRESULT CreateEffect( REFGUID rguid, LPCDIEFFECT lpeff, LPDIRECTINPUTEFFECT *ppdeff, LPUNKNOWN punkOuter );
The following standard effect GUIDs are defined:
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_DEVICEFULL |
DIERR_DEVICENOTREG |
DIERR_INVALIDPARAM |
DIERR_NOTINITIALIZED |
If the return value is S_OK, the effect was created, and the parameters of the effect were updated, but the effect was not necessarily downloaded. For it to be downloaded, the device must be acquired in exclusive mode.
Windows NT/2000/XP: Requires Windows® 2000.
Windows 98/Me: Requires Windows 98 or later. Available as a redistributable for Windows 98.
Header: Declared in Dinput.h.