mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
[HIDCLASS] Implement IOCTL_HID_GET_FEATURE/IOCTL_HID_SET_FEATURE
This commit is contained in:
parent
afca8367ea
commit
501116b68f
3 changed files with 145 additions and 0 deletions
|
@ -67,6 +67,32 @@ HidClassPDO_GetReportDescription(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
PHIDP_REPORT_IDS
|
||||
HidClassPDO_GetReportDescriptionByReportID(
|
||||
PHIDP_DEVICE_DESC DeviceDescription,
|
||||
UCHAR ReportID)
|
||||
{
|
||||
ULONG Index;
|
||||
|
||||
for (Index = 0; Index < DeviceDescription->ReportIDsLength; Index++)
|
||||
{
|
||||
if (DeviceDescription->ReportIDs[Index].ReportID == ReportID)
|
||||
{
|
||||
//
|
||||
// found report id
|
||||
//
|
||||
return &DeviceDescription->ReportIDs[Index];
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// failed to find report id
|
||||
//
|
||||
DPRINT1("[HIDCLASS] GetReportDescriptionByReportID ReportID %x not found\n", ReportID);
|
||||
ASSERT(FALSE);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
HidClassPDO_HandleQueryDeviceId(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue