Target device name

Hi, All!

I’m writting FS filter driver. My driver intercepts IRP_MJ_CREATE
requests. While processng this request I want to know name
of device , that file system is mounted on.
In other words given pFSDevice is file system device object for
mounted volume, I want to know name of device pFSDevice
is mounted on, like \Device\Harddisk0\Partition1

Any help will be great.

Regards, Dennis


Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

You must use the ObQueryNameString routine on
the physical device object (Vpb->RealDevice).

Paul

-----P?vodn? zpr?va-----
Od: Dennis [SMTP:xxxxx@yahoo.com]
Odesl?no: 6. ?ervence 2000 14:52
Komu: File Systems Developers
P?edm?t: [ntfsd] Target device name

Hi, All!

I’m writting FS filter driver. My driver intercepts IRP_MJ_CREATE
requests. While processng this request I want to know name
of device , that file system is mounted on.
In other words given pFSDevice is file system device object for
mounted volume, I want to know name of device pFSDevice
is mounted on, like \Device\Harddisk0\Partition1

Any help will be great.

Regards, Dennis


Do You Yahoo!?

Talk to your friends online with Yahoo! Messenger.

http://im.yahoo.com


You are currently subscribed to ntfsd as: xxxxx@sodatsw.cz
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> I’m writting FS filter driver. My driver intercepts IRP_MJ_CREATE

requests. While processng this request I want to know name
of device , that file system is mounted on.
In other words given pFSDevice is file system device object for
mounted volume, I want to know name of device pFSDevice
is mounted on, like \Device\Harddisk0\Partition1

Try ObQueryNameString. Allocate a large enough temporary buffer and pass it
to ObQueryNameString.

Max