21,597
社区成员
发帖
与我相关
我的任务
分享
#include <wdm.h>
#include <ntdef.h>
VOID UnLoad(PDRIVER_OBJECT DriverObject)
{
KdPrint("xxxx");
}
NTSTATUS
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
)
{
/* NTSTATUS status;*/
DriverObject->DriverUnload = UnLoad;
return 1;
}
TARGETNAME=wdm
TARGETPATH=obj
TARGETTYPE=DRIVER
SOURCES= firstwdm.c
E:\DDK>build
path contains nonexistant c:\program files (x86)\amd app\bin\x86, removing
BUILD: Compile and Link for IA64
BUILD: Loading e:\winddk\7600.16385.1\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Sat Dec 17 20:59:02 2011
BUILD: Examining e:\ddk directory for files to compile.
BUILD: Saving e:\winddk\7600.16385.1\build.dat...
BUILD: Compiling and Linking e:\ddk directory
Compiling - firstwdm.c
1>errors in directory e:\ddk
1>e:\ddk\firstwdm.c(7) : error C2143: syntax error : missing ';' before 'string'
Linking Executable - objchk_win7_ia64\ia64\wdm.sys
1>link : error LNK1181: cannot open input file 'e:\ddk\objchk_win7_ia64\ia64\fir
stwdm.obj'
BUILD: Finish time: Sat Dec 17 20:59:03 2011
BUILD: Done
3 files compiled - 2 Warnings - 1 Error
1 executable built - 1 Error
E:\DDK>