extern "C"
{
#include <ntddk.h>
}
// 驱动程序加载时调用DriverEntry例程
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObj, PUNICODE_STRING pRegistryString)
{ // 请视情况返回DriverEntry例程执行结果
return STATUS_DEVICE_CONFIGURATION_ERROR;
}出现以下错误 :--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
Test.cpp
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2146: syntax error : missing ';' before identifier 'NTSTATUS'
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2501: 'NTSYSCALLAPI' : missing storage-class or type specifiers
c:\ntddk\inc\ddk\ntddk.h(4565) : fatal error C1004: unexpected end of file found
Error executing cl.exe.Test.sys - 3 error(s), 0 warning(s)
The following environment variables were not found
$(ddkroot)
麻烦大侠了
{
#include <ntddk.h>
}
// 驱动程序加载时调用DriverEntry例程
NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObj, PUNICODE_STRING pRegistryString)
{ // 请视情况返回DriverEntry例程执行结果
return STATUS_DEVICE_CONFIGURATION_ERROR;
}出现以下错误 :--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
Test.cpp
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2146: syntax error : missing ';' before identifier 'NTSTATUS'
c:\ntddk\inc\ddk\ntddk.h(4565) : error C2501: 'NTSYSCALLAPI' : missing storage-class or type specifiers
c:\ntddk\inc\ddk\ntddk.h(4565) : fatal error C1004: unexpected end of file found
Error executing cl.exe.Test.sys - 3 error(s), 0 warning(s)
The following environment variables were not found
$(ddkroot)
麻烦大侠了
解决方案 »
- 不定参数
- 已知一个位图句柄,如何保存为BMP图片保存到指定文件中
- 用vs2005和用vc++x.0开发c++程序有什么不同?
- 有一段程序,如何在写完数据之后,硬件请求电脑,是否可以开始读数据?望高手指教
- 控制文件大小的代码.那里出错了专家帮忙?
- 当引用了Web Service后,VC7读取XML出现如下错误???
- 今早发一贴,问题解决,但又有些疑问,另来询问。关于WM_TIMER,
- 急需《WINDOWS核心编程》所附的代码,我将不胜感激。
- 谁能给我一份 informix connect for NT4.0? 100分相赠!
- 如何把对一个对话框的程序加到一个SDI程序中?
- 求VC高手帮忙!小学生算术题
- 关于纸张打印文章的问题
c:\ntddk\inc\ddk\ndis.h(4462) : error C2146: syntax error : missing ';' before identifier 'NDIS_MCA_POS_DATA'
c:\ntddk\inc\ddk\ndis.h(4462) : fatal error C1004: unexpected end of file found