阅读:1357回复:0
请有经验的老手指点一下!
按照书上做法,我在passthru基础上修改了派遣函数如下:
DispatchTable[IRP_MJ_CREATE] = DevOpen; DispatchTable[IRP_MJ_CLEANUP] = DevCleanup; DispatchTable[IRP_MJ_CLOSE] = DevClose; DispatchTable[IRP_MJ_DEVICE_CONTROL] = DevIoControl; 并将派遣函数原型写在了ptextend.c中,但是编译却报错如下: 1>errors in directory d:\passthru\driver 1>d:\passthru\driver\ptextend.c(17) : error C2220: warning treated as error - no 'object' file generated Compiling - generating code... Linking Executable - objchk_wxp_x86\i386\passthru.sys 1>link : error LNK1181: cannot open input file 'd:\passthru\driver\objchk_wxp_x8 6\i386\ptextend.obj' 17行的代码是 NTSTATUS DevOpen(PDEVICE_OBJECT pDeviceObject, PIRP pIrp) 请高手指点一下这是什么错误啊! 谢谢 |
|