[PATCH 1/7] hid: Implement HidP_SetUsageValueArray stub.

Rémi Bernon rbernon at codeweavers.com
Fri Jun 11 05:43:53 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/hid/hid.spec   | 2 +-
 dlls/hid/hidp.c     | 9 +++++++++
 include/ddk/hidpi.h | 3 +++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dlls/hid/hid.spec b/dlls/hid/hid.spec
index 98508a456ce..edfdb004fd0 100644
--- a/dlls/hid/hid.spec
+++ b/dlls/hid/hid.spec
@@ -37,7 +37,7 @@
 @ stub HidP_SetData
 @ stub HidP_SetScaledUsageValue
 @ stdcall HidP_SetUsageValue(long long long long long ptr ptr long)
-@ stub HidP_SetUsageValueArray
+@ stdcall HidP_SetUsageValueArray(long long long long ptr long ptr ptr long)
 @ stdcall HidP_SetUsages(long long long ptr ptr ptr ptr long)
 @ stdcall HidP_TranslateUsagesToI8042ScanCodes(ptr long long ptr ptr ptr)
 @ stub HidP_UnsetUsages
diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c
index 2933c2ff7ef..e56731d599e 100644
--- a/dlls/hid/hidp.c
+++ b/dlls/hid/hidp.c
@@ -388,6 +388,15 @@ NTSTATUS WINAPI HidP_GetUsageValueArray(HIDP_REPORT_TYPE ReportType, USAGE Usage
     return rc;
 }
 
+NTSTATUS WINAPI HidP_SetUsageValueArray( HIDP_REPORT_TYPE report_type, USAGE usage_page, USHORT collection, USAGE usage, char *value_buf, USHORT value_len,
+                                         PHIDP_PREPARSED_DATA preparsed_data, char *report_buf, ULONG report_len )
+
+{
+    FIXME( "report_type %d, usage_page %x, collection %d, usage %x, value_buf %p, value_len %u, preparsed_data %p, report_buf %p, report_len %u stub!\n",
+           report_type, usage_page, collection, usage, value_buf, value_len, preparsed_data, report_buf, report_len );
+
+    return HIDP_STATUS_NOT_IMPLEMENTED;
+}
 
 NTSTATUS WINAPI HidP_GetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection,
                                PUSAGE UsageList, PULONG UsageLength, PHIDP_PREPARSED_DATA PreparsedData,
diff --git a/include/ddk/hidpi.h b/include/ddk/hidpi.h
index fb497f3282f..8c970673ec1 100644
--- a/include/ddk/hidpi.h
+++ b/include/ddk/hidpi.h
@@ -201,6 +201,9 @@ NTSTATUS WINAPI HidP_InitializeReportForID(HIDP_REPORT_TYPE ReportType, UCHAR Re
 ULONG WINAPI HidP_MaxUsageListLength(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, PHIDP_PREPARSED_DATA PreparsedData);
 NTSTATUS WINAPI HidP_GetScaledUsageValue(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection, USAGE Usage, PLONG UsageValue, PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength);
 NTSTATUS WINAPI HidP_SetUsageValue(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection, USAGE Usage, ULONG UsageValue, PHIDP_PREPARSED_DATA PreparsedData, CHAR *Report, ULONG ReportLength);
+NTSTATUS WINAPI HidP_SetUsageValueArray( HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection,
+                                         USAGE Usage, PCHAR UsageValue, USHORT UsageValueByteLength,
+                                         PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength );
 NTSTATUS WINAPI HidP_SetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage,
         USHORT LinkCollection, PUSAGE UsageList, PULONG UsageLength,
         PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength);
-- 
2.31.0




More information about the wine-devel mailing list