pci configuration space

Hi All

i want to read a PCI configuration space details in windows application.
is there any API function to access the PCI Confguration space
in user mode.

regards
basco

No, there is not. What are you trying to do?

d

dent from a phpne with no keynoard

-----Original Message-----
From: xxxxx@hcl.in
Sent: November 12, 2010 7:35 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] pci configuration space

Hi All

i want to read a PCI configuration space details in windows application.
is there any API function to access the PCI Confguration space
in user mode.

regards
basco


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

There is no possible way to read PCI configuration space from an
application.

However, you can write a device driver which reads it. And you can call
that driver from user space.

For example, see what we did in
http://www.flounder.com/download.htm#PCI%20Explorer. True, this is an
antique NT 4.0 legacy driver, but you can see the basic idea and bring it up
to date. Note that HalGetBusData is officially deprecated with Win2K. I do
not think there is an officially supported kernel mechanism for reading PCI
configuration space after that time.

But why do you need to read PCI configuration space? Generally, there is
nothing useful there any longer; all critical information you need for a
particular driver is delivered to the driver via the
IRP_MJ_PNP:IRP_MN_STARTDEVICE notification.
joe

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hcl.in
Sent: Friday, November 12, 2010 10:35 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] pci configuration space

Hi All

i want to read a PCI configuration space details in windows application.
is there any API function to access the PCI Confguration space in user mode.

regards
basco


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.