mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Windows: use system provided CM_Get_Device_Interface_PropertyW
This commit is contained in:
@@ -11,15 +11,6 @@
|
||||
#include <cfgmgr32.h>
|
||||
#include <devpkey.h>
|
||||
|
||||
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;
|
||||
|
||||
@@ -11,15 +11,6 @@
|
||||
#include <cfgmgr32.h>
|
||||
#include <devpkey.h>
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user