Files
mirror-processhacker/1.x/trunk/ProcessHacker/Components/SectionProperties.cs
T
dmex e43aec1c5e PH1.x: Code Cleanup/Fixes
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4778 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-10-29 08:32:37 +00:00

30 lines
790 B
C#

using System.Windows.Forms;
using ProcessHacker.Common;
using ProcessHacker.Native.Objects;
namespace ProcessHacker.Components
{
public partial class SectionProperties : UserControl
{
private readonly SectionHandle _sectionHandle;
public SectionProperties(SectionHandle sectionHandle)
{
InitializeComponent();
_sectionHandle = sectionHandle;
_sectionHandle.Reference();
this.UpdateInfo();
}
private void UpdateInfo()
{
var basicInfo = _sectionHandle.GetBasicInformation();
labelAttributes.Text = basicInfo.SectionAttributes.ToString();
labelSize.Text = Utils.FormatSize(basicInfo.SectionSize);
}
}
}