C# 클래스 SharpBoot.DriveAccess

상속: IDisposable
파일 보기 프로젝트 열기: zdimension/SharpBoot

공개 프로퍼티들

프로퍼티 타입 설명
driveStream System.IO.FileStream

보호된 프로퍼티들

프로퍼티 타입 설명
driveGeometry DriveGeometry
driveHandle SafeFileHandle

공개 메소드들

메소드 설명
Dispose ( ) : void
DriveAccess ( string Path ) : System
GetAllDrives ( string DeviceName ) : List

Returns a list of all Drives on the mahine

ReadSectors ( System.UInt64 startSector, System.UInt64 sectorCount, byte Buffer, int offset ) : int

Reads a number of sectors from the opened drive

WriteSectors ( System.UInt64 startSector, System.UInt64 sectorCount, byte Buffer, int offset ) : void

Writes a number of sectors on the opened drive (Untested!!!)

비공개 메소드들

메소드 설명
CreateFile ( string lpFileName, UInt32 dwDesiredAccess, UInt32 dwShareMode, IntPtr pSecurityAttributes, UInt32 dwCreationDisposition, UInt32 dwFlagsAndAttributes, IntPtr hTemplateFile ) : 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

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DriveAccess() 공개 메소드

public DriveAccess ( string Path ) : System
Path string
리턴 System

GetAllDrives() 공개 정적인 메소드

Returns a list of all Drives on the mahine
public static GetAllDrives ( string DeviceName ) : List
DeviceName string Can be null
리턴 List

ReadSectors() 공개 메소드

Reads a number of sectors from the opened drive
public ReadSectors ( System.UInt64 startSector, System.UInt64 sectorCount, byte Buffer, int offset ) : int
startSector System.UInt64 Address of the start sector
sectorCount System.UInt64 Number of sectors to read
Buffer byte The buffer to put data in
offset int Offset of data ub the buffer
리턴 int

WriteSectors() 공개 메소드

Writes a number of sectors on the opened drive (Untested!!!)
public WriteSectors ( System.UInt64 startSector, System.UInt64 sectorCount, byte Buffer, int offset ) : void
startSector System.UInt64 Address of the start sector
sectorCount System.UInt64 Number of sectors to write
Buffer byte The buffer the data is taken from
offset int Offset of data in the buffer
리턴 void

프로퍼티 상세

driveGeometry 보호되어 있는 프로퍼티

protected DriveGeometry driveGeometry
리턴 DriveGeometry

driveHandle 보호되어 있는 프로퍼티

protected SafeFileHandle driveHandle
리턴 SafeFileHandle

driveStream 공개적으로 프로퍼티

public FileStream,System.IO driveStream
리턴 System.IO.FileStream