Unix-like /dev/zero implementation for Windows NT/2000/XP/2003
by Vitaliy Vorobyov aka DeathSoft
dev_zero_v2.rar/tgz (15.9 Kb/16.6 Kb)
The zero device accepts and reads data as any ordinary (and willing)
file, but throws away any data written to it, and returns an endless
supply of null bytes when read.
Usage:
dd if=\\.\zero of=<file_name> count=<nn>
where <file_name> is destination file name, <nn> is block count
dd.exe utility is taken from cygwin. See its manual for details.
build
- if you have Intel C compiler:
- set BASEDIR environment variable to point to NT4 DDK
- place ntifs.h to any location specified in INCLUDE environment variable
- run nt4.cmd
- if you have no Intel C compiler:
- set BASEDIR environment variable to point to NT4 DDK
- place ntifs.h to any location specified in INCLUDE environment variable or
set BASEDIR2K environment variable to point to Win2000 DDK
- run nmake /f zero.mak
install
Note: these methods will install zero.sys driver with Automatic startup mode
-
Note: HW profiles will not work for this driver
- copy zero.sys to %SystemRoot%\System32\drivers
- import zero.reg
- reboot
-
Note: you will need instdrv.exe in curent directory or at any other location
specified in PATH environment variable. You can build this utility from
NT4 DDK \src\general\instdrv\exe or download its compiled copy and
Visual C 6.0 project from here
Binary version - dev_zero_v2.rar/tgz (15.9 Kb/16.6 Kb)
Sources - dev_zero_v2_src.rar/tgz (24.9 Kb/27.4 Kb)
Added FastIo and Query/SetInformation support.
2004.09.09
Binary version - dev_zero_v1.rar/tgz (2.9 Kb/3 Kb)
Sources - dev_zero_v1_src.rar/tgz (9 Kb/9 Kb)
The first version. It already works, but still has no FastIo and Query/SetInformation support.
2004.08.19
|