search for: read_async

Displaying 1 result from an estimated 1 matches for "read_async".

2007 Sep 25
2
Using callbacks with ReadFileEx
...include Windows::File include Windows::Handle include Windows::Error include Windows::Synchronize extend Windows::File extend Windows::Handle extend Windows::Error extend Windows::Synchronize class Error < StandardError; end def self.read_async(file, length=nil, offset=0, &block) handle = CreateFile( file, FILE_READ_DATA, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED | FILE_FLAG_NO_BUFFERING, 0 ) if handle == INVAL...