Sends data to a device that accepts output.
Note There are no devices that accept output from IDirectInputDevice8::SendDeviceData. See Remarks.
HRESULT SendDeviceData( DWORD cbObjectData, LPCDIDEVICEOBJECTDATA rgdod, LPDWORD pdwInOut, DWORD fl );
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_INPUTLOST, DIERR_NOTACQUIRED, DIERR_REPORTFULL, DIERR_UNPLUGGED.
Applications should not use IDirectInputDevice8::SendDeviceData. Force Feedback is the recommended way to send data to a device. If you want to send other data to a device, such as changing LED or internal device states, the HID application programming interface (API) is the recommended way.
Header: Declared in Dinput.h.