How to differentiate a local disk driver from a removable disk driver in filemon

in filemon I want to determine the logical driver is a local disk driver
or a removable disk driver.
use getdrivertype() function they all returns DRIVE_FIXED,

and in filemon.c,I use the clause

if(fileSysDevice->Characteristics & FILE_REMOVABLE_MEDIA ){

DbgPrint((“this device is removiable”));
}

it never print anything,

does exist any method to differentiate them?
thanks.


ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn

hi.
first,you should verify that the filemon has hooked the FILE_REMOVABLE_MEDIA ;
second,you should make the FILE_REMOVABLE_MEDIA working before the filemon is running,
good luck!
ildee

----- Original Message -----
From: “yansheng jushan”
To: “Windows File Systems Devs Interest List”
Sent: Friday, November 05, 2004 9:41 AM
Subject: [ntfsd] How to differentiate a local disk driver from a removable disk driver in filemon

> in filemon I want to determine the logical driver is a local disk driver
> or a removable disk driver.
> use getdrivertype() function they all returns DRIVE_FIXED,
>
> and in filemon.c,I use the clause
>
> if(fileSysDevice->Characteristics & FILE_REMOVABLE_MEDIA ){
>
> DbgPrint((“this device is removiable”));
> }
>
> it never print anything,
>
> does exist any method to differentiate them?
> thanks.
>
> _________________________________________________________________
> ???ѽ??н???ʹ?? MSN Messenger: http://messenger.msn.com/cn
>
>
> —
> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@sagetech.com.cn
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Note that many USB flash drives are NOT considered to be removable media.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows File Systems Devs Interest List”
Sent: Friday, November 05, 2004 5:05 AM
Subject: Re: [ntfsd] How to differentiate a local disk driver from a removable
disk driver in filemon

> hi.
> first,you should verify that the filemon has hooked the FILE_REMOVABLE_MEDIA
;
> second,you should make the FILE_REMOVABLE_MEDIA working before the filemon is
running,
> good luck!
> ildee
>
>
>
>
> ----- Original Message -----
> From: “yansheng jushan”
> To: “Windows File Systems Devs Interest List”
> Sent: Friday, November 05, 2004 9:41 AM
> Subject: [ntfsd] How to differentiate a local disk driver from a removable
disk driver in filemon
>
>
> > in filemon I want to determine the logical driver is a local disk driver
> > or a removable disk driver.
> > use getdrivertype() function they all returns DRIVE_FIXED,
> >
> > and in filemon.c,I use the clause
> >
> > if(fileSysDevice->Characteristics & FILE_REMOVABLE_MEDIA ){
> >
> > DbgPrint((“this device is removiable”));
> > }
> >
> > it never print anything,
> >
> > does exist any method to differentiate them?
> > thanks.
> >
> > _________________________________________________________________
> > ???,??? MSN Messenger: http://messenger.msn.com/cn
> >
> >
> > —
> > Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@sagetech.com.cn
> > To unsubscribe send a blank email to xxxxx@lists.osr.com—
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to $subst(‘List.Name’) as: $subst(‘Recip.EmailAd
dr’)
> To unsubscribe send a blank email to $subst(‘Email.UnSub’)
>