Ejemplo n.º 1
0
        public static Bitmap GetByPath(string path, ulong cluster)
        {
            string     volume = Helper.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(Get(volume, (int)entry.RecordNumber, cluster));
        }
        public static byte[] GetRecordBytes(string path)
        {
            string     volume = NativeMethods.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(GetRecordBytesPrivate(volume, (int)entry.RecordNumber));
        }
Ejemplo n.º 3
0
        public static UsnJrnl[] GetInstancesByPath(string path)
        {
            string     volume = NativeMethods.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(GetInstances(volume, (int)entry.RecordNumber));
        }
        public static FileRecord Get(string path, bool fast)
        {
            string     volume = NativeMethods.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(new FileRecord(FileRecord.GetRecordBytes(volume, (int)entry.RecordNumber), volume, fast));
        }
Ejemplo n.º 5
0
        public static UsnJrnl Get(string path, ulong usn)
        {
            string     volume = NativeMethods.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(Get(volume, (int)entry.RecordNumber, usn));
        }
Ejemplo n.º 6
0
        internal static FileRecord Get(string path, bool fast)
        {
            string     volume = Helper.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(Get(volume, (int)entry.RecordNumber, fast));
        }
Ejemplo n.º 7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="volume"></param>
        /// <returns></returns>
        public static UsnJrnl[] GetInstances(string volume)
        {
            Helper.getVolumeName(ref volume);
            IndexEntry entry = IndexEntry.Get(Helper.GetVolumeLetter(volume) + @"\$Extend\$UsnJrnl");

            return(GetInstances(volume, (int)entry.RecordNumber));
        }
Ejemplo n.º 8
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <param name="usn"></param>
        /// <returns></returns>
        public static UsnJrnl GetByPath(string path, long usn)
        {
            string     volume = Helper.GetVolumeFromPath(path);
            IndexEntry entry  = IndexEntry.Get(path);

            return(Get(volume, (int)entry.RecordNumber, usn));
        }
Ejemplo n.º 9
0
        public static Bitmap[] GetInstancesByPath(string path)
        {
            // Get Volume string from specified path
            string volume = Helper.GetVolumeFromPath(path);

            // Determine Record Number for specified file
            IndexEntry entry = IndexEntry.Get(path);

            // Get the proper data stream from the FileRecord
            NonResident dataStream = Bitmap.GetDataStream(new FileRecord(FileRecord.GetRecordBytes(volume, (int)entry.RecordNumber), volume, true));

            // Call GetInstances to return all associated Bitmap Values
            return(GetInstances(dataStream.GetBytes(volume)));
        }
Ejemplo n.º 10
0
        public static UsnJrnl[] GetInstances(string volume)
        {
            IndexEntry entry = IndexEntry.Get(volume.Split('\\')[3] + "\\$Extend\\$UsnJrnl");

            return(GetInstances(volume, (int)entry.RecordNumber));
        }