In W2K, from a user App I used to get info about the bus no, Slot no &
device number from the registry from under the key
\HKLM\System\CurrentControlSet\Enum\PCI\Ven_xxx…\xxxxfrom the “LocationInformation” value.
For Whistler, this info is not there under this key. However looks like the
info about Slot number is there under
\HKLM\System\CurrentControlSet\Enum\PCI\Ven_xxx…\xxxx\logconf
under “BootConfigVector”. I do not know if I can even get the function
value under this. Or from where to get the function number value?
Can some one pls. help ASAP?
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
wrote in message news:xxxxx@ntdev…
> under “BootConfigVector”. I do not know if I can even get the function
> value under this. Or from where to get the function number value?
Don’t query the registry directly. Check out the SetupDiXxxx functions in
the SDK. They’re typically powerful enough to get you whatever info you
need.
Peter
OSR
—
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
Sending the proper PNP (IRP_MN_READ/WRITE_CONFIG) IRP down will also provide
you the PCI bus information, and allow you to write to the PCI bus.
Gary G. Little
Staff Engineer
Broadband Storage, Inc.
xxxxx@broadstor.com
-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Wednesday, September 19, 2001 8:48 AM
To: NT Developers Interest List
Subject: [ntdev] Re: XP - How to get PCI slot/function? - Urgent
wrote in message news:xxxxx@ntdev…
> under “BootConfigVector”. I do not know if I can even get the function
> value under this. Or from where to get the function number value?
Don’t query the registry directly. Check out the SetupDiXxxx functions in
the SDK. They’re typically powerful enough to get you whatever info you
need.
Peter
OSR
—
You are currently subscribed to ntdev as: xxxxx@broadstor.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
One way to find out device location information is using
SPDRP_LOCATION_INFORMATION in SetupDiGetDeviceRegistryProperty. This is
the same information as is reported in device manager.
Also you could try using SPDRP_UI_NUMBER in the
SetupDiGetDeviceRegistryProperty will give the Slot information in the
Property Buffer.
-----Original Message-----
From: xxxxx@wipro.com [mailto:xxxxx@wipro.com]
Sent: Tuesday, September 18, 2001 2:14 AM
To: NT Developers Interest List
Subject: [ntdev] XP - How to get PCI slot/function? - Urgent
In W2K, from a user App I used to get info about the bus no, Slot no &
device number from the registry from under the key
\HKLM\System\CurrentControlSet\Enum\PCI\Ven_xxx…\xxxxfrom the “LocationInformation” value.
For Whistler, this info is not there under this key. However looks like
the
info about Slot number is there under
\HKLM\System\CurrentControlSet\Enum\PCI\Ven_xxx…\xxxx\logconf
under “BootConfigVector”. I do not know if I can even get the function
value under this. Or from where to get the function number value?
Can some one pls. help ASAP?
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