add UpperFilters to the Volume Class
HKLM\SYSTEM\CCS\Control\Class{71A27CDD-812A-11D0-BEC7-08002BE2092F}
\UpperFilters “yourDriver”
This will give you ALL volumes, and by the time you receive them it’s n=
ot
yet known if it’s F: or something.
You will need to find out later and then ignore IRPs targetted to other=
volumes or detach the unneccessary DOs again.
Else
=
=20
“vartika singh” =
=20
em Software Devs Interest List" =20
com> cc: =
=20
Sent by: Subject: Re: [ntd=
ev] Registry entry for a disk partition filter driver =20
xxxxx@lis (Unsigned Mail) =
=20
ts.osr.com =
=20
=
=20
=
=20
03.06.2004 13:34 =
=20
Please respond to =
=20
“Windows System =
=20
Software Devs Interest =
=20
List” =
=20
=
=20
Hi all,=0A=0AI want to filter say drive ‘F’.=0AI added the services key=
in the
registry with the start=3D’0’=0Aand i added the entry ‘upperfilters’ to=
the
‘HKLM\SYSTEM\CCS\ENUM\STORAGE\Volume(string pertaining to drive F:).=0A=
=0Aand
i added the following code to my adddevice program-=0A=0A#define
TARGET_DEVICE_NAME L"\Device\HarddiskVolume8"=0A…=0A…=0A//in my add=
device
routine…=0A=0ARtlInitUnicodeString(&targetDeviceName,TARGET_DEVICE_NA=
ME);
status =3D IoGetDeviceObjectPointer(&targetDeviceName,
FILE_ALL_ACCESS_NAME,=0A &fileObject,=
&targetDeviceName);=0Aif( status =3D=3D STATUS_SUCCESS){
ObDereferenceObject(fileObject);=0A=0Aif((targetDeviceObject !=3D NULL)=
&&
(targetDeviceObject->Vpb !=3D NULL)=0A&& !(targetDeviceObject->Vpb->Fla=
gs &
VPB_MOUNTED))=0A{=0A…createdevice
…IoAttachDeviceToDeviceStack(filterDeviceObject,targetDeviceObj=
ect);
=0AAnd i set the break point on adddevice routine.=0AOn rebooting,my sy=
stem
gave a bugcheck and is refusing to boot any more.=0A=0AAny suggestions =
as to
why this is happening will be quite helpful.=0A=0AV.S.=0A=0A=0A=0A=0A=0A=
=0AOn Thu, 03 Jun
2004 vartika singh wrote :=0A>Hi,=0A>=0A>In case of diskperf an entry
‘Upperfilters’ is added to the disk class guid
entry.(HKLM\SYSTEM\CCS\control\class{guid}.=0A>=0A>If i do this, my fi=
lter
start’s intercepting every irp to the hard disk.Then what does the
addfilter(NTDDK) do by attaching a filter to some partition?=0A>=0A>How=
do i
filter a specific ‘partition’ on the harddisk?=0A>=0A>The filter has to=
get
loaded at the boot time, and it’s IRP_MJ_READ/WRITE dispatch routines
shouldn’t intercept any of the other partitions’ irps.=0A>=0A>What shou=
ld be
the registry entries for the above specified scenario?=0A>=0A>How do i =
hard
code the partion’s device-object name in the adddevice routine?=0A>=0A>=
Please
do reply.I have tried many things and im at my wits end.=0A>=0A>V.S=0A>=
=0A>=0A>=0A>—
>Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=3D256=0A>=0A>You are currently =
subscribed
to ntdev as: xxxxx@rediffmail.com=0A>To unsubscribe send a blank e=
mail
to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=3D256
You are currently subscribed to ntdev as: xxxxx@utimaco.de
To unsubscribe send a blank email to xxxxx@lists.osr.com
=