Files
mirror-processhacker/trunk/ProcessHacker/Components/SectionProperties.cs
T
wj32 c14ae0f4c1 new handle properties window
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1332 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-05-28 10:55:11 +00:00

33 lines
856 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
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 = Misc.GetNiceSizeName(basicInfo.SectionSize);
}
}
}