[WINDDK]系统驱动开发,出现 __IN_ 未定义的类型解决方案。 vs2008 winddk

哎哎9年前 (2015-08-04)C++7158


1>stdafx.cpp

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C2144: 语法错误 : “_EXCEPTION_RECORD”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(60) : error C2448: “_except_handler”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(61) : error C2144: 语法错误 : “void”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(62) : error C2144: 语法错误 : “_CONTEXT”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(63) : error C2144: 语法错误 : “void”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\excpt.h(64) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2448: “_isctype”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(94) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2448: “_isctype_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(95) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(96) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(96) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(96) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(96) : error C2448: “isalpha”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(96) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2448: “_isalpha_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(97) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(98) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(98) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(98) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(98) : error C2448: “isupper”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(98) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2448: “_isupper_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(99) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(100) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(100) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(100) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(100) : error C2448: “islower”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(100) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2448: “_islower_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(101) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(102) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(102) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(102) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(102) : error C2448: “isdigit”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(102) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2448: “_isdigit_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(103) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(104) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(104) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(104) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(104) : error C2448: “isxdigit”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(104) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2448: “_isxdigit_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(105) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(106) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(106) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(106) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(106) : error C2448: “isspace”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(106) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2448: “_isspace_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(107) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(108) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(108) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(108) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(108) : error C2448: “ispunct”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(108) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2448: “_ispunct_l”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2146: 语法错误 : 缺少“;”(在标识符“_locale_t”的前面)

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(109) : error C2059: 语法错误 : “)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(110) : error C2144: 语法错误 : “int”的前面应有“;”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(110) : error C2065: “_In_”: 未声明的标识符

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(110) : error C2144: 语法错误 : “int”的前面应有“)”

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(110) : error C2448: “isalnum”: 函数样式初始值设定项类似函数定义

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ctype.h(110) : fatal error C1003: 错误计数超过 100;正在停止编译

1>正在创建浏览信息文件...

1>Microsoft 浏览信息维护实用工具 Version 9.00.21022

1>Copyright (C) Microsoft Corporation. All rights reserved.

1>BSCMAKE: error BK1506 : 无法打开文件“.\WinDebug\drvclass.sbr”: No such file or directory

1>生成日志保存在“file://c:\Users\WZHT-06\Desktop\LOG\2015-08-03 095757 first\248679\sermon\WinDebug\BuildLog.htm”

1>SERMON - 103 个错误,0 个警告

========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========



下面是解决方案。


此时将 C:\Program Files\Microsoft Visual Studio 9.0\VC\include\sal.h


复制到C:\WinDDK\7600.16385.1\inc\api 中 覆盖 即可解决。