Files
mirror-processhacker/trunk/ProcessHacker/Components/TmTmProperties.cs
T
wj32 0832f0ae5f * added handle properties for transaction manager objects
* all push lock acquires now enter critical regions
* removed OUT LONG arguments from ref.c

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1677 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-08-07 11:25:54 +00:00

42 lines
1.1 KiB
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;
using ProcessHacker.Native;
namespace ProcessHacker.Components
{
public partial class TmTmProperties : UserControl
{
private TmHandle _tmHandle;
public TmTmProperties(TmHandle tmHandle)
{
InitializeComponent();
_tmHandle = tmHandle;
_tmHandle.Reference();
this.UpdateInfo();
}
private void UpdateInfo()
{
try
{
textGuid.Text = _tmHandle.GetBasicInformation().TmIdentity.ToString("B");
textLogFileName.Text = FileUtils.FixPath(FileUtils.DeviceFileNameToDos(_tmHandle.GetLogFileName()));
}
catch (Exception ex)
{
textGuid.Text = "(" + ex.Message + ")";
textLogFileName.Text = "(" + ex.Message + ")";
}
}
}
}