VPB struct

Hi everybody,
Is there a field in the VPB structure that I can use to know if the real device is a floppy disk?
I could know it if I get the name of the real device (if the real device has name “\Device\Floppy0”). How do I get the name of an object?
Thank you.

ObQueryNameString on device object.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ratmil Torres
Sent: Friday, March 22, 2002 7:06 PM
To: File Systems Developers
Subject: [ntfsd] VPB struct

Hi everybody,
Is there a field in the VPB structure that I can use to know if the real
device is a floppy disk?
I could know it if I get the name of the real device (if the real device
has name “\Device\Floppy0”). How do I get the name of an object?
Thank you.

You are currently subscribed to ntfsd as: xxxxx@vba.com.by
To unsubscribe send a blank email to %%email.unsub%%

more correct way use Characteristics but not name:
if (Vpb->RealDevice & FILE_FLOPPY_DISKETTE) …

Best regards,
Andrey mailto:xxxxx@sandy.ru

RT> Hi everybody,
RT> Is there a field in the VPB structure that I can use to know if the real device is a floppy disk?
RT> I could know it if I get the name of the real device (if the real device has name “\Device\Floppy0”). How do I get the name of an object?
RT> Thank you.

RT> —
RT> You are currently subscribed to ntfsd as: xxxxx@sandy.ru
RT> To unsubscribe send a blank email to %%email.unsub%%

ops, mistake, correct one:
if (Vpb->RealDevice->Characteristics & FILE_FLOPPY_DISKETTE) …

Best regards,
Andrey mailto:xxxxx@sandy.ru

RT> Hi everybody,
RT> Is there a field in the VPB structure that I can use to know if the real device is a floppy disk?
RT> I could know it if I get the name of the real device (if the real device has name “\Device\Floppy0”). How do I get the name of an object?
RT> Thank you.

RT> —
RT> You are currently subscribed to ntfsd as: xxxxx@sandy.ru
RT> To unsubscribe send a blank email to %%email.unsub%%