Files
mirror-processhacker/1.x/branches/ph-plugins/ProcessHacker.Native/SsLogging/SsHandle.cs
T
wj32 7bd28e4357 moved branches, tags, trunk to 1.x branch
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2009-10-25 02:22:46 +00:00

52 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace ProcessHacker.Native.SsLogging
{
public sealed class SsHandle : SsData
{
internal SsHandle(MemoryRegion data)
{
KphSsHandle handleInfo = data.ReadStruct<KphSsHandle>();
if (handleInfo.TypeNameOffset != 0)
{
this.TypeName = SsLogger.ReadWString(new MemoryRegion(data, handleInfo.TypeNameOffset));
}
if (handleInfo.NameOffset != 0)
{
this.Name = SsLogger.ReadWString(new MemoryRegion(data, handleInfo.NameOffset));
}
this.ProcessId = handleInfo.ClientId.ProcessId;
this.ThreadId = handleInfo.ClientId.ThreadId;
}
public string Name
{
get;
private set;
}
public int ProcessId
{
get;
private set;
}
public int ThreadId
{
get;
private set;
}
public string TypeName
{
get;
private set;
}
}
}