Virtualqueryex

[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.U4)]
public static extern uint VirtualQueryEx(IntPtr hProcess,
   IntPtr lpAddress,
   ref MEMORY_BASIC_INFORMATION lpBuffer,
   UIntPtr dwLength
);

Microsoft documentation: Link

Last updated