Wind2k DDK
-
hi! i want to develop file filters for win2k. i have installed win2k ddk. i am using visual c++6.0 Enterprise Edition i tried to run samples provided with the ddk. /src/storage/filters/diskperf when i compiled it i got 102 erros,just pasting a couple: c:\ntddk\inc\ddk\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR' c:\ntddk\inc\ddk\ntddk.h(371) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK' c:\ntddk\inc\ddk\ntddk.h(824) : error C2059: syntax error : ';' c:\ntddk\inc\ddk\ntddk.h(825) : error C2143: syntax error : missing '{' before '*' c:\ntddk\inc\ddk\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR' so i traced back the definitions of 'PULONG_PTR', 'ULONG_PTR' etc.. those are defined in basetsd.h basetsd.h is included in ntdef.h which is inturn included in ntddk.h, for which we are getting the errors. there are 2 versions of basetsd.h on my system one provided by ms-visual studio and the other is provided by win2k ddk. the basetsd.h provided by win2k ddk has the definitions of the 'PULONG_PTR','ULONG_PTR' etc.. while compiling the compiler is taking basetsd.h provided by ms-visual studio and not the one provided by win2kddk. so i changed the path in #include for basetsd.h in ntdef.h so that while compling ddk's verion of basetsd.h is used. i complied and it worked 102 errors were cut down to 3 following ones: c:\ntddk\inc\ddk\ntddk.h(9106) : error C2061: syntax error : identifier 'PCONTEXT' c:\ntddk\inc\ddk\ntddk.h(9107) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(10347) : fatal error C1189: #error : "Target architecture not defined" now i dont know whats the problem. the ddk is not compatilbe with vc complier or i cannot guess. so please enlighten me with the above said problem regards anshu
-
hi! i want to develop file filters for win2k. i have installed win2k ddk. i am using visual c++6.0 Enterprise Edition i tried to run samples provided with the ddk. /src/storage/filters/diskperf when i compiled it i got 102 erros,just pasting a couple: c:\ntddk\inc\ddk\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR' c:\ntddk\inc\ddk\ntddk.h(371) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK' c:\ntddk\inc\ddk\ntddk.h(824) : error C2059: syntax error : ';' c:\ntddk\inc\ddk\ntddk.h(825) : error C2143: syntax error : missing '{' before '*' c:\ntddk\inc\ddk\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR' so i traced back the definitions of 'PULONG_PTR', 'ULONG_PTR' etc.. those are defined in basetsd.h basetsd.h is included in ntdef.h which is inturn included in ntddk.h, for which we are getting the errors. there are 2 versions of basetsd.h on my system one provided by ms-visual studio and the other is provided by win2k ddk. the basetsd.h provided by win2k ddk has the definitions of the 'PULONG_PTR','ULONG_PTR' etc.. while compiling the compiler is taking basetsd.h provided by ms-visual studio and not the one provided by win2kddk. so i changed the path in #include for basetsd.h in ntdef.h so that while compling ddk's verion of basetsd.h is used. i complied and it worked 102 errors were cut down to 3 following ones: c:\ntddk\inc\ddk\ntddk.h(9106) : error C2061: syntax error : identifier 'PCONTEXT' c:\ntddk\inc\ddk\ntddk.h(9107) : error C2059: syntax error : '}' c:\ntddk\inc\ddk\ntddk.h(10347) : fatal error C1189: #error : "Target architecture not defined" now i dont know whats the problem. the ddk is not compatilbe with vc complier or i cannot guess. so please enlighten me with the above said problem regards anshu
DON'T USE THE IDE TO COMPILE!!! use the build-in build environment from the ddk... start menu/ddk/build environment/... create the makefile and sources(or better copy them from an example driver source) and use the "build -cZ" command Don't try it, just do it! ;-)