From: Sanjeev Sharma on
The order of header file declarations is:

#include <sal.h> //
-------------------------------------------------------------
#include <sal_supp.h> // These header files just define unimportant macros
in hidsdi.h
#include <driverspecs.h> //
-------------------------------------------------------------

#include <windows.h> // Must be defined before hidsdi.h and setupapi.h

#if defined(__cplusplus)
extern "C" // Just formal requirement
{
#endif

#include <hidsdi.h>

#if defined(__cplusplus)
}
#endif

#include <setupapi.h>

-----------------------------------------------------------------------
Sanje2v
From: JohnMagique on
What do you mean when you talk about the "MSDN SDK"? I have the exact same
problem, 163 errors in hidpi.h and I've been struggling around for 3 hours
searching for a solution.

Can you post a link to download this sdk?