RE: Please help! Trying to get bus and slot of device in- notify obje ct...

There is no direct way to query the bus driver to get PCI bus/slot/function
number from user-mode. The one thing you can do on Win2K is to get the
SPDRP_LOCATION_INFORMATION using SetupDiGetDeviceRegistryProperty and parse
the string to get the number. It’s usually in this form “PCI bus 2, device
8, function 0”. Check out the properties of a PCI device in the Device
Manager.

-Eliyas

-----Original Message-----
From: John Hirschi [mailto:xxxxx@SonicWALL.com]
Sent: Friday, February 02, 2001 8:39 AM
To: NT Developers Interest List
Subject: [ntdev] Please help! Trying to get bus and slot of device in
notify obje ct…

I’ve asked this question twice, with no response. If you even have a
suggestion of where to start looking, please reply and tell me where I can
start. I’ve waded through the DDK and read everything that looked relevant,
with no luck. Anyone?

Using the INetCfg interface, I got an enumeration of all of the network
devices on the system. Going through this list and sending each device’s
DevNodeID to the CM_Locate_DevNode function, I’ve been able to identify
which devices are currently installed. Now that I know which devices are
currently installed, I want to know the PCI bus number, slot number, and
function of these currently installed devices.

I am writing a notify object for my intermediate driver (using the sfilter
and passthru ddk examples). Can someone please point me in the right
direction?

Thanks,
John Hirschi


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com