Files
admin
base
com
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
public
published
sdktools
actools
addsect
adduser
alias
apimon
appcompat
appparse
appverif
asn1
avrf
bin2c
bootstat
buggy
control
driver
dirs
readme
build
buildnum
bvtsigvf
cabs
cacls
cat
cddump
checkrel
checksym
chksum
chmode
clearmem
cmdevent
cmdline
cntrtext
compdir
consume
copyfapi
cp
cpuid
cpustres
crash
creatfil
ctlcode
custcon
dbmon
dbwin32
dc
debuggers
delnode
delrp
depends
devmap
diff
diskmon
diskperf
dload
dosdev
drivemap
dskbench
dskdump
du
dumpclip
dumppo
ech
echotime
efinvram
emptydirs
ethstat
exctrlst
exp
extag
fcom
filever
frespace
fsdump
ftc
generr
genlvl
gensrv
getbin
gflags
gutils
hd
hdivide
he
head
hextract
hivepp
hotfixmanager
hsplit
ia64
iasinfdb
idlemon
idwlog
infgen
ini
ioverify
job
kbdtool
kerntwk
kverify
leakyapp
link16
linkd
links
list
listmung
loc
logerr
ls
m4
mapmsg
mapsym
masm
mc
memavail
memsnap
mep
mkmsg
mkupdate
mrc
mtscript
mttf
munge
munger
mv
netjoin
netperm
nmake
nvram
objdir
opprec
order
packer
pageheap
paranoia
parcomp
passprop
pcmcmd
pcopy
pdh
perflog
perfmon
perfmtr
perftool
pfmon
plperf
pnpinit
ppr
pretty
proccon
procmon
profile
profiler
psapi
pstat
pview
pviewer
qfecheck
qgrep
ramdiskctrl
rasdiag
rc
rcdll
rcdump
readline
reducer
regdiff
regini
regsvr32
relstat
remote
rescan
restools
rm
roshare
sclist
sdv
secedit
setedit
seterror
setlink
setuplog
sfp
sleep
spt
srvname
startpgm
strings
structo
suck
supporttools
symlink
sync
sysparse
systrack
tags
tail
takeown
tc
tee
thunk32
timer
tlist
tolower
touch
trace
trans
tweakui
tz
tztool
uixport
undel
unicows
units
upd
updrn
uwdump
vdmperf
verifier
vi
vmmreg32
vmtests
walk
wav-gen
wc
wcache
wcshdr
where
who
windiff
winobj
wperf
ws
ws2hdr
wsremote
wst
xerox
yapt
ync
z
zoomin
ztools
zwapi
dirs
project.mk
shell
termsrv
tools
windows
dirs
makefil0
2025-04-27 07:49:33 -04:00
..
2025-04-27 07:49:33 -04:00
2025-04-27 07:49:33 -04:00
2025-04-27 07:49:33 -04:00
2025-04-27 07:49:33 -04:00

How to add a new option to the buggy.sys test driver
=====================================================================

Buggy is organized assuming that what you want to do is to send an
IOCTL to the driver to perform some kernel mode testing activity.
If all that has to be done can be triggered with a function call
then the rest of the integration can be done pretty easy by a few
declarations in some headers.

You need to do the following things to add a new action:

- write your stuff in a new module and describe exports in a
  header. The general structure should be similar with the one
  in driver\newstuff.c and driver\newstuff.h.
- connect your code with the driver logic by modifying driver\funs.h
  header. If you search for the word `newstuff' you will find all the 
  places where you have to change something. 
- modify driver\active.h header so that you can offer the option of
  disabling your code from the driver. This is needed so that the 
  driver will not get fat with code that is not always needed.
  
Enjoy.