[1046] | 1 | /*
|
---|
| 2 | * hidsdi.h
|
---|
| 3 | *
|
---|
| 4 | * This file is part of the w32api package.
|
---|
| 5 | *
|
---|
| 6 | * THIS SOFTWARE IS NOT COPYRIGHTED
|
---|
| 7 | *
|
---|
| 8 | * This source code is offered for use in the public domain. You may
|
---|
| 9 | * use, modify or distribute it freely.
|
---|
| 10 | *
|
---|
| 11 | * This code is distributed in the hope that it will be useful but
|
---|
| 12 | * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
---|
| 13 | * DISCLAIMED. This includes but is not limited to warranties of
|
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #ifndef _HIDSDI_H
|
---|
| 18 | #define _HIDSDI_H
|
---|
| 19 |
|
---|
| 20 | #if __GNUC__ >= 3
|
---|
| 21 | #pragma GCC system_header
|
---|
| 22 | #endif
|
---|
| 23 |
|
---|
| 24 | #ifdef __cplusplus
|
---|
| 25 | extern "C" {
|
---|
| 26 | #endif
|
---|
| 27 |
|
---|
| 28 | #include <ddk/hidusage.h>
|
---|
| 29 | #include <ddk/hidpi.h>
|
---|
| 30 |
|
---|
| 31 | #ifndef WINHIDSDI
|
---|
| 32 | #define WINHIDSDI DECLSPEC_IMPORT
|
---|
| 33 | #endif
|
---|
| 34 |
|
---|
| 35 | #include <pshpack4.h>
|
---|
| 36 |
|
---|
| 37 | typedef struct _HIDD_CONFIGURATION {
|
---|
| 38 | PVOID cookie;
|
---|
| 39 | ULONG size;
|
---|
| 40 | ULONG RingBufferSize;
|
---|
| 41 | } HIDD_CONFIGURATION, *PHIDD_CONFIGURATION;
|
---|
| 42 |
|
---|
| 43 | typedef struct _HIDD_ATTRIBUTES {
|
---|
| 44 | ULONG Size;
|
---|
| 45 | USHORT VendorID;
|
---|
| 46 | USHORT ProductID;
|
---|
| 47 | USHORT VersionNumber;
|
---|
| 48 | } HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;
|
---|
| 49 |
|
---|
| 50 | WINHIDSDI BOOL WINAPI HidD_GetAttributes (HANDLE, PHIDD_ATTRIBUTES);
|
---|
| 51 | WINHIDSDI VOID WINAPI HidD_GetHidGuid (LPGUID);
|
---|
| 52 | WINHIDSDI BOOL WINAPI HidD_GetPreparsedData(HANDLE, PHIDP_PREPARSED_DATA *);
|
---|
| 53 | WINHIDSDI BOOL WINAPI HidD_FreePreparsedData(PHIDP_PREPARSED_DATA);
|
---|
| 54 | WINHIDSDI BOOL WINAPI HidD_FlushQueue (HANDLE);
|
---|
| 55 | WINHIDSDI BOOL WINAPI HidD_GetConfiguration (HANDLE, PHIDD_CONFIGURATION, ULONG);
|
---|
| 56 | WINHIDSDI BOOL WINAPI HidD_SetConfiguration (HANDLE, PHIDD_CONFIGURATION, ULONG);
|
---|
| 57 | WINHIDSDI BOOL WINAPI HidD_GetFeature (HANDLE, PVOID, ULONG);
|
---|
| 58 | WINHIDSDI BOOL WINAPI HidD_SetFeature (HANDLE, PVOID, ULONG);
|
---|
| 59 | WINHIDSDI BOOL WINAPI HidD_GetNumInputBuffers (HANDLE, PULONG);
|
---|
| 60 | WINHIDSDI BOOL WINAPI HidD_SetNumInputBuffers (HANDLE HidDeviceObject, ULONG);
|
---|
| 61 | WINHIDSDI BOOL WINAPI HidD_GetPhysicalDescriptor (HANDLE, PVOID, ULONG);
|
---|
| 62 | WINHIDSDI BOOL WINAPI HidD_GetManufacturerString (HANDLE, PVOID, ULONG);
|
---|
| 63 | WINHIDSDI BOOL WINAPI HidD_GetProductString ( HANDLE, PVOID, ULONG);
|
---|
| 64 | WINHIDSDI BOOL WINAPI HidD_GetIndexedString ( HANDLE, ULONG, PVOID, ULONG);
|
---|
| 65 | WINHIDSDI BOOL WINAPI HidD_GetSerialNumberString (HANDLE, PVOID, ULONG);
|
---|
| 66 |
|
---|
| 67 | #include <poppack.h>
|
---|
| 68 |
|
---|
| 69 | #ifdef __cplusplus
|
---|
| 70 | }
|
---|
| 71 | #endif
|
---|
| 72 |
|
---|
| 73 | #endif /* _HIDSDI_H */
|
---|