Bootable disk

Hi all !
I am writing disk filter driver.
I dont want to attach filter to bootable disk, I mean only the disk, from
which the system is booted now (not all the
bootable devices).
How can I recognize such a device in AddDevice() of filter?
Regards,
Dany


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Look for the DO_SYSTEM_BOOT_PARTITION bit in the device object flags field.
This is set for the disk from which the OS itself is loaded. Of course,
this could be different than the disk from which the boot loader was
loaded…

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Dany Polovets [mailto:xxxxx@store-age.com]
Sent: Wednesday, December 19, 2001 7:29 AM
To: NT Developers Interest List
Subject: [ntdev] Bootable disk

Hi all !
I am writing disk filter driver.
I dont want to attach filter to bootable disk, I mean only the disk, from
which the system is booted now (not all the
bootable devices).
How can I recognize such a device in AddDevice() of filter?
Regards,
Dany


You are currently subscribed to ntdev as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Tony,
Is this flag set for disk device object or for bootable partition device
object?

-----Original Message-----
From: Tony Mason [mailto:xxxxx@osr.com]
Sent: Wednesday, December 19, 2001 2:51 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Bootable disk

Look for the DO_SYSTEM_BOOT_PARTITION bit in the device object flags field.
This is set for the disk from which the OS itself is loaded. Of course,
this could be different than the disk from which the boot loader was
loaded…

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Dany Polovets [mailto:xxxxx@store-age.com]
Sent: Wednesday, December 19, 2001 7:29 AM
To: NT Developers Interest List
Subject: [ntdev] Bootable disk

Hi all !
I am writing disk filter driver.
I dont want to attach filter to bootable disk, I mean only the disk, from
which the system is booted now (not all the
bootable devices).
How can I recognize such a device in AddDevice() of filter?
Regards,
Dany


You are currently subscribed to ntdev as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@store-age.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

There were some PnP usage notifications - “used for pagefile” or such.
Maybe they will help?

Max

----- Original Message -----
From: “Dany Polovets”
To: “NT Developers Interest List”
Sent: Wednesday, December 19, 2001 3:29 PM
Subject: [ntdev] Bootable disk

> Hi all !
> I am writing disk filter driver.
> I dont want to attach filter to bootable disk, I mean only the disk, from
> which the system is booted now (not all the
> bootable devices).
> How can I recognize such a device in AddDevice() of filter?
> Regards,
> Dany
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Boot device such as a mass storage device that contains the system
paging file, hibernation path, or crash dump path. The operating
system notifies the driver for such a device before it writes such
a file to the device (IRP_MN_DEVICE_USAGE_NOTIFICATION).

Niraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Thursday, December 20, 2001 1:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Bootable disk

There were some PnP usage notifications - “used for pagefile” or such.
Maybe they will help?

Max

----- Original Message -----
From: “Dany Polovets”
To: “NT Developers Interest List”
Sent: Wednesday, December 19, 2001 3:29 PM
Subject: [ntdev] Bootable disk

> Hi all !
> I am writing disk filter driver.
> I dont want to attach filter to bootable disk, I mean only the disk, from
> which the system is booted now (not all the
> bootable devices).
> How can I recognize such a device in AddDevice() of filter?
> Regards,
> Dany


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com