最終更新:2014-08-28 (木) 04:33:05 (3519d)  

HidD_SetFeature
Top / HidD_SetFeature

sends a feature report to a top-level collection.

http://msdn.microsoft.com/en-us/library/windows/hardware/ff539684(v=vs.85).aspx

コントロール転送HIDデバイス対してデータを送信する関数

BOOLEAN __stdcall HidD_SetFeature(
  __in  HANDLE HidDeviceObject,
  __in  PVOID ReportBuffer,
  __in  ULONG ReportBufferLength
);

動作

Sending reports

char buffer[REPORT_SIZE + 1];
 
buffer[0] = MY_REPORT_ID;
HidD_SetFeature(handle, buffer, REPORT_SIZE + 1);

HID/レポートID

  • If you use report IDs (which is necessary if you have more than one report type), the first byte must always be the report ID.

サンプル

関連