using System.Windows.Forms; using ProcessHacker.Native.Objects; namespace ProcessHacker.Components { public partial class MutantProperties : UserControl { private MutantHandle _mutantHandle; public MutantProperties(MutantHandle mutantHandle) { InitializeComponent(); _mutantHandle = mutantHandle; _mutantHandle.Reference(); this.UpdateInfo(); } private void UpdateInfo() { var basicInfo = _mutantHandle.GetBasicInformation(); labelCurrentCount.Text = basicInfo.CurrentCount.ToString(); labelAbandoned.Text = (basicInfo.AbandonedState != 0).ToString(); } } }