detecting the memory page size

前端 未结 7 1976
野性不改
野性不改 2021-02-08 13:31

Is there a portable way to detect (programmatically) the memory page size using C or C++ code ?

7条回答
  •  清酒与你
    2021-02-08 14:10

    I think this function helps.
    [DllImport("kernel32.dll")] public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);

提交回复
热议问题