Files
mirror-processhacker/trunk/ProcessHacker/Components/SectionProperties.cs
T
wj32 ce24964325 major refactoring - utility functions are now in a separate library and SymbolProvider is now in ProcessHacker.Native
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1355 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-05-31 11:05:47 +00:00

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);
}
}
}