C# Класс LazyCopy.DriverClient.LazyCopyDriverClient

Client for the LazyCopy kernel-mode driver.
Наследование: DriverClientBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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