楼主用功,持续关注。 DDK最新是 vista 的 WDF 开发包,编译环境从nt 2k xp 2003到 vista,还有CPU 32 64区分。
没有用过 到codeproject上下载代码和demo看下吧或者把编译错误发上来
D:\驱动启动程序\KernelExec> build BUILD:Object root set to:==>objchk BUILD:Adding /Y to COPYCMD so xcopy ops won't hang. BUILD:/i switch ignored BUILD:Compile and link for i386 BUILD:Loading D:\WINDDK\winxp\build.dat... BUILD:Computing Include file dependencies: BUILD:Examining d:\驱动启动程序\KernelExec directory for files to compile. 驱动启动程序\KernelExec -2 source files <769 lines> BUILD:Compiling d:\驱动启动程序\KernelExec directory Compiling -KernelExec.c for i386 ntifs.h<7192>:error C2375:'ObDereferenceSecurityDescriptor':redefinition;different linkage d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObDereferenceSecurityDescriptor' ntifs.h<7221>:error C2375:'ObLogSecurityDescriptor':redefinition;different linkage d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObLogSecurityDescriptor' ntifs.h<7279>:error C2375:'ObReferenceSecurityDescriptor':redefinition;different linkage d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObReferenceSecurityDescriptor'
demo可以安装,就是没什么反应
NTKERNELAPI VOID ObReferenceSecurityDescriptor ( IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN ULONG Count );ntifs.h和ntddk.h不要一起include
vista 也应该没问题 。不过启动程序的SESSION 必须要是当前用户的session .
我直接用DEMO里的安装也失败。
DDK最新是 vista 的 WDF 开发包,编译环境从nt 2k xp 2003到 vista,还有CPU 32 64区分。
到codeproject上下载代码和demo看下吧或者把编译错误发上来
BUILD:Object root set to:==>objchk
BUILD:Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD:/i switch ignored
BUILD:Compile and link for i386
BUILD:Loading D:\WINDDK\winxp\build.dat...
BUILD:Computing Include file dependencies:
BUILD:Examining d:\驱动启动程序\KernelExec directory for files to compile.
驱动启动程序\KernelExec -2 source files <769 lines>
BUILD:Compiling d:\驱动启动程序\KernelExec directory
Compiling -KernelExec.c for i386
ntifs.h<7192>:error C2375:'ObDereferenceSecurityDescriptor':redefinition;different linkage
d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObDereferenceSecurityDescriptor'
ntifs.h<7221>:error C2375:'ObLogSecurityDescriptor':redefinition;different linkage
d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObLogSecurityDescriptor'
ntifs.h<7279>:error C2375:'ObReferenceSecurityDescriptor':redefinition;different linkage
d:\winddk\winxp\inc\ddk\wxp\ntddk.h<21302>:error see declaration of 'ObReferenceSecurityDescriptor'
VOID
ObReferenceSecurityDescriptor (
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
IN ULONG Count
);ntifs.h和ntddk.h不要一起include