Example #1
0
 public Rusage(Filetime CreationTime = default, Filetime ExitTime = default, Filetime KernelTime = default, Filetime UserTime = default)
 {
     this.CreationTime = CreationTime;
     this.ExitTime     = ExitTime;
     this.KernelTime   = KernelTime;
     this.UserTime     = UserTime;
 }
 public Win32FileAttributeData(uint FileAttributes = default, Filetime CreationTime = default, Filetime LastAccessTime = default, Filetime LastWriteTime = default, uint FileSizeHigh = default, uint FileSizeLow = default)
 {
     this.FileAttributes = FileAttributes;
     this.CreationTime   = CreationTime;
     this.LastAccessTime = LastAccessTime;
     this.LastWriteTime  = LastWriteTime;
     this.FileSizeHigh   = FileSizeHigh;
     this.FileSizeLow    = FileSizeLow;
 }
 private void _read()
 {
     _signature = m_io.EnsureFixedContents(new byte[] { 104, 98, 105, 110 });
     _offset    = m_io.ReadU4le();
     _size      = m_io.ReadU4le();
     _unknown1  = m_io.ReadU4le();
     _unknown2  = m_io.ReadU4le();
     _timestamp = new Filetime(m_io, this, m_root);
     _unknown4  = m_io.ReadU4le();
 }
 public Win32finddata(uint FileAttributes = default, Filetime CreationTime = default, Filetime LastAccessTime = default, Filetime LastWriteTime = default, uint FileSizeHigh = default, uint FileSizeLow = default, uint Reserved0 = default, uint Reserved1 = default, array <ushort> FileName = default, array <ushort> AlternateFileName = default)
 {
     this.FileAttributes    = FileAttributes;
     this.CreationTime      = CreationTime;
     this.LastAccessTime    = LastAccessTime;
     this.LastWriteTime     = LastWriteTime;
     this.FileSizeHigh      = FileSizeHigh;
     this.FileSizeLow       = FileSizeLow;
     this.Reserved0         = Reserved0;
     this.Reserved1         = Reserved1;
     this.FileName          = FileName;
     this.AlternateFileName = AlternateFileName;
 }
Example #5
0
 public ByHandleFileInformation(uint FileAttributes = default, Filetime CreationTime = default, Filetime LastAccessTime = default, Filetime LastWriteTime = default, uint VolumeSerialNumber = default, uint FileSizeHigh = default, uint FileSizeLow = default, uint NumberOfLinks = default, uint FileIndexHigh = default, uint FileIndexLow = default)
 {
     this.FileAttributes     = FileAttributes;
     this.CreationTime       = CreationTime;
     this.LastAccessTime     = LastAccessTime;
     this.LastWriteTime      = LastWriteTime;
     this.VolumeSerialNumber = VolumeSerialNumber;
     this.FileSizeHigh       = FileSizeHigh;
     this.FileSizeLow        = FileSizeLow;
     this.NumberOfLinks      = NumberOfLinks;
     this.FileIndexHigh      = FileIndexHigh;
     this.FileIndexLow       = FileIndexLow;
 }
Example #6
0
 private void _read()
 {
     _signature = m_io.ReadBytes(4);
     if (!((KaitaiStream.ByteArrayCompare(Signature, new byte[] { 104, 98, 105, 110 }) == 0)))
     {
         throw new ValidationNotEqualError(new byte[] { 104, 98, 105, 110 }, Signature, M_Io, "/types/hive_bin_header/seq/0");
     }
     _offset    = m_io.ReadU4le();
     _size      = m_io.ReadU4le();
     _unknown1  = m_io.ReadU4le();
     _unknown2  = m_io.ReadU4le();
     _timestamp = new Filetime(m_io, this, m_root);
     _unknown4  = m_io.ReadU4le();
 }
 private void _read()
 {
     _signature                   = m_io.EnsureFixedContents(new byte[] { 114, 101, 103, 102 });
     _primarySequenceNumber       = m_io.ReadU4le();
     _secondarySequenceNumber     = m_io.ReadU4le();
     _lastModificationDateAndTime = new Filetime(m_io, this, m_root);
     _majorVersion                = m_io.ReadU4le();
     _minorVersion                = m_io.ReadU4le();
     _type             = ((FileType)m_io.ReadU4le());
     _format           = ((FileFormat)m_io.ReadU4le());
     _rootKeyOffset    = m_io.ReadU4le();
     _hiveBinsDataSize = m_io.ReadU4le();
     _clusteringFactor = m_io.ReadU4le();
     _unknown1         = m_io.ReadBytes(64);
     _unknown2         = m_io.ReadBytes(396);
     _checksum         = m_io.ReadU4le();
     _reserved         = m_io.ReadBytes(3576);
     _bootType         = m_io.ReadU4le();
     _bootRecover      = m_io.ReadU4le();
 }
 private void _read()
 {
     _flags = ((NkFlags)m_io.ReadU2le());
     _lastKeyWrittenDateAndTime = new Filetime(m_io, this, m_root);
     _unknown1                   = m_io.ReadU4le();
     _parentKeyOffset            = m_io.ReadU4le();
     _numberOfSubKeys            = m_io.ReadU4le();
     _numberOfVolatileSubKeys    = m_io.ReadU4le();
     _subKeysListOffset          = m_io.ReadU4le();
     _numberOfValues             = m_io.ReadU4le();
     _valuesListOffset           = m_io.ReadU4le();
     _securityKeyOffset          = m_io.ReadU4le();
     _classNameOffset            = m_io.ReadU4le();
     _largestSubKeyNameSize      = m_io.ReadU4le();
     _largestSubKeyClassNameSize = m_io.ReadU4le();
     _largestValueNameSize       = m_io.ReadU4le();
     _largestValueDataSize       = m_io.ReadU4le();
     _unknown2                   = m_io.ReadU4le();
     _keyNameSize                = m_io.ReadU2le();
     _classNameSize              = m_io.ReadU2le();
     _unknownStringSize          = m_io.ReadU4le();
     _unknownString              = System.Text.Encoding.GetEncoding("ascii").GetString(m_io.ReadBytes(UnknownStringSize));
 }
Example #9
0
 private void _read()
 {
     _signature = m_io.ReadBytes(4);
     if (!((KaitaiStream.ByteArrayCompare(Signature, new byte[] { 114, 101, 103, 102 }) == 0)))
     {
         throw new ValidationNotEqualError(new byte[] { 114, 101, 103, 102 }, Signature, M_Io, "/types/file_header/seq/0");
     }
     _primarySequenceNumber       = m_io.ReadU4le();
     _secondarySequenceNumber     = m_io.ReadU4le();
     _lastModificationDateAndTime = new Filetime(m_io, this, m_root);
     _majorVersion     = m_io.ReadU4le();
     _minorVersion     = m_io.ReadU4le();
     _type             = ((FileType)m_io.ReadU4le());
     _format           = ((FileFormat)m_io.ReadU4le());
     _rootKeyOffset    = m_io.ReadU4le();
     _hiveBinsDataSize = m_io.ReadU4le();
     _clusteringFactor = m_io.ReadU4le();
     _unknown1         = m_io.ReadBytes(64);
     _unknown2         = m_io.ReadBytes(396);
     _checksum         = m_io.ReadU4le();
     _reserved         = m_io.ReadBytes(3576);
     _bootType         = m_io.ReadU4le();
     _bootRecover      = m_io.ReadU4le();
 }