How to get PCI PDO info from FDO

Hi,
Is there a sample how to query
Bus/Dev/Fun from a PCI FDO ?
I assume its a query IRP to the PDO.

Thanks, Tom.

Create an IRP with IRP_MJ_PNP and IRP_MN_QUERY_ID and with
“Parameters.QueryId.IdType” of IRP stack set to BusQueryInstanceID /
BusQueryDeviceID / BusQueryHardwareIDs / BusQueryCompatibleIDs.

Best of Luck,
Shashi

-----Original Message-----
From: Tomer Goldberg [mailto:xxxxx@royatech.com]
Sent: Wednesday, September 25, 2002 6:03 PM
To: NT Developers Interest List
Subject: [ntdev] How to get PCI PDO info from FDO

Hi,
Is there a sample how to query
Bus/Dev/Fun from a PCI FDO ?
I assume its a query IRP to the PDO.

Thanks, Tom.


You are currently subscribed to ntdev as:
xxxxx@wipro.com
To unsubscribe send a blank email to %%email.unsub%%

Actually you just call IoGetDeviceProperty, specifying
DevicePropertyAddress to get back a ulong value representing the slot
(device number/function number value,) and specifying
DevicePropertyBusNumber to get back a ULONG value for the bus number.

Search the XP or later DDK for DevicePropertyAddress.

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: “Shashidhar”
To: “NT Developers Interest List”
Date: Wed, 25 Sep 2002 17:15:18 +0530
Subject: [ntdev] RE: How to get PCI PDO info from FDO

> Create an IRP with IRP_MJ_PNP and IRP_MN_QUERY_ID and with
> “Parameters.QueryId.IdType” of IRP stack set to BusQueryInstanceID /
> BusQueryDeviceID / BusQueryHardwareIDs / BusQueryCompatibleIDs.
>
> Best of Luck,
> Shashi
>
> >-----Original Message-----
> >From: Tomer Goldberg [mailto:xxxxx@royatech.com]
> >Sent: Wednesday, September 25, 2002 6:03 PM
> >To: NT Developers Interest List
> >Subject: [ntdev] How to get PCI PDO info from FDO
> >
> >
> > Hi,
> > Is there a sample how to query
> > Bus/Dev/Fun from a PCI FDO ?
> > I assume its a query IRP to the PDO.
> >
> > Thanks, Tom.
> >
> >
> >—
> >You are currently subscribed to ntdev as:
> xxxxx@wipro.com
> >To unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%