C# Class LazyCopy.DriverClient.LazyCopyDriverClient

Client for the LazyCopy kernel-mode driver.
Inheritance: DriverClientBase
显示文件 Open project: aleksk/LazyCopy Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
NotificationsHandler ( IDriverNotification driverNotification ) : object

Handles notifications received from the driver.

Private Methods

Method Description
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.

Method Details

ClearWatchPaths() public method

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

LazyCopyDriverClient() public method

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

LazyCopyDriverClient() public method

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

NotificationsHandler() protected method

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

ReadConfigurationFromRegistry() public method

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

SetOperationStatus() public method

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.
return void

SetReportRate() public method

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

SetWatchPaths() public method

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\
return void