Sending IOCTL from AddDevice routine

Hi,

My driver is a disk class filter driver. Is it legal to send
IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?

Thanks,
JT

Better to do this from MN_START_DEVICE.

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

----- Original Message -----
From: “JT Zhou”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Monday, July 19, 2004 10:02 PM
Subject: [ntdev] Sending IOCTL from AddDevice routine

> Hi,
>
> My driver is a disk class filter driver. Is it legal to send
> IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?
>
> Thanks,
> JT
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

Did you mean that you can do it in AddDevice but better do it from
MN_START_DEVICE?

Thanks,
JT

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Better to do this from MN_START_DEVICE.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “JT Zhou”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, July 19, 2004 10:02 PM
> Subject: [ntdev] Sending IOCTL from AddDevice routine
>
>
> > Hi,
> >
> > My driver is a disk class filter driver. Is it legal to send
> > IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?
> >
> > Thanks,
> > JT
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

There is no guarantee that the target PDO is operational when your AddDevice
routine is called.

At this point our geek chorus ought to chime in:

“Why don’t you tell us what you are trying to do rather than how you are
trying to do it?”

Note that PnP queries are legitimate in AddDevice, and perhaps they would
satisfy your needs.

=====================
Mark Roddy

-----Original Message-----
From: JT Zhou [mailto:xxxxx@emc.com]
Sent: Monday, July 19, 2004 4:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Sending IOCTL from AddDevice routine

Did you mean that you can do it in AddDevice but better do it from
MN_START_DEVICE?

Thanks,
JT

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Better to do this from MN_START_DEVICE.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “JT Zhou”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, July 19, 2004 10:02 PM
> Subject: [ntdev] Sending IOCTL from AddDevice routine
>
>
> > Hi,
> >
> > My driver is a disk class filter driver. Is it legal to send
> > IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?
> >
> > Thanks,
> > JT
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> > unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stratus.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

You should wait until IRP_MN_START_DEVICE.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of JT Zhou
Sent: Monday, July 19, 2004 1:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Sending IOCTL from AddDevice routine

Did you mean that you can do it in AddDevice but better do it from
MN_START_DEVICE?

Thanks,
JT

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Better to do this from MN_START_DEVICE.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “JT Zhou”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Monday, July 19, 2004 10:02 PM
> Subject: [ntdev] Sending IOCTL from AddDevice routine
>
>
> > Hi,
> >
> > My driver is a disk class filter driver. Is it legal to send
> > IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or
w2k3?
> >
> > Thanks,
> > JT
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> > unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Better to not send any requests down the stack from AddDevice. They can
fail.

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

----- Original Message -----
From: “JT Zhou”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Tuesday, July 20, 2004 12:40 AM
Subject: Re:[ntdev] Sending IOCTL from AddDevice routine

> Did you mean that you can do it in AddDevice but better do it from
> MN_START_DEVICE?
>
> Thanks,
> JT
>
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
> > Better to do this from MN_START_DEVICE.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “JT Zhou”
> > Newsgroups: ntdev
> > To: “Windows System Software Devs Interest List”
> > Sent: Monday, July 19, 2004 10:02 PM
> > Subject: [ntdev] Sending IOCTL from AddDevice routine
> >
> >
> > > Hi,
> > >
> > > My driver is a disk class filter driver. Is it legal to send
> > > IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?
> > >
> > > Thanks,
> > > JT
> > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

I think I get what I need.

Thank you very much for your info.

JT

“Roddy, Mark” wrote in message news:xxxxx@ntdev…
> There is no guarantee that the target PDO is operational when your
AddDevice
> routine is called.
>
> At this point our geek chorus ought to chime in:
>
> “Why don’t you tell us what you are trying to do rather than how you are
> trying to do it?”
>
> Note that PnP queries are legitimate in AddDevice, and perhaps they would
> satisfy your needs.
>
>
>
> =====================
> Mark Roddy
>
> -----Original Message-----
> From: JT Zhou [mailto:xxxxx@emc.com]
> Sent: Monday, July 19, 2004 4:40 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] Sending IOCTL from AddDevice routine
>
> Did you mean that you can do it in AddDevice but better do it from
> MN_START_DEVICE?
>
> Thanks,
> JT
>
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntdev…
> > Better to do this from MN_START_DEVICE.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “JT Zhou”
> > Newsgroups: ntdev
> > To: “Windows System Software Devs Interest List”
> > Sent: Monday, July 19, 2004 10:02 PM
> > Subject: [ntdev] Sending IOCTL from AddDevice routine
> >
> >
> > > Hi,
> > >
> > > My driver is a disk class filter driver. Is it legal to send
> > > IOCTL_STORAGE_QUERY_PROPERTY from my AddDevice routine on w2k or w2k3?
> > >
> > > Thanks,
> > > JT
> > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
> > > unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@stratus.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>