Bonjour les gens,
J'ai décidé de créer mon premier driver windows en C

: le driver qui dit coucou. J'ai téléchargé le WDK chez microsoft et lancé l'environnement x86 Windows XP (Normal sui sous XP avec un amd64) . voici le code que j'essaye de compiler:
#include <ntifs.h>
NTSTATUS DriverEntry( IN DRIVER_OBJECT theDriverObject, IN PUNICODE_STRING theRegistryPath)
{
DbgPrint("Hello World");
return STATUS_SUCCESS;
}
Voici le makefile:
! INCLUDE $(NTMAKEENV)\makefile.def
Et le fichier SOURCES
TARGETNAME=ROOTKIT
TARGETPATH=OBJ
TARGETTYPE=DRIVER
SOURCES=mydriver.c
****************************************************
Je compile avec build et la c'est le drame

:
path contains nonexistant c:\program files\ati technologies\ati.ace\core-static,
removing
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\6001.18001\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri Mar 28 17:24:09 2008
BUILD: Examining c:\rootkit directory for files to compile.
BUILD: Saving c:\winddk\6001.18001\build.dat...
BUILD: Compiling and Linking c:\rootkit directory
_NT_TARGET_VERSION SET TO WINXP
Compiling - mydriver.c
errors in directory c:\rootkit
c:\winddk\6001.18001\inc\api\winnt.h(466) : error C2054: expected '(' to follow
'BYTE'
c:\winddk\6001.18001\inc\api\winnt.h(467) : error C2085: 'WORD' : not in formal
parameter list
c:\winddk\6001.18001\inc\api\winnt.h(467) : error C2146: syntax error : missing
',' before identifier 'FSHORT'
c:\winddk\6001.18001\inc\api\winnt.h(468) : error C2085: 'DWORD' : not in formal
parameter list
... ERREURS A GOGO....
c:\winddk\6001.18001\inc\api\winnt.h(3486) : error C1003: error count exceeds 10
0; stopping compilation
Linking Executable - objchk_wxp_x86\i386\rootkit.sys
link : error LNK1181: cannot open input file 'c:\rootkit\objchk_wxp_x86\i386\myd
river.obj'
BUILD: Finish time: Fri Mar 28 17:24:10 2008
BUILD: Done
3 files compiled - 12 Warnings - 102 Errors
1 executable built - 1 Error
J'ai cherché désespérément un moyen de résoudre ce problème sur la toile et sur la doc de WDK mais je n'ai pas réussi. Pourriez-vous m'aider plz
Ordinateur : moyen conçu pour accélérer et automatiser les erreurs.