summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
committer3gg <3gg@shellblade.net>2025-12-27 12:03:39 -0800
commit5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch)
tree8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h')
-rw-r--r--contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h
new file mode 100644
index 0000000..95e2fcb
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/hidapi/windows/hidapi_hidsdi.h
@@ -0,0 +1,59 @@
1/*******************************************************
2 HIDAPI - Multi-Platform library for
3 communication with HID devices.
4
5 libusb/hidapi Team
6
7 Copyright 2022, All Rights Reserved.
8
9 At the discretion of the user of this library,
10 this software may be licensed under the terms of the
11 GNU General Public License v3, a BSD-Style license, or the
12 original HIDAPI license as outlined in the LICENSE.txt,
13 LICENSE-gpl3.txt, LICENSE-bsd.txt, and LICENSE-orig.txt
14 files located at the root of the source distribution.
15 These files may also be found in the public source
16 code repository located at:
17 https://github.com/libusb/hidapi .
18********************************************************/
19
20#ifndef HIDAPI_HIDSDI_H
21#define HIDAPI_HIDSDI_H
22
23#ifdef HIDAPI_USE_DDK
24
25#include <hidsdi.h>
26
27#else
28
29/* This part of the header mimics hidsdi.h,
30 but only what is used by HIDAPI */
31
32typedef USHORT USAGE;
33
34#include "hidapi_hidpi.h"
35
36typedef struct _HIDD_ATTRIBUTES{
37 ULONG Size;
38 USHORT VendorID;
39 USHORT ProductID;
40 USHORT VersionNumber;
41} HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;
42
43typedef void (__stdcall *HidD_GetHidGuid_)(LPGUID hid_guid);
44typedef BOOLEAN (__stdcall *HidD_GetAttributes_)(HANDLE device, PHIDD_ATTRIBUTES attrib);
45typedef BOOLEAN (__stdcall *HidD_GetSerialNumberString_)(HANDLE device, PVOID buffer, ULONG buffer_len);
46typedef BOOLEAN (__stdcall *HidD_GetManufacturerString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
47typedef BOOLEAN (__stdcall *HidD_GetProductString_)(HANDLE handle, PVOID buffer, ULONG buffer_len);
48typedef BOOLEAN (__stdcall *HidD_SetFeature_)(HANDLE handle, PVOID data, ULONG length);
49typedef BOOLEAN (__stdcall *HidD_GetFeature_)(HANDLE handle, PVOID data, ULONG length);
50typedef BOOLEAN (__stdcall *HidD_GetInputReport_)(HANDLE handle, PVOID data, ULONG length);
51typedef BOOLEAN (__stdcall *HidD_GetIndexedString_)(HANDLE handle, ULONG string_index, PVOID buffer, ULONG buffer_len);
52typedef BOOLEAN (__stdcall *HidD_GetPreparsedData_)(HANDLE handle, PHIDP_PREPARSED_DATA *preparsed_data);
53typedef BOOLEAN (__stdcall *HidD_FreePreparsedData_)(PHIDP_PREPARSED_DATA preparsed_data);
54typedef BOOLEAN (__stdcall *HidD_SetNumInputBuffers_)(HANDLE handle, ULONG number_buffers);
55typedef BOOLEAN (__stdcall *HidD_SetOutputReport_)(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength);
56
57#endif
58
59#endif /* HIDAPI_HIDSDI_H */