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 223 views
1 answer 267 views
2 answers 134 views
2 answers 222 views
1 answer 250 views
1 answer 199 views
...