Hello,
I’m writing a filter driver and I would like to retrieve the InstanceId of
the PDO. How can I do it? I need an example to retrieve it.
Regards
Hello,
I’m writing a filter driver and I would like to retrieve the InstanceId of
the PDO. How can I do it? I need an example to retrieve it.
Regards
See IRP_MN_QUERY_ID
=====================
Mark Roddy
-----Original Message-----
From: Christian [mailto:xxxxx@mcdi.com]
Sent: Friday, March 19, 2004 11:36 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] InstanceIdHello,
I’m writing a filter driver and I would like to retrieve the
InstanceId of the PDO. How can I do it? I need an example
to retrieve it.Regards
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com
Can IoGetDeviceProperty help?
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Christian”
To: “Windows System Software Devs Interest List”
Sent: Friday, March 19, 2004 7:35 PM
Subject: [ntdev] InstanceId
> Hello,
>
> I’m writing a filter driver and I would like to retrieve the InstanceId of
> the PDO. How can I do it? I need an example to retrieve it.
>
> Regards
>
>
> —
> 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 tried IoGetDeviceProperty, but I don’t know which parameters I have to set
to retrieve the InstanceId.
From the registry,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_XXX&Pid_YYY\1234567
8
I would like to retrieve “12345678” string.
Regards
Christian
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows System Software Devs Interest List”
Sent: Friday, March 19, 2004 3:46 PM
Subject: Re: [ntdev] InstanceId
> Can IoGetDeviceProperty help?
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Christian”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, March 19, 2004 7:35 PM
> Subject: [ntdev] InstanceId
>
>
> > Hello,
> >
> > I’m writing a filter driver and I would like to retrieve the InstanceId
of
> > the PDO. How can I do it? I need an example to retrieve it.
> >
> > Regards
> >
> >
> > —
> > 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@mcdi.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Yes, unfortunately, IoGetDeviceProperty has no function code for instance
ID, only for hardware and compatible IDs.
Then sending your own MN_QUERY_ID IRP (as Mark said) is a way to go.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Christian”
To: “Windows System Software Devs Interest List”
Sent: Saturday, March 20, 2004 12:21 AM
Subject: Re: [ntdev] InstanceId
> I tried IoGetDeviceProperty, but I don’t know which parameters I have to set
> to retrieve the InstanceId.
>
> From the registry,
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_XXX&Pid_YYY\1234567
> 8
>
> I would like to retrieve “12345678” string.
>
> Regards
>
> Christian
>
> ----- Original Message -----
> From: “Maxim S. Shatskih”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, March 19, 2004 3:46 PM
> Subject: Re: [ntdev] InstanceId
>
>
> > Can IoGetDeviceProperty help?
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “Christian”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, March 19, 2004 7:35 PM
> > Subject: [ntdev] InstanceId
> >
> >
> > > Hello,
> > >
> > > I’m writing a filter driver and I would like to retrieve the InstanceId
> of
> > > the PDO. How can I do it? I need an example to retrieve it.
> > >
> > > Regards
> > >
> > >
> > > —
> > > 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@mcdi.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 called IoSetCompletionRoutine when the PnP Manager sends a IRP_MN_QUERY_ID
to my filter driver. But i didn’t receive any IRP_MN_QUERY_ID IRP. Do I
have to initialize a IRP from my filter driver in order to retrieve the
InstanceId?
Regards
Christian
----- Original Message -----
From: “Maxim S. Shatskih”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, March 19, 2004 3:46 PM
> Subject: Re: [ntdev] InstanceId
>
>
> > Can IoGetDeviceProperty help?
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “Christian”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, March 19, 2004 7:35 PM
> > Subject: [ntdev] InstanceId
> >
> >
> > > Hello,
> > >
> > > I’m writing a filter driver and I would like to retrieve the
InstanceId
> of
> > > the PDO. How can I do it? I need an example to retrieve it.
> > >
> > > Regards
> > >
> > >
> > > —
> > > 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@mcdi.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@mcdi.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Yes. Query ID is sent when the PDO is being enumerated, far before your
filter is being loaded. You have to send this irp yourself.
D
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Christian
Sent: Monday, March 22, 2004 5:15 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] InstanceId
I called IoSetCompletionRoutine when the PnP Manager sends a
IRP_MN_QUERY_ID
to my filter driver. But i didn’t receive any IRP_MN_QUERY_ID IRP. Do
I
have to initialize a IRP from my filter driver in order to retrieve the
InstanceId?
Regards
Christian
----- Original Message -----
From: “Maxim S. Shatskih”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, March 19, 2004 3:46 PM
> Subject: Re: [ntdev] InstanceId
>
>
> > Can IoGetDeviceProperty help?
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
> > ----- Original Message -----
> > From: “Christian”
> > To: “Windows System Software Devs Interest List”
> > Sent: Friday, March 19, 2004 7:35 PM
> > Subject: [ntdev] InstanceId
> >
> >
> > > Hello,
> > >
> > > I’m writing a filter driver and I would like to retrieve the
InstanceId
> of
> > > the PDO. How can I do it? I need an example to retrieve it.
> > >
> > > Regards
> > >
> > >
> > > —
> > > 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@mcdi.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@mcdi.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