Hi all,
I am developing a kernel mode driver and I want to use WRITE_PORT_XYZ API to send data to a specific device.
Ref: WRITE_PORT_UCHAR function (wdm.h) - Windows drivers | Microsoft Learn
This function requires an address value of IO memory range.
After some investigate, I see that we can find IO memory range in Device Manager of the device like below figure:
How I can get that information programmatically in a kernel mode driver?
Any idea will be appreciated.