DestroyEffect routine
The DestroyEffect callback commands the device to "destroy" a currently downloaded effect. The effect ID and any data that is associated with the effect are freed and available for reallocation.
Syntax
HRESULT DestroyEffect(
DWORD dwDeviceID,
DWORD dwDnloadID
);
Parameters
dwDeviceID
Indicates the external joystick number being addressed.dwDnloadID
Indicates the effect ID that was obtained from the device when the effect was downloaded.
Return value
Returns S_OK on success; otherwise, returns an error code.
Requirements
Target platform |
|
Header |
Dinputd.h |