Files
mirror-processhacker/1.x/trunk/ProcessHacker.Native/SsLogging/SsHandle.cs
T
dmex 3a9a6e8305 PH1.x: Marshal cache rewrite, TreeViewAdv & ListView control fixes.
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4764 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2011-10-28 00:19:55 +00:00

48 lines
1.1 KiB
C#

namespace ProcessHacker.Native.SsLogging
{
public sealed class SsHandle : SsData
{
internal SsHandle(MemoryRegion data)
{
KphSsHandle handleInfo = data.ReadStruct<KphSsHandle>(0, KphSsHandle.SizeOf, 0);
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;
}
}
}