C# 클래스 LazyCopy.DriverClientLibrary.NotificationsMonitor

파일 보기 프로젝트 열기: aleksk/LazyCopy 1 사용 예제들

공개 메소드들

메소드 설명
NotificationsMonitor ( CancellationToken token, int bufferSize, object>.Func handler, IntPtr filterPortHandle, IntPtr completionPortHandle ) : System

Initializes a new instance of the NotificationsMonitor class.

The real buffer allocated will be bigger, than the bufferSize specified, because every notification should also contain DriverNotificationHeader structure. So we add it to the buffer to make sure it'll be large enough to store both header and data.

비공개 메소드들

메소드 설명
CancelIo ( NativeOverlapped overlapped ) : void

Cancels the pending I/O on the filter port.

DoWork ( ) : void
GetNextNotification ( ResizableBuffer resizableBuffer, ManualResetEvent resetEvent, NativeOverlapped overlapped ) : bool
ProcessNotification ( ResizableBuffer resizableBuffer ) : void

메소드 상세

NotificationsMonitor() 공개 메소드

Initializes a new instance of the NotificationsMonitor class.
The real buffer allocated will be bigger, than the bufferSize specified, because every notification should also contain DriverNotificationHeader structure. So we add it to the buffer to make sure it'll be large enough to store both header and data.
is invalid. /// is . /// -or- /// or are invalid pointers. ///
public NotificationsMonitor ( CancellationToken token, int bufferSize, object>.Func handler, IntPtr filterPortHandle, IntPtr completionPortHandle ) : System
token System.Threading.CancellationToken Cancellation token.
bufferSize int The desired size of the buffer used to store notification structures received from the driver into.
handler object>.Func User-defined notification handler.
filterPortHandle System.IntPtr Driver port handle.
completionPortHandle System.IntPtr Driver I/O completion port handle.
리턴 System