Re: How to attach my filter driver to otherone's driver
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Feb 2007 08:35:20 -0500
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!
--
???????,????????
.
- Prev by Date: Re: How to combine TvTuner and all jobs about 'USB' in DTM
- Next by Date: RE: A Basic question about NDIS Filter IM drivers
- Previous by thread: Re: How to combine TvTuner and all jobs about 'USB' in DTM
- Next by thread: USB device upper filter in KMDF sending URBs to device PDO directly
- Index(es):
Relevant Pages
|
Loading