mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
ce24964325
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1355 21ef857c-d57f-4fe0-8362-d861dc6d29cd
28 lines
743 B
C#
28 lines
743 B
C#
using System.Windows.Forms;
|
|
using ProcessHacker.Common;
|
|
using ProcessHacker.Native.Objects;
|
|
|
|
namespace ProcessHacker.Components
|
|
{
|
|
public partial class SectionProperties : UserControl
|
|
{
|
|
private SectionHandle _sectionHandle;
|
|
|
|
public SectionProperties(SectionHandle sectionHandle)
|
|
{
|
|
InitializeComponent();
|
|
|
|
_sectionHandle = sectionHandle;
|
|
this.UpdateInfo();
|
|
}
|
|
|
|
private void UpdateInfo()
|
|
{
|
|
var basicInfo = _sectionHandle.GetBasicInformation();
|
|
|
|
labelAttributes.Text = basicInfo.SectionAttributes.ToString();
|
|
labelSize.Text = Utils.GetNiceSizeName(basicInfo.SectionSize);
|
|
}
|
|
}
|
|
}
|