public MemoryRegion(MEMORY_BASIC_INFORMATION_32 basicInformation) { BaseAddress = basicInformation.BaseAddress; RegionSize = basicInformation.RegionSize; State = basicInformation.State; Protect = basicInformation.Protect; Type = basicInformation.Type; }
public static extern int VirtualQueryEx(IntPtr hProcess, UIntPtr lpAddress, out MEMORY_BASIC_INFORMATION_32 lpBuffer, uint dwLength);
[DllImport("kernel32.dll", SetLastError = true)] public static extern BOOL VirtualQueryEx(HANDLE hProcess, IntPtr lpAddress, out MEMORY_BASIC_INFORMATION_32 lpBuffer, DWORD dwLength);