Unfortunately I've still got the same problem. I've downloaded the WDK, installed it to the C: directory and linked the libraries into a fresh C++ project and added "C:\WinDDK\7600.16385.1\inc\api;" (which holds hidsdi.h) to the 'C/C++ additonal includes' in the project properties.
Theres no red lines but when I compile I get a long list of errors, the first ones being:
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(543): error C2065: '_In_opt_z_' : undeclared identifier
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(543): error C2143: syntax error : missing ')' before 'const'
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(543): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files\microsoft visual studio 10.0\vc\include\crtdefs.h(543): error C2182: '_invalid_parameter' : illegal use of type 'void'
...
This being all my code:
#include <windows.h>
extern "C"
{
#include <hidsdi.h>
}
int main()
{
GUID HidGuid;
HidD_GetHidGuid(&HidGuid);
return 0;
}
So I'm a bit stumped.