Is there a portable way to detect (programmatically) the memory page size using C or C++ code ?
I think this function helps. [DllImport("kernel32.dll")] public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);