C# Class SharpBoot.Utils

Afficher le fichier Open project: zdimension/SharpBoot

Méthodes publiques

Свойство Type Description
CurrentRandom System.Random

Méthodes publiques

Méthode Description
AddRecommended ( this arr, int recIndex ) : List
AddRecommended ( this arr, int recIndex ) : string[]
CRC32 ( byte ct ) : string
CRC32 ( string ct ) : string
DownloadWithoutCache ( string url, bool redl = true ) : string
DrawFilledRectangle ( int w, int h, Color c ) : Bitmap
FileHash ( string fileName, string hash ) : string
FileMD5 ( string fileName ) : string
FileSHA1 ( string fileName ) : string
FileSHA256 ( string fileName ) : string
FileSHA384 ( string fileName ) : string
FileSHA512 ( string fileName ) : string
FormatDrive ( string driveLetter, string fileSystem = "NTFS", bool quickFormat = true, int clusterSize = 8192, string label = "SHARPBOOT", bool enableCompression = false ) : uint
FormatEx ( this s ) : string
GetFlag ( string twocode ) : Image
GetPhysicalPath ( string letter ) : string
InstallMBR ( string l, byte theMbr ) : void
IsExternalDisk ( string driveLetter ) : bool
MakeURLRandom ( string url ) : string
RandomString ( int Size ) : string
RemoveRecommended ( this s ) : string
ToByteArray ( this img ) : byte[]
Wrap ( this text, int maxLength ) : List

Private Methods

Méthode Description
CreateFile ( [ fileName, uint fileAccess, uint fileShare, IntPtr securityAttributes, uint creationDisposition, uint flags, IntPtr template ) : SafeFileHandle
DeviceIoControl ( IntPtr hDevice, uint dwIoControlCode, IntPtr lpInBuffer, uint nInBufferSize, IntPtr lpOutBuffer, uint nOutBufferSize, uint &lpBytesReturned, IntPtr lpOverlapped ) : bool
QueryDosDevice ( string DeviceName, IntPtr TargetPath, UInt32 ucchMax ) : UInt32
SetWindowTheme ( IntPtr hwnd, string pszSubAppName, string pszSubIdList ) : int

Method Details

AddRecommended() public static méthode

public static AddRecommended ( this arr, int recIndex ) : List
arr this
recIndex int
Résultat List

AddRecommended() public static méthode

public static AddRecommended ( this arr, int recIndex ) : string[]
arr this
recIndex int
Résultat string[]

CRC32() public static méthode

public static CRC32 ( byte ct ) : string
ct byte
Résultat string

CRC32() public static méthode

public static CRC32 ( string ct ) : string
ct string
Résultat string

DownloadWithoutCache() public static méthode

public static DownloadWithoutCache ( string url, bool redl = true ) : string
url string
redl bool
Résultat string

DrawFilledRectangle() public static méthode

public static DrawFilledRectangle ( int w, int h, Color c ) : Bitmap
w int
h int
c Color
Résultat System.Drawing.Bitmap

FileHash() public static méthode

public static FileHash ( string fileName, string hash ) : string
fileName string
hash string
Résultat string

FileMD5() public static méthode

public static FileMD5 ( string fileName ) : string
fileName string
Résultat string

FileSHA1() public static méthode

public static FileSHA1 ( string fileName ) : string
fileName string
Résultat string

FileSHA256() public static méthode

public static FileSHA256 ( string fileName ) : string
fileName string
Résultat string

FileSHA384() public static méthode

public static FileSHA384 ( string fileName ) : string
fileName string
Résultat string

FileSHA512() public static méthode

public static FileSHA512 ( string fileName ) : string
fileName string
Résultat string

FormatDrive() public static méthode

public static FormatDrive ( string driveLetter, string fileSystem = "NTFS", bool quickFormat = true, int clusterSize = 8192, string label = "SHARPBOOT", bool enableCompression = false ) : uint
driveLetter string
fileSystem string
quickFormat bool
clusterSize int
label string
enableCompression bool
Résultat uint

FormatEx() public static méthode

public static FormatEx ( this s ) : string
s this
Résultat string

GetFlag() public static méthode

public static GetFlag ( string twocode ) : Image
twocode string
Résultat Image

GetPhysicalPath() public static méthode

public static GetPhysicalPath ( string letter ) : string
letter string
Résultat string

InstallMBR() public static méthode

public static InstallMBR ( string l, byte theMbr ) : void
l string
theMbr byte
Résultat void

IsExternalDisk() public static méthode

public static IsExternalDisk ( string driveLetter ) : bool
driveLetter string
Résultat bool

MakeURLRandom() public static méthode

public static MakeURLRandom ( string url ) : string
url string
Résultat string

RandomString() public static méthode

public static RandomString ( int Size ) : string
Size int
Résultat string

RemoveRecommended() public static méthode

public static RemoveRecommended ( this s ) : string
s this
Résultat string

ToByteArray() public static méthode

public static ToByteArray ( this img ) : byte[]
img this
Résultat byte[]

Wrap() public static méthode

public static Wrap ( this text, int maxLength ) : List
text this
maxLength int
Résultat List

Property Details

CurrentRandom public_oe static_oe property

public static Random,System CurrentRandom
Résultat System.Random