]> err.no Git - yubikey-personalization.old/commitdiff
Assume a fixed MinGW-w64 environment, drop work arounds for missing prototypes.
authorSimon Josefsson <simon@josefsson.org>
Thu, 14 Apr 2011 17:38:15 +0000 (19:38 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 14 Apr 2011 17:38:15 +0000 (19:38 +0200)
ykcore/ykcore_windows.c

index e87da7bfc418c9f892ead723bc32a0efba810897..707f2ef52c79bf5010907632b825bc72d5024e73 100644 (file)
 #include <windows.h>
 #include <setupapi.h>
 #include <ntddkbd.h>
-typedef LONG NTSTATUS;
 #include <hidpi.h>
-
-BOOLEAN __stdcall HidD_GetAttributes(
-       HANDLE HidDeviceObject,
-       PHIDD_ATTRIBUTES Attributes
-       );
-BOOLEAN __stdcall HidD_GetFeature(
-       HANDLE HidDeviceObject,
-       PVOID ReportBuffer,
-       ULONG ReportBufferLength
-       );
-BOOLEAN __stdcall HidD_SetFeature(
-       HANDLE HidDeviceObject,
-       PVOID ReportBuffer,
-       ULONG ReportBufferLength
-       );
+#include <hidsdi.h>
 
 int _ykusb_start(void)
 {