阅读:1954回复:3
跪求第一个驱动除错
以下是first.c
#include<ntddk.h> VOID DriverUnload(PDRIVER_OBJECT driver) { DbgPrint("first:Our driver is unloading...\r\n"); } NTSTATUS DriverEntry(PDRIVER_OBJECT driver,PUNICODE_STRING reg_path) { DbgPrint("firs:hello"); driver->DriverUnload=DriverUnload; return STATUS_SUCCESS; } 以下是MakeFile !IF 0 Copyright (C) Microsoft Corporation, 1999 - 2002 Module Name: makefile. Notes: 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 components of Windows NT (DDK) !ENDIF !INCLUDE $(NTMAKEENV)\makefile.def 以下是SOURCES TARGETNAME=first TARGETTYPE=DRIVER TARGETPATH=obj SOURCES=first.c 用WDK的xpCheck版build出2个警告0个可执行文件,请问究竟错在哪里啊,才学写驱动哦! ERROR - "f:\first\objchk_wxp_x86\i386\_objects.mac" file time is slightly in the future (0x1caab11370ef000 (2/11/2010 11:56:16) vs. 0x1caab1135e9aec2 (2/11/2010 11:56:14)). |
|
沙发#
发布于:2010-02-13 11:31
原来是警告而已
|
|
板凳#
发布于:2010-02-12 12:07
我编译的没有问题啊,是不是你环境没安装好呢
|
|
|
地板#
发布于:2010-02-12 10:10
你尝试先把上面提示的这个文件删除再试试看
|
|