Tech Support > Microsoft Windows > Drivers > Problems with bulkusb sample
Problems with bulkusb sample
Posted by Robin on February 24th, 2005


Hi

I have installed the W2k3 DDK and use the ddkbuild.bat to build the bulkusb
sample (copied to my own location). First it seemed to work okay, but now I'm
about to modify the sample. The first thing I did was replace the
ExAllocatePool() function in DriverEntry() with ExAllocatePoolWithTag(), as
recommended in the help.

Now it doesn't work anymore. I even coded an error by intention to see what
output I get from the build process. Build doesn't work from both, the
DevStudio and console. I start build from the bulkusb directory. The rwbulk.exe
seems to work, but the driver doesn't build. The only thing I get is the
following warning:

BUILDMSG: Warning : The sample "d:\myprojects\...\bulkusb\sys" is not valid for
the current OS target.

What could it be?

Many thanks

Robin

Posted by Eliyas Yakub [MSFT] on February 26th, 2005


Check the value of the enviroment variable _NT_TARGET_VERSION. If it is set
to 0x500, this sample wouldn't build. If you look at the makefile, this
sample has been allowed to build only in the XP and Server 2003 DDK build
environment.


!IF DEFINED(_NT_TARGET_VERSION)
! IF $(_NT_TARGET_VERSION)>=0x501
! INCLUDE $(NTMAKEENV)\makefile.def
! ELSE
# Only warn once per directory
! INCLUDE $(NTMAKEENV)\makefile.plt
! IF "$(BUILD_PASS)"=="PASS1"
! message BUILDMSG: Warning : The sample "$(MAKEDIR)" is not valid for
the current OS target.
! ENDIF
! ENDIF
!ELSE
! INCLUDE $(NTMAKEENV)\makefile.def
!ENDIF



--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx