From 5c06d34b497bfc1a8295d6632c7b8d5206fc6baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 23 Oct 2024 09:21:30 +0800 Subject: [PATCH] Windows: use system provided `CM_Get_Device_Interface_PropertyW` --- src/detection/keyboard/keyboard_windows.c | 9 --------- src/detection/mouse/mouse_windows.c | 9 --------- 2 files changed, 18 deletions(-) diff --git a/src/detection/keyboard/keyboard_windows.c b/src/detection/keyboard/keyboard_windows.c index cf8acabb3..24cd8a452 100644 --- a/src/detection/keyboard/keyboard_windows.c +++ b/src/detection/keyboard/keyboard_windows.c @@ -11,15 +11,6 @@ #include #include -WINAPI CMAPI CONFIGRET CM_Get_Device_Interface_PropertyW( - _In_ LPCWSTR pszDeviceInterface, - _In_ const DEVPROPKEY *PropertyKey, - _Out_ DEVPROPTYPE *PropertyType, - _Out_ PBYTE PropertyBuffer, - _Inout_ PULONG PropertyBufferSize, - _In_ ULONG ulFlags -); - const char* ffDetectKeyboard(FFlist* devices /* List of FFKeyboardDevice */) { UINT nDevices = 0; diff --git a/src/detection/mouse/mouse_windows.c b/src/detection/mouse/mouse_windows.c index 094390d35..08002e550 100644 --- a/src/detection/mouse/mouse_windows.c +++ b/src/detection/mouse/mouse_windows.c @@ -11,15 +11,6 @@ #include #include -WINAPI CMAPI CONFIGRET CM_Get_Device_Interface_PropertyW( - _In_ LPCWSTR pszDeviceInterface, - _In_ const DEVPROPKEY *PropertyKey, - _Out_ DEVPROPTYPE *PropertyType, - _Out_ PBYTE PropertyBuffer, - _Inout_ PULONG PropertyBufferSize, - _In_ ULONG ulFlags -); - const char* ffDetectMouse(FFlist* devices /* List of FFMouseDevice */) { UINT nDevices = 0;