c++ - Visual Studio 2010 和内核级编程!

标签 c++ visual-studio-2010 visual-c++ kernel device-driver

我有 MS Visual Studio 2010,我打算开始内核级和硬件驱动程序编程..

我可以使用 MS Studio 2010 来做到这一点吗?如果,我到底需要为那个 IDE 添加什么?

换句话说...如果我想在 MS visual studio 2010 中编译以下代码,我需要做什么?我应该选择什么样的项目?

#define _X86_
#include "wdm.h"

NTSTATUS DriverEntry( IN PDRIVER_OBJECT theDriverObject,
IN PUNICODE_STRING theRegistryPath )
{
DbgPrint("Hello World!");
return STATUS_SUCCESS;
}

已更新: 谢谢各位...我需要在此处添加的内容 http://i56.tinypic.com/9jhw84.png

最佳答案

我一直在使用 DDKBUILD.CMD来自 OSR 多年。这是一个 article这解释了如何整合它。它适用于旧版本的 Visual Studio,但步骤与 VS2010 几乎相同。

关于c++ - Visual Studio 2010 和内核级编程!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5331616/

相关文章:

c++ - 在 VS C++ 项目中创建目录

wpf - 将 VS2010 项目加载到 Expression Blend 时出现属性无法识别或无法访问错误

c++ - 编译 C++ 程序时 VS 2013 中的链接时错误 - B. Stroustrup's PPP using C++ : Ch. 8 - Q1 Drill?

c++ - 为什么 const int 比 const int& 快?

c++ - std::tuple 作为类成员

c++ - 我链接对了吗?

python - 如何在Python中创建多维数组typedef

c++ - 何时将库包含在 target_link_libraries 中

visual-studio-2010 - Visual Studio 2010 调试器跳过方法并且不会在断点处停止

c - MSVS 2015 将 errno 放入 stddef.h?