Re: How to attach my filter driver to otherone's driver



You are confused in a number of ways:

1. Things like CD-ROM drives are PNP devices, so using
IoGetDeviceObjectPointer is not a good idea, since these devices can come
and go.
2. For PNP device filters there are two categories of filters:
a. Device specific filters
b. Class filters
3. For a PNP device filter, the setup to attach is done in an INF
file, the system will then call your AddDevice routine as needed for you
driver to do the attach, no looking up of the device to attach to is
needed.

It sounds like you are doing a device class filter, since you want to
attach to CD-ROM device stacks. Take a look at the diskperf sample
particularily its INF. You will need to change the disk setup class GUID
to the CD-ROM class GUID.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

"???" <jsniperwyc@xxxxxxxxxxxx> wrote in message
news:C9E6DB35-5C3B-4B21-A4B7-6C2DF7E34F5F@xxxxxxxxxxxxxxxx
Hello! I want to write my own filter device driver which can attatch to
other's device driver stack! I think that I can find knowledge of the
writing
of filter driver itself in DDK provided by Microsoft,but I can't solve
the
problem which attatch my driver to other's device driver stack! Now the
only
thread is that the IoAttachDeviceToDeviceStack function followed by
IoGetDeviceObjectPointer, Who can help me on how to solve the first
parameter
"PUNICODE_STRING ObjectName" and tell me where is the ObjectName of a
device
(for example CD-ROM) storaged in the computer,or is there any possible to
attatch my driver to other driver stack which is not written by me! Thank
you
very much!
--
???????,????????


.



Relevant Pages

  • Re: NDIS protocol driver and BDA
    ... You can implement everything in user mode, including bda filters and winsock ... Is there any approach possible to implement a kernel BDA driver accessing ... Since both NDIS and BDA/KS are miniport frameworks you can not mix them ...
    (microsoft.public.development.device.drivers)
  • Re: Superdisk for microchannel?
    ... DEVICE=IBMRAID.SYS RAID Driver ... The AUTOEXEC.BAT file is updated to install the Microsoft CD-ROM File ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Superdisk for microchannel?
    ... Made a boot floopy exactly as you said and double checked it three time to ... SCSI CD-ROM Loadable Driver ver 2.42B ... The raid described it as IBM CDRM00201. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: CD-ROM support while booting
    ... Julian states otherwise in spin.txt. ... So the whole CD-ROM driver thing is based on a "modular" system rather ... I just found out that my version of BETAdos wasn't the ...
    (comp.sys.atari.st)
  • Re: Superdisk for microchannel?
    ... FWSR Option Disk, #1 ver. ... INSTALLING DOS DRIVER FOR CD-ROM ACCESS: ...
    (comp.sys.ibm.ps2.hardware)

Loading