WDK (Windows Driver Kit) and VC++ headers problem
问题 I'm trying to read from an USB HID device, I know how to do it in C# using DLLImport hid.dll, but I want to do it from C++, this way I don't have to declare all the structures, etc, and just include the headers files. So I downloaded the WDK and then when including the headers files and linking the libraries I'm getting a lot of errors: #include <windows.h> extern "C" { #include <hidsdi.h> } int main(){ } Errors (6 out of 163): Error 1 error C2065: 'PASSIVE_LEVEL' : undeclared identifier c: