Home | History | Annotate | Download | only in include
      1 /*
      2  * hidsdi.h
      3  *
      4  * Public interface for USB HID user space functions.
      5  *
      6  * Contributors:
      7  *   Created by Simon Josefsson <simon (at) josefsson.org>
      8  *
      9  * THIS SOFTWARE IS NOT COPYRIGHTED
     10  *
     11  * This source code is offered for use in the public domain. You may
     12  * use, modify or distribute it freely.
     13  *
     14  * This code is distributed in the hope that it will be useful but
     15  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
     16  * DISCLAIMED. This includes but is not limited to warranties of
     17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     18  *
     19  */
     20 
     21 #ifndef __HIDSDI_H
     22 #define __HIDSDI_H
     23 
     24 #include "hidpi.h"
     25 
     26 #ifdef __cplusplus
     27 extern "C" {
     28 #endif
     29 
     30   /* http://msdn.microsoft.com/en-us/library/ff538900%28v=VS.85%29.aspx */
     31 HIDAPI BOOLEAN NTAPI
     32 HidD_GetAttributes(HANDLE HidDeviceObject, PHIDD_ATTRIBUTES Attributes);
     33 
     34   /* http://msdn.microsoft.com/en-us/library/ff538910%28v=VS.85%29.aspx */
     35 HIDAPI BOOLEAN NTAPI
     36 HidD_GetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer,
     37 		ULONG ReportBufferLength);
     38 
     39   /* http://msdn.microsoft.com/en-us/library/ff539684%28v=VS.85%29.aspx */
     40 HIDAPI BOOLEAN NTAPI
     41 HidD_SetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer,
     42 		ULONG ReportBufferLength);
     43 
     44   /* http://msdn.microsoft.com/en-us/library/ff538924(v=vs.85).aspx */
     45 HIDAPI VOID NTAPI
     46 HidD_GetHidGuid(LPGUID HidGuid);
     47 
     48 #ifdef __cplusplus
     49 }
     50 #endif
     51 
     52 #endif /* __HIDSDI_H */
     53 
     54