none
How to add memory management routines in driver RRS feed

  • Question

  • I am trying to include memory management routine(mmgetphysicalmemoryranges) into my driver.
    I don't know how to create driver object for physical memory and call these routines from my driver.

    I am aiming for displaying memory ranges in DbgView.
    Please help me.
    Thank you.

    Wednesday, January 13, 2016 5:14 AM

Answers

All replies

  • That is an undocumented routine reserved for system use, see https://msdn.microsoft.com/en-us/library/windows/hardware/ff554435%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

    Why do you believe your driver needs to get this information, there may be a better way to address the problem?


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Wednesday, January 13, 2016 12:37 PM
  • the PDRIVER_OBJECT is created for you and passed to you in DriverEntry. You can create PDEVICE_OBJECTs with IoCreateDevice calls, any sample will show this (or most likely the KMDF equivalents). But as don states, that is not the point. messing around with undocumented API calls leads to system instability,hangs and crashes (in all sorts of weird ways that don't directly point at your driver)

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, January 13, 2016 5:45 PM