Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: Get PCI Bus/Function/Device Number

Reply
Thread Tools Display Modes

Re: Get PCI Bus/Function/Device Number

 
 
Tim Roberts
Guest
Posts: n/a

 
      09-29-2010
Sushma <> wrote:
>
>Is there a way to get the PCI bus, function and device number on which
>my current driver is installed.


Why? That information is not very useful.

>I could only find bus number in
>DEVICE_REGISTRY_PROPERTY. I had used WdfDeviceQueryProperty to
>retrieve this data.
>
>How can I get the function and device number?


DevicePropertyLocationInformation has that information in string form ("PCI
bus 12, device 0, function 0").

If you really need the numbers, this KB article tells you that
DevicePropertyAddress has function and device, and how they are packed:
http://support.microsoft.com/kb/253232
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uniquely identify a USB-HID device ? MAV Windows Vista Drivers 13 04-03-2011 05:22 PM
Re: Reserved addresses in subnet & Number of subnets unruh Server Networking 0 01-11-2010 03:56 AM
Product ID Number incorrect ? hansh Windows Vista Administration 2 01-28-2008 09:09 AM
Windows Fax and Scan: Adding 'pauses' to a dialled number Allan Windows Vista Hardware 5 01-24-2008 11:46 PM
Stop Error 0x0000007b Louis LeBrun Windows Vista Installation 17 07-05-2006 09:00 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59