Hi,
I am new to device driver in windows. I was looking into the serial driver
source provided with DDK2K. I have included all the necessary files. While
building the serial driver by giving the build command , i am getting the
following error messages
E:\WINDDK\2600.1106\src\kernel\serial>build
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: Object root set to: ==> objchk_wxp_x86
BUILD: Compile and Link for i386
BUILD: Loading E:\WINDDK\2600~1.110\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:\winddk\2600.1106\src\kernel\serial directory for files
to compile.
e:\winddk\2600.1106\src\kernel\serial - 16 source files (23,107 lines)
BUILD: Saving E:\WINDDK\2600~1.110\build.dat...
BUILD: Compiling e:\winddk\2600.1106\src\kernel\serial directory
Compiling - error.c for i386
error.c(69) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - flush.c for i386
flush.c(73) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
flush.c(76) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - immediat.c for i386
immediat.c(103) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
immediat.c(171) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - initunlo.c for i386
initunlo.c(179) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
initunlo.c(385) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
initunlo.c(1113) : error C2065: 'DPFLTR_ERROR_LEVEL' : undeclared identifier
initunlo.c(1257) : error C2065: 'DPFLTR_WARNING_LEVEL' : undeclared
identifier
Compiling - ioctl.c for i386
ioctl.c(619) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - modmflow.c for i386
modmflow.c(90) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
modmflow.c(1610) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - openclos.c for i386
openclos.c(137) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
openclos.c(499) : error C2065: 'DPFLTR_ERROR_LEVEL' : undeclared identifier
Compiling - qsfile.c for i386
qsfile.c(84) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - read.c for i386
read.c(125) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
read.c(131) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - utils.c for i386
utils.c(328) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
utils.c(1109) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - waitmask.c for i386
waitmask.c(96) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
waitmask.c(639) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - write.c for i386
write.c(107) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
write.c(113) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - pnp.c for i386
pnp.c(128) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
pnp.c(3141) : error C2065: 'POOL_COLD_ALLOCATION' : undeclared identifier
Compiling - registry.c for i386
registry.c(313) : error C2065: 'DPFLTR_TRACE_LEVEL' : undeclared identifier
Compiling - legacy.c for i386
legacy.c(86) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - power.c for i386
power.c(101) : error C2065: 'DPFLTR_INFO_LEVEL' : undeclared identifier
Compiling - generating code... for i386
BUILD: Compile errors: not linking e:\winddk\2600.1106\src\kernel\serial
directo
ry
BUILD: Done

17 files compiled - 28 Errors - 23107 LPS

Can anybody tell me where i am going wrong as i am unable to build the
serial driver.

Narendra

Re: Serial Port Driver by Stefan

Stefan
Mon Jul 19 09:37:05 CDT 2004

hi,

think i can't help you very much but maybe give a hint.
i tried to build the sample too and encountered exactly the same
problem. after several try-outs and headaches i gave up because i'm also
new in driver programming.

it seems to me that it has something to do with the #includes in
precomp.h. DPFLTR_INFO_LEVEL and DPFLTR_TRACE_LEVEL are not well
defined. i did not understand why ntddk.h, ntddser.h and wmilib.h
are included locally. they can be found within the sample-folder, but
ddk has them already.

maybe you or some other can figure it out...

Re: Serial Port Driver by Doron

Doron
Mon Jul 19 10:03:43 CDT 2004

are you using a DDK later then the win2k DDK, but building in a win2k
environment? serial in DDKs after win2k uses DbgPrintEx which is only
available on XP and later.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Stefan Meier" <morphemerkenner@web.de> wrote in message
news:eDv$z1ZbEHA.2408@tk2msftngp13.phx.gbl...
> hi,
>
> think i can't help you very much but maybe give a hint.
> i tried to build the sample too and encountered exactly the same
> problem. after several try-outs and headaches i gave up because i'm also
> new in driver programming.
>
> it seems to me that it has something to do with the #includes in
> precomp.h. DPFLTR_INFO_LEVEL and DPFLTR_TRACE_LEVEL are not well
> defined. i did not understand why ntddk.h, ntddser.h and wmilib.h
> are included locally. they can be found within the sample-folder, but
> ddk has them already.
>
> maybe you or some other can figure it out...



Re: Serial Port Driver by r_konjeti

r_konjeti
Mon Jul 19 15:35:13 CDT 2004

Did you try to build with latest DDK sample? DDK version 3790. I never
used serial driver, but usually all the sample drivers do compile.

Thanks

Stefan Meier <morphemerkenner@web.de> wrote in message news:<eDv$z1ZbEHA.2408@tk2msftngp13.phx.gbl>...
> hi,
>
> think i can't help you very much but maybe give a hint.
> i tried to build the sample too and encountered exactly the same
> problem. after several try-outs and headaches i gave up because i'm also
> new in driver programming.
>
> it seems to me that it has something to do with the #includes in
> precomp.h. DPFLTR_INFO_LEVEL and DPFLTR_TRACE_LEVEL are not well
> defined. i did not understand why ntddk.h, ntddser.h and wmilib.h
> are included locally. they can be found within the sample-folder, but
> ddk has them already.
>
> maybe you or some other can figure it out...

Re: Serial Port Driver by Stefan

Stefan
Tue Jul 20 12:42:06 CDT 2004

thanks doron, now it works :)

Doron Holan [MS] wrote:
> are you using a DDK later then the win2k DDK, but building in a win2k
> environment? serial in DDKs after win2k uses DbgPrintEx which is only
> available on XP and later.
>
> d
>