source: Daodan/MinGW/include/ddk/hidsdi.h@ 1068

Last change on this file since 1068 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 2.2 KB
Line 
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
25extern "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
37typedef struct _HIDD_CONFIGURATION {
38 PVOID cookie;
39 ULONG size;
40 ULONG RingBufferSize;
41} HIDD_CONFIGURATION, *PHIDD_CONFIGURATION;
42
43typedef struct _HIDD_ATTRIBUTES {
44 ULONG Size;
45 USHORT VendorID;
46 USHORT ProductID;
47 USHORT VersionNumber;
48} HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;
49
50WINHIDSDI BOOL WINAPI HidD_GetAttributes (HANDLE, PHIDD_ATTRIBUTES);
51WINHIDSDI VOID WINAPI HidD_GetHidGuid (LPGUID);
52WINHIDSDI BOOL WINAPI HidD_GetPreparsedData(HANDLE, PHIDP_PREPARSED_DATA *);
53WINHIDSDI BOOL WINAPI HidD_FreePreparsedData(PHIDP_PREPARSED_DATA);
54WINHIDSDI BOOL WINAPI HidD_FlushQueue (HANDLE);
55WINHIDSDI BOOL WINAPI HidD_GetConfiguration (HANDLE, PHIDD_CONFIGURATION, ULONG);
56WINHIDSDI BOOL WINAPI HidD_SetConfiguration (HANDLE, PHIDD_CONFIGURATION, ULONG);
57WINHIDSDI BOOL WINAPI HidD_GetFeature (HANDLE, PVOID, ULONG);
58WINHIDSDI BOOL WINAPI HidD_SetFeature (HANDLE, PVOID, ULONG);
59WINHIDSDI BOOL WINAPI HidD_GetNumInputBuffers (HANDLE, PULONG);
60WINHIDSDI BOOL WINAPI HidD_SetNumInputBuffers (HANDLE HidDeviceObject, ULONG);
61WINHIDSDI BOOL WINAPI HidD_GetPhysicalDescriptor (HANDLE, PVOID, ULONG);
62WINHIDSDI BOOL WINAPI HidD_GetManufacturerString (HANDLE, PVOID, ULONG);
63WINHIDSDI BOOL WINAPI HidD_GetProductString ( HANDLE, PVOID, ULONG);
64WINHIDSDI BOOL WINAPI HidD_GetIndexedString ( HANDLE, ULONG, PVOID, ULONG);
65WINHIDSDI BOOL WINAPI HidD_GetSerialNumberString (HANDLE, PVOID, ULONG);
66
67#include <poppack.h>
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* _HIDSDI_H */
Note: See TracBrowser for help on using the repository browser.