Obtain the DeviceName

Hello,
How I can obtain the Device Name of a specific device. I have a list of all
devices that I am interested in and I want to send a notify request to these
devices.
I think that IRP_MN_NOTIFY_CHANGE_DIRECTORY will do the work but how I can
obtain the file object representing the device.
I need it for
Irp->FileObject
Do you have some ideas ?


Get Your Private, Free Email at http://www.hotmail.com

There is something strange in your question:

  • If you have the device you don’t need the name to send it a
    request
  • The file object is not valid to send requests if you dont know the
    target device (except if you get the device from it)

Do you meant, how to get the device from device name ?

Inaki.

-----Original Message-----
From: Jack Brown
Sent: lunes 10 de abril de 2000 16:40
To: File Systems Developers
Subject: [ntfsd] Obtain the DeviceName

Hello,
How I can obtain the Device Name of a specific device. I have a list of
all
devices that I am interested in and I want to send a notify request to
these
devices.
I think that IRP_MN_NOTIFY_CHANGE_DIRECTORY will do the work but how I can

obtain the file object representing the device.
I need it for
Irp->FileObject
Do you have some ideas ?


Get Your Private, Free Email at http://www.hotmail.com


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

use

RC = ObQueryNameString
(
ptrDeviceObject ,
POBJECT_NAME_INFORMATION pDeviceObjectNameInfo,
memsize=1024,
&memsize
);

----alexander suresh

----- Original Message -----
From: Jack Brown
To: File Systems Developers
Sent: Monday, April 10, 2000 10:40 AM
Subject: [ntfsd] Obtain the DeviceName

> Hello,
> How I can obtain the Device Name of a specific device. I have a list of
all
> devices that I am interested in and I want to send a notify request to
these
> devices.
> I think that IRP_MN_NOTIFY_CHANGE_DIRECTORY will do the work but how I can
> obtain the file object representing the device.
> I need it for
> Irp->FileObject
> Do you have some ideas ?
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@mobiliti.com
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>

Thanks Alex!
That is exactly what I needed!
Best Regards
Jack

From: “Alexander Suresh”
>Reply-To: “File Systems Developers”
>To: “File Systems Developers”
>Subject: [ntfsd] Re: Obtain the DeviceName
>Date: Mon, 10 Apr 2000 12:27:56 -0400
>
>use
>
> RC = ObQueryNameString
> (
> ptrDeviceObject ,
> POBJECT_NAME_INFORMATION pDeviceObjectNameInfo,
> memsize=1024,
> &memsize
> );
>
>----alexander suresh
>
>----- Original Message -----
>From: Jack Brown
>To: File Systems Developers
>Sent: Monday, April 10, 2000 10:40 AM
>Subject: [ntfsd] Obtain the DeviceName
>
>
> > Hello,
> > How I can obtain the Device Name of a specific device. I have a list of
>all
> > devices that I am interested in and I want to send a notify request to
>these
> > devices.
> > I think that IRP_MN_NOTIFY_CHANGE_DIRECTORY will do the work but how I
>can
> > obtain the file object representing the device.
> > I need it for
> > Irp->FileObject
> > Do you have some ideas ?
> >
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@mobiliti.com
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
> >
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>


Get Your Private, Free Email at http://www.hotmail.com