初学驱动开发-windows驱动-helloWorld

来源:互联网 发布:怎样下载监控软件 编辑:程序博客网 时间:2024/05/23 01:23

1.准备工作-安装vm虚拟机+虚拟机下安装xp

2.下载DriverMonitor+DebugView

3.编写代码

编写makefile+sources文件
makefile 文件
#
# DO NOT EDIT THIS FILE!!!  Edit .\sources. If you want to add a new source
# file to this component.  This file merely indirects to the real make file
# that is shared by all the driver components of the Windows NT DDK
#


!INCLUDE $(NTMAKEENV)\makefile.def

sources 文件
TARGETNAME=HelloDDK
TARGETTYPE=DRIVER
TARGETPATH=OBJ
 
SOURCES=HelloWord.cpp\



4.生成.sys文件


5.拷贝.sys文件到虚拟机

6.使用DriverMonitor加载驱动并且用DebugView查看输出





0 0
原创粉丝点击