C# 클래스 LazyCopy.DriverClient.LazyCopyDriverClient

Client for the LazyCopy kernel-mode driver.
상속: DriverClientBase
파일 보기 프로젝트 열기: aleksk/LazyCopy 1 사용 예제들

공개 메소드들

메소드 설명
ClearWatchPaths ( ) : void

Clears the list of paths to watch.

LazyCopyDriverClient ( ) : System

Initializes a new instance of the LazyCopyDriverClient class.

LazyCopyDriverClient ( string portName ) : System

Initializes a new instance of the LazyCopyDriverClient class.

ReadConfigurationFromRegistry ( ) : void

Tells driver to re-read the configuration parameters from the Registry.

SetOperationStatus ( OperationMode mode ) : void

Changes the driver's operation mode.

SetReportRate ( int reportRate ) : void

Sets the new report rate value.

SetWatchPaths ( string paths ) : void

Sets the list of paths the driver should watch.

보호된 메소드들

메소드 설명
NotificationsHandler ( IDriverNotification driverNotification ) : object

Handles notifications received from the driver.

비공개 메소드들

메소드 설명
ConvertToDevicePath ( string path ) : byte[]

Replaces the path root with the according device name and converts it to the Unicode byte array.

GetDriverVersion ( ) : DriverVersion
GetWatchPathsData ( IEnumerable paths ) : byte[]

Converts the paths list into a byte array containing the amount of paths in the paths as a first int, and the unicode-converted list of paths after it.

메소드 상세

ClearWatchPaths() 공개 메소드

Clears the list of paths to watch.
Client is not connected to the driver.
public ClearWatchPaths ( ) : void
리턴 void

LazyCopyDriverClient() 공개 메소드

Initializes a new instance of the LazyCopyDriverClient class.
public LazyCopyDriverClient ( ) : System
리턴 System

LazyCopyDriverClient() 공개 메소드

Initializes a new instance of the LazyCopyDriverClient class.
public LazyCopyDriverClient ( string portName ) : System
portName string Name of the port.
리턴 System

NotificationsHandler() 보호된 메소드

Handles notifications received from the driver.
is . No handler is found for the given.
protected NotificationsHandler ( IDriverNotification driverNotification ) : object
driverNotification IDriverNotification Driver notification.
리턴 object

ReadConfigurationFromRegistry() 공개 메소드

Tells driver to re-read the configuration parameters from the Registry.
Client is not connected to the driver.
public ReadConfigurationFromRegistry ( ) : void
리턴 void

SetOperationStatus() 공개 메소드

Changes the driver's operation mode.
Client is not connected to the driver.
public SetOperationStatus ( OperationMode mode ) : void
mode OperationMode New value to be set.
리턴 void

SetReportRate() 공개 메소드

Sets the new report rate value.
is invalid.
public SetReportRate ( int reportRate ) : void
reportRate int The report rate.
리턴 void

SetWatchPaths() 공개 메소드

Sets the list of paths the driver should watch.
Client is not connected to the driver.
public SetWatchPaths ( string paths ) : void
paths string List of paths to watch and their report rates. Should be in DOS name format, for example: \Device\HarddiskVolume1\Folder\
리턴 void