How to get the operating system memory page size in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = (Environment.SystemPageSize).ToString() + " bytes";
        }
    }
}




/*
run:
 
4096 bytes
  
*/

 



answered Nov 19, 2023 by avibootz

Related questions

2 answers 231 views
1 answer 271 views
2 answers 138 views
2 answers 239 views
1 answer 256 views
1 answer 205 views
...