8.把文件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
9.把文件Sources放入源程序目录,内容为
TARGETNAME=RamDrive//这是要生成的驱动程序.sys文件的名字
TARGETPATH=obj //.sys文件所在目录的上层目录,(由于ddk的bug)应手工在obj目
录下创建checked和free目录,以作为.sys的最终存放目录
TARGETTYPE=DRIVER //驱动程序的类型,一般不变
INCLUDES=$(BASEDIR)\inc //ddk包含文件路径,一般不变
SOURCES=RamDrive.cpp RamDrive.rc //源文件(不要头文件),资源文件
BROWSER_INFO = 1 //若想要浏览信息,则要有本行;否则可无