| Table 1 Windows HID API functions
|
|
|
|
|
| API function
|
Documentation
|
Use in HID communication
|
| HidD_GetHidGuid
|
Windows 98/2000 DDK
|
Returns the GUID
associated with HIDs
|
| SetupDiGetClassDevs
|
Windows NT/2000 DDK and
NT/2000 Platform SDK
|
Returns an array of structurescontaining information about all installed HIDs
|
| SetupDiEnumDeviceInterfaces
|
Windows NT/2000 DDK
and
NT/2000 Platform SDK
|
Returns a pointer to a structure that identifies an interface in the array returned by SetupDiGetClassDevs
|
| SetupDiGetDeviceInterfaceDetail
|
Windows NT/2000 DDK and
NT/2000 Platform SDK
|
Returns a device pathname for a specified device interface
|
| CreateFile
|
Windows Platform SDK
|
Opens a handle to a HID using the pathname returned by SetupDiGetDevice-InterfaceDetail
|
| HidD_GetAttributes
|
Windows 98/2000 DDK
|
Returns the Vendor ID,
Product ID, and Version for a specified HID
|
| HidD_GetPreparsedData
|
Windows 98/2000 DDK
|
Returns a handle to a buffer with information about a devices capabilities
|
| HidD_GetCaps
|
Windows 98/2000 DDK
|
Returns a structure describing a devices capabilities
|
| HidD_GetValueCaps
|
Windows 98/2000 DDK
|
Returns a structure describing the values in a device port
|
| HidD_GetButtonCaps
|
Windows 98/2000 DDK
|
Returns a structure describing buttons in a device report
|
| HidD_GetFeature
|
Windows 98/2000 DDK
|
Reads a feature report from a specified HID
|
| HidD_SetFeature
|
Windows 98/2000 DDK
|
Sends a feature report to a specified HID
|
| ReadFile
|
Windows Platform SDK
|
Reads in input report from a specified HID
|
| WriteFile
|
Windows Platform SDK
|
Sends out output report to a specified HID
|
| HidP_SetButtons
|
Windows 98/2000 DDK
|
Sets the button data in a report
|