mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
7bd28e4357
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@2304 21ef857c-d57f-4fe0-8362-d861dc6d29cd
52 lines
1.2 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|