Files
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

42 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using ProcessHacker.Native.Api;
namespace ProcessHacker.Native.SsLogging
{
public class SsObjectAttributes : SsData
{
internal SsObjectAttributes(MemoryRegion data)
{
KphSsObjectAttributes oaInfo = data.ReadStruct<KphSsObjectAttributes>();
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;
}
}
}