mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-08-11 18:41:16 +10:00
Code cleanup
This commit is contained in:
+2
-2
@@ -19,10 +19,10 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
|
||||||
using System.Windows;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Windows;
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,9 +22,7 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
internal class BlockCache<T>
|
internal class BlockCache<T>
|
||||||
where T : Block, new()
|
where T : Block, new()
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
|
|
||||||
namespace DiscUtils.BootConfig
|
namespace DiscUtils.BootConfig
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Registry;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using DiscUtils.Registry;
|
|
||||||
|
|
||||||
internal class DiscUtilsRegistryStorage : BaseStorage
|
internal class DiscUtilsRegistryStorage : BaseStorage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.BootConfig
|
namespace DiscUtils.BootConfig
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The value of an element.
|
/// The value of an element.
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.BootConfig
|
namespace DiscUtils.BootConfig
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates the type of objects that can inherit from an object.
|
/// Indicates the type of objects that can inherit from an object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
namespace DiscUtils.BootConfig
|
namespace DiscUtils.BootConfig
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Registry;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using DiscUtils.Registry;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a Boot Configuration Database store (i.e. a BCD file).
|
/// Represents a Boot Configuration Database store (i.e. a BCD file).
|
||||||
|
|||||||
@@ -22,9 +22,7 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
internal class BuilderSparseStreamExtent : BuilderExtent
|
internal class BuilderSparseStreamExtent : BuilderExtent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumeration of possible cluster roles.
|
/// Enumeration of possible cluster roles.
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils.Fat
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
internal class DirectoryEntry
|
internal class DirectoryEntry
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Fat
|
namespace DiscUtils.Fat
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
internal class FileAllocationTable
|
internal class FileAllocationTable
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Fat
|
namespace DiscUtils.Fat
|
||||||
{
|
{
|
||||||
using System.IO;
|
|
||||||
using DiscUtils.Vfs;
|
using DiscUtils.Vfs;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
[VfsFileSystemFactory]
|
[VfsFileSystemFactory]
|
||||||
internal class FileSystemFactory : VfsFileSystemFactory
|
internal class FileSystemFactory : VfsFileSystemFactory
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
namespace DiscUtils.LogicalDiskManager
|
namespace DiscUtils.LogicalDiskManager
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
internal class DynamicDisk : IDiagnosticTraceable
|
internal class DynamicDisk : IDiagnosticTraceable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
namespace DiscUtils.LogicalDiskManager
|
namespace DiscUtils.LogicalDiskManager
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
internal class DynamicDiskGroup : IDiagnosticTraceable
|
internal class DynamicDiskGroup : IDiagnosticTraceable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
namespace DiscUtils.LogicalDiskManager
|
namespace DiscUtils.LogicalDiskManager
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A class that understands Windows LDM structures, mapping physical volumes to logical volumes.
|
/// A class that understands Windows LDM structures, mapping physical volumes to logical volumes.
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.LogicalDiskManager
|
namespace DiscUtils.LogicalDiskManager
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
|
|
||||||
internal class TocBlock
|
internal class TocBlock
|
||||||
{
|
{
|
||||||
public string Signature; // TOCBLOCK
|
public string Signature; // TOCBLOCK
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Compression;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Compression;
|
|
||||||
|
|
||||||
internal sealed class CompressedClusterStream : ClusterStream
|
internal sealed class CompressedClusterStream : ClusterStream
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
internal class CookedDataRun
|
internal class CookedDataRun
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
internal class DataRun
|
internal class DataRun
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils.Ntfs
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System.IO;
|
|
||||||
using DiscUtils.Vfs;
|
using DiscUtils.Vfs;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
[VfsFileSystemFactory]
|
[VfsFileSystemFactory]
|
||||||
internal class FileSystemFactory : VfsFileSystemFactory
|
internal class FileSystemFactory : VfsFileSystemFactory
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
internal abstract class FixupRecordBase
|
internal abstract class FixupRecordBase
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
internal class IndexBlock : FixupRecordBase
|
internal class IndexBlock : FixupRecordBase
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
namespace DiscUtils.Ntfs.Internals
|
namespace DiscUtils.Ntfs.Internals
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
public sealed class MasterFileTableAttribute
|
public sealed class MasterFileTableAttribute
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs.Internals
|
namespace DiscUtils.Ntfs.Internals
|
||||||
{
|
{
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
public sealed class MasterFileTableRecord
|
public sealed class MasterFileTableRecord
|
||||||
{
|
{
|
||||||
private FileRecord _fileRecord;
|
private FileRecord _fileRecord;
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs.Internals
|
namespace DiscUtils.Ntfs.Internals
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The known NTFS namespaces.
|
/// The known NTFS namespaces.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using DiscUtils.Compression;
|
using DiscUtils.Compression;
|
||||||
|
using System;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Implementation of the LZNT1 algorithm used for compressing NTFS files.
|
/// Implementation of the LZNT1 algorithm used for compressing NTFS files.
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ namespace DiscUtils.Ntfs
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Compression;
|
|
||||||
|
|
||||||
internal class NonResidentDataBuffer : DiscUtils.Buffer, IMappedBuffer
|
internal class NonResidentDataBuffer : DiscUtils.Buffer, IMappedBuffer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
internal sealed class NtfsTransaction : IDisposable
|
internal sealed class NtfsTransaction : IDisposable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
|
using DiscUtils;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Low-level non-resident attribute operations.
|
/// Low-level non-resident attribute operations.
|
||||||
|
|||||||
@@ -22,10 +22,8 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Security.AccessControl;
|
using System.Security.AccessControl;
|
||||||
using System.Security.Principal;
|
|
||||||
|
|
||||||
internal sealed class SecurityDescriptor : IByteArraySerializable, IDiagnosticTraceable
|
internal sealed class SecurityDescriptor : IByteArraySerializable, IDiagnosticTraceable
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controls whether short file names are created automatically.
|
/// Controls whether short file names are created automatically.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
internal sealed class VolumeInformation : IByteArraySerializable, IDiagnosticTraceable
|
internal sealed class VolumeInformation : IByteArraySerializable, IDiagnosticTraceable
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Ntfs
|
namespace DiscUtils.Ntfs
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumeration used to indicate transfer of disposable objects.
|
/// Enumeration used to indicate transfer of disposable objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Partitions
|
namespace DiscUtils.Partitions
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides access to partition records in a BIOS (MBR) partition table.
|
/// Provides access to partition records in a BIOS (MBR) partition table.
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils.Partitions
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Builds a stream with the contents of a BIOS partitioned disk.
|
/// Builds a stream with the contents of a BIOS partitioned disk.
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Partitions
|
namespace DiscUtils.Partitions
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides access to partition records in a GUID partition table.
|
/// Provides access to partition records in a GUID partition table.
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils.Partitions
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base class representing a disk partition.
|
/// Base class representing a disk partition.
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enumeration of possible types of physical volume.
|
/// Enumeration of possible types of physical volume.
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ namespace DiscUtils
|
|||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a range of values.
|
/// Represents a range of values.
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
namespace DiscUtils.Raw
|
namespace DiscUtils.Raw
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
[VirtualDiskFactory("RAW", ".img,.ima,.vfd,.flp,.bif")]
|
[VirtualDiskFactory("RAW", ".img,.ima,.vfd,.flp,.bif")]
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Raw
|
namespace DiscUtils.Raw
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a single raw disk image file.
|
/// Represents a single raw disk image file.
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils.Registry
|
namespace DiscUtils.Registry
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
internal sealed class BinHeader : IByteArraySerializable
|
internal sealed class BinHeader : IByteArraySerializable
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
|
|
||||||
internal abstract class Tuple
|
internal abstract class Tuple
|
||||||
{
|
{
|
||||||
public abstract object this[int i]
|
public abstract object this[int i]
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
using System;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Standard Unix-style file type.
|
/// Standard Unix-style file type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
namespace DiscUtils.Vfs
|
namespace DiscUtils.Vfs
|
||||||
{
|
{
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attribute identifying file system factory classes.
|
/// Attribute identifying file system factory classes.
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base class representing virtual hard disks.
|
/// Base class representing virtual hard disks.
|
||||||
|
|||||||
@@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
namespace DiscUtils
|
namespace DiscUtils
|
||||||
{
|
{
|
||||||
|
using DiscUtils.Partitions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DiscUtils.Partitions;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// VolumeManager interprets partitions and other on-disk structures (possibly combining multiple disks).
|
/// VolumeManager interprets partitions and other on-disk structures (possibly combining multiple disks).
|
||||||
|
|||||||
+6
-7
@@ -22,25 +22,24 @@
|
|||||||
// Where possible the original authors are referenced.
|
// Where possible the original authors are referenced.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
|
using System.IO.Compression;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
using System.Windows.Documents;
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
using System.Windows.Media.Animation;
|
using System.Windows.Media.Animation;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
using System.Threading;
|
|
||||||
using System.Windows.Input;
|
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
using System.IO.Compression;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Net;
|
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,15 +20,15 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Runtime.Serialization;
|
|
||||||
using System.Runtime.Serialization.Json;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net.Http.Headers;
|
using System.Net.Http.Headers;
|
||||||
using System.IO;
|
using System.Runtime.Serialization;
|
||||||
|
using System.Runtime.Serialization.Json;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,10 @@
|
|||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Runtime.ConstrainedExecution;
|
|
||||||
using Microsoft.Win32.SafeHandles;
|
using Microsoft.Win32.SafeHandles;
|
||||||
|
using System;
|
||||||
|
using System.Runtime.ConstrainedExecution;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
|
|||||||
@@ -21,15 +21,15 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Runtime.ConstrainedExecution;
|
using System.Runtime.ConstrainedExecution;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
using Luid = NativeMethods.LUID;
|
using Luid = NativeMethods.LUID;
|
||||||
using Win32Exception = System.ComponentModel.Win32Exception;
|
|
||||||
using PrivilegeNotHeldException = System.Security.AccessControl.PrivilegeNotHeldException;
|
using PrivilegeNotHeldException = System.Security.AccessControl.PrivilegeNotHeldException;
|
||||||
|
using Win32Exception = System.ComponentModel.Win32Exception;
|
||||||
|
|
||||||
internal delegate void PrivilegedCallback(object state);
|
internal delegate void PrivilegedCallback(object state);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Resources;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,8 @@ namespace WPinternals
|
|||||||
catch (Exception Ex)
|
catch (Exception Ex)
|
||||||
{
|
{
|
||||||
IsSwitchingInterface = false;
|
IsSwitchingInterface = false;
|
||||||
ActivateSubContext(new MessageViewModel(Ex.Message, () => {
|
ActivateSubContext(new MessageViewModel(Ex.Message, () =>
|
||||||
|
{
|
||||||
Callback();
|
Callback();
|
||||||
Refresh();
|
Refresh();
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -82,7 +82,8 @@ namespace WPinternals
|
|||||||
}
|
}
|
||||||
catch (Exception Ex)
|
catch (Exception Ex)
|
||||||
{
|
{
|
||||||
ActivateSubContext(new MessageViewModel(Ex.Message, () => {
|
ActivateSubContext(new MessageViewModel(Ex.Message, () =>
|
||||||
|
{
|
||||||
Callback();
|
Callback();
|
||||||
ActivateSubContext(null);
|
ActivateSubContext(null);
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
using System.Threading;
|
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
internal class NokiaMassStorageViewModel : ContextViewModel
|
internal class NokiaMassStorageViewModel : ContextViewModel
|
||||||
|
|||||||
@@ -19,11 +19,7 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -256,7 +256,8 @@ namespace WPinternals
|
|||||||
// It is not possible to invoke COM objects from a WndProc.
|
// It is not possible to invoke COM objects from a WndProc.
|
||||||
// MassStorage uses ManagementObjectSearcher, which is a COM object.
|
// MassStorage uses ManagementObjectSearcher, which is a COM object.
|
||||||
// Therefore we use a new thread.
|
// Therefore we use a new thread.
|
||||||
ThreadPool.QueueUserWorkItem(s => {
|
ThreadPool.QueueUserWorkItem(s =>
|
||||||
|
{
|
||||||
lock (ModelLock)
|
lock (ModelLock)
|
||||||
{
|
{
|
||||||
if (!(CurrentModel is MassStorage))
|
if (!(CurrentModel is MassStorage))
|
||||||
@@ -392,7 +393,8 @@ namespace WPinternals
|
|||||||
(e.DevicePath.IndexOf("VID_05C6&PID_9008", StringComparison.OrdinalIgnoreCase) >= 0) ||
|
(e.DevicePath.IndexOf("VID_05C6&PID_9008", StringComparison.OrdinalIgnoreCase) >= 0) ||
|
||||||
(e.DevicePath.IndexOf(@"disk&ven_qualcomm&prod_mmc_storage", StringComparison.OrdinalIgnoreCase) >= 0) ||
|
(e.DevicePath.IndexOf(@"disk&ven_qualcomm&prod_mmc_storage", StringComparison.OrdinalIgnoreCase) >= 0) ||
|
||||||
(e.DevicePath.IndexOf(@"DISK&VEN_MSFT&PROD_PHONE_MMC_STOR", StringComparison.OrdinalIgnoreCase) >= 0)
|
(e.DevicePath.IndexOf(@"DISK&VEN_MSFT&PROD_PHONE_MMC_STOR", StringComparison.OrdinalIgnoreCase) >= 0)
|
||||||
) {
|
)
|
||||||
|
{
|
||||||
if (CurrentInterface != null)
|
if (CurrentInterface != null)
|
||||||
LastInterface = CurrentInterface;
|
LastInterface = CurrentInterface;
|
||||||
CurrentInterface = null;
|
CurrentInterface = null;
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ namespace WPinternals
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UIContext.Post(s => {
|
UIContext.Post(s =>
|
||||||
|
{
|
||||||
ModeSwitchProgress(Message, SubMessage);
|
ModeSwitchProgress(Message, SubMessage);
|
||||||
SetWorkingStatus(Message, SubMessage);
|
SetWorkingStatus(Message, SubMessage);
|
||||||
}, null);
|
}, null);
|
||||||
|
|||||||
@@ -22,9 +22,8 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Xml.Serialization;
|
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Windows;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
namespace WPinternals
|
namespace WPinternals
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,11 +6,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
using System.Runtime;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet.API
|
namespace MadWizard.WinUSBNet.API
|
||||||
|
|||||||
@@ -5,11 +5,6 @@
|
|||||||
* http://www.opensource.org/licenses/mit-license.php
|
* http://www.opensource.org/licenses/mit-license.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet.API
|
namespace MadWizard.WinUSBNet.API
|
||||||
{
|
{
|
||||||
internal struct DeviceDetails
|
internal struct DeviceDetails
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet.API
|
namespace MadWizard.WinUSBNet.API
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
* See http://www.lvr.com/winusb.htm for more information
|
* See http://www.lvr.com/winusb.htm for more information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
using Microsoft.Win32.SafeHandles;
|
using Microsoft.Win32.SafeHandles;
|
||||||
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet.API
|
namespace MadWizard.WinUSBNet.API
|
||||||
|
|||||||
@@ -9,12 +9,11 @@
|
|||||||
* See http://www.lvr.com/winusb.htm for more information
|
* See http://www.lvr.com/winusb.htm for more information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
using Microsoft.Win32.SafeHandles;
|
using Microsoft.Win32.SafeHandles;
|
||||||
using System.Runtime.InteropServices;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.ComponentModel;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet.API
|
namespace MadWizard.WinUSBNet.API
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
* See http://www.lvr.com/winusb.htm for more information
|
* See http://www.lvr.com/winusb.htm for more information
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
using Microsoft.Win32.SafeHandles;
|
using Microsoft.Win32.SafeHandles;
|
||||||
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Interop;
|
using System.Windows.Interop;
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,6 @@
|
|||||||
* http://www.opensource.org/licenses/mit-license.php
|
* http://www.opensource.org/licenses/mit-license.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,11 +5,6 @@
|
|||||||
* http://www.opensource.org/licenses/mit-license.php
|
* http://www.opensource.org/licenses/mit-license.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,8 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace MadWizard.WinUSBNet
|
namespace MadWizard.WinUSBNet
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user