编译出现错误,_in was not declared in this scope
最近在拿一段源码,想编译运行看看,结果报了很多错误,全在一个hidpi.h头文件中,具体如下:
NTSTATUS __stdcall
HidP_GetUsageValueArray (
__in HIDP_REPORT_TYPE ReportType,
__in USAGE UsagePage,
__in USHORT LinkCollection,
__in USAGE Usage,
__inout_bcount(UsageValueByteLength) PCHAR UsageValue,
__in USHORT UsageValueByteLength,
IN PHIDP_PREPARSED_DATA PreparsedData,
__in_bcount(ReportLength) PCHAR Report,
__in ULONG ReportLength
);
编译错误:
_in was not declared in this scope
__inout_bcount was not declared in this scope
UsageValueByteLength was not declared in this scope
..........
这个hidpi.h不是开发usb hid内置的头文件吗,怎么还会报这些错误呢