最終更新:2015-03-26 (木) 04:08:28 (3318d)  

Windows/HID
Top / Windows / HID

WindowsHIDデバイスを扱う時のメモ。

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

MSDNライブラリ

短縮URL

メモ

  • システムのキーボードやポインティングデバイスに関しては、WindowsはInputおよびOutputレポートへの排他的アクセス権を持っている。
  • API関数経由でレポートを取り出そうとするとAccess Deniedとなる。

HID/レポートの送受信

ドライバ

HID

SPB

API

Device Discovery and Setup

  • The following list identifies HID API that an application can use to: identify properties of a HID device, and, to establish communication with that device. In addition, an application can use some of these API to identify a Top Level Collection.

Data Movement

Report Creation and Interpretation

  • HID parser API (HidP_*)

HIDClass Support Routines

hidsdi.h

hidpi.h (HID parser API)

  • HidP_GetButtonCaps?
  • HidP_GetButtons?
  • HidP_GetButtonsEx?
  • HidP_GetCaps
  • HidP_GetData?
  • HidP_GetExtendedAttributes?
  • HidP_GetLinkCollectionNodes?
  • HidP_GetScaledUsageValue?
  • HidP_GetSpecificButtonCaps?
  • HidP_GetSpecificValueCaps?
  • HidP_GetUsages?
  • HidP_GetUsagesEx?
  • HidP_GetUsageValue?
  • HidP_GetUsageValueArray?
  • HidP_GetValueCaps
  • HidP_InitializeReportForID
  • HidP_IsSameUsageAndPage?
  • HidP_MaxDataListLength?
  • HidP_MaxUsageListLength?
  • HidP_SetButtons?
  • HidP_SetData?
  • HidP_SetScaledUsageValue?
  • HidP_SetUsages?
  • HidP_SetUsageValue?
  • HidP_SetUsageValueArray?
  • HidP_TranslateUsagesToI8042ScanCodes?
  • HidP_UnsetButtons?
  • HidP_UnsetUsages?
  • HidP_UsageAndPageListDifference?
  • HidP_UsageListDifference?
  • HidRegisterMinidriver?

関連DLL

手順

Raw Input

デバイスプロトコルAPI

ポート

Windows Hardware Dev Center

Human Interface Devices (目次)

HID Clients Supported in Windows

  • http://msdn.microsoft.com/en-us/library/windows/hardware/jj126194(v=vs.85).aspx
    Usage PageUsageWindows 7Windows 8NotesAccess Mode
    0x00010x0001 - 0x0002YesYesMouse class driver and mapper driver.Exclusive
    0x00010x0004 - 0x0005YesYesGame Controllers*Shared
    0x00010x0006 - 0x0007YesYesKeyboard / Keypad class driver and mapper driver.Exclusive
    0x00010x000CNoYesFlight Mode SwitchShared
    0x00010x0080YesYesSystem Controls (Power)Shared
    0x000C0x0001YesYesConsumer Controls (HIDServ.dll)Shared
    0x000D0x0002YesYesPen DeviceExclusive
    0x000D0x0004YesYesTouch ScreenExclusive
    0x0020MultipleNoYesSensorsShared
    0x00840x004YesYesHID UPS BatteryShared

Opening HID collections (hid.dll)

build?

関連

参考