I'm writing an application in C++ that displays info about PCI devices.
I'm stuck trying to read device memory range (you can read it from device properties in dev manager as shown below)
I'm writing an application in C++ that displays info about PCI devices.
I'm stuck trying to read device memory range (you can read it from device properties in dev manager as shown below)
The key here is "application". That's most likely showing you physical addresses, which (almost certainly) are not mapped in your application's address space.
You'll pretty much need to use some sort of device driver to look at that memory. I'm pretty sure I've seen a driver that gave such access -- seems like it was in the DDK, but I can't remember for sure.