I want to develop a WDM driver which should do nothing other than
receive an IoCtl with a data buffer and then pass the data buffer
(or a copy) to another wdm driver. the other driver will
do returns a databutter, i receive it a return as result to
the IoCtl
Well, is there any simple way of doing this? Or do I have
to read through a teh DDK docs just for a dummy driver?
My VxD driver works fine, it uses the sample from
http://www.vireo.com/drivercentral/tech_tips/dsysctrl.shtml
and there thy say it is quite easy to port this to a wdm driver.
but how does this work?
or do you know another place where i will find some help?
Thanks,
Axel Heider
o Download and install the Windows 98 DDK from
http://www.microsoft.com/ddk/
or http://www.microsoft.com/hwdev/ddk/ddk98.htm . The documentation
is online
or you can download it and install it as well.
o Follow the steps in the DDK Documentation to verify the build of the
DDK.
o After installing and verifing the build, look in the general
subdirectory (on my system:
C:\98DDK\SRC\GENERAL). The GENERAL subdirectory contains a WDM
driver template that comes with lots of support built in, a registry
file to install it,
and a test app to test it. These are in the three subdirectories:
BIN, EXE and SYS.
o The SYS subdirectory contains the WDM driver template; when built
it is named
testdrv.sys. (The built files go into
C:\98DDK\LIB\i386\CHECKED or
C:\98DDK\LIB\i386\FREE.) The SYS subdirectory also contains a
file,
template.doc, that describes the WDM template and what I have
written here.
Its worth it to print it out.
o The BIN subdirectory contains a file, TESTDRV.REG, with registry
entries for
the driver.
o The EXE subdirectory contains the test application.
o Update the registry by running BIN\TESTDRV.REG from Explorer.
o Copy TESTDRV.SYS from the build target subdirectory
(C:\98DDK\LIB\i386\CHECKED)
into the C:\WINDOWS\SYSTEM32\DRIVERS.
o After a reboot the driver will be loaded
o The WDM template source module TESTDRV.C is the one that is intended to
be
changed by the WDM writer. The other modules, especially DRVSHELL.C
are
intended to be left as is since they provide common, generic code for
WDMs.
o I have modified TESDRV.C to add the features I need and I have modified
TESTAPP.C
to test those features.
One thing that I do not know how to do, but would like to learn is how to
dynamically load and
unload WDM drivers in Windows 98. It is frustrating that with every
iteration I have to reboot
my test system to load a new version of the driver. Maybe someone reading
this will post a
description of how to dynamically load and unload WDM drivers in Windows 98.
I have found the WDM template to be of great value; I hope it will prove to
be of value to
you as well.
Good luck,
Fred
Axel Heider wrote in message <371E0080...@towitoko.de>...