Files
mirror-processhacker/1.x/trunk/ProcessHacker.Native/SsLogging/SsObjectAttributes.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

39 lines
1.0 KiB
C#

using ProcessHacker.Native.Api;
namespace ProcessHacker.Native.SsLogging
{
public class SsObjectAttributes : SsData
{
internal SsObjectAttributes(MemoryRegion data)
{
KphSsObjectAttributes oaInfo = data.ReadStruct<KphSsObjectAttributes>(0, KphSsObjectAttributes.SizeOf, 0);
if (oaInfo.ObjectNameOffset != 0)
this.ObjectName = new SsUnicodeString(new MemoryRegion(data, oaInfo.ObjectNameOffset));
this.Original = oaInfo.ObjectAttributes;
if (oaInfo.RootDirectoryOffset != 0)
this.RootDirectory = new SsHandle(new MemoryRegion(data, oaInfo.RootDirectoryOffset));
}
public SsUnicodeString ObjectName
{
get;
private set;
}
public ObjectAttributes Original
{
get;
private set;
}
public SsHandle RootDirectory
{
get;
private set;
}
}
}