Win32 comport extensions
spencer at spencerdoidge.com
Sun Feb 3 01:45:54 EST 2002
In the win32 extensions script win32comport_demo.py, line 102 reads:
rc, data = ReadFile(self.handle, comstat.cbInQue, overlapped)
I don't see the five arguments I'm used to associating with Win32 API's
ReadFile(). The nBytesToRead and lpNumBytesRead args are not there.
I want to use nBytesToRead and the COMMTIMEOUTS parameters to receive
packets, as coded at line 194 of
In other words, I want my receiving routine to use the COMMTIMEOUTS,
nBytesToRead, and lpNumBytesRead to determine when ReadFile() passes the
hOverlapped signal (osReader.hEvent READ2). Is there a way to do this with
these win32 extensions?
Do I need to create my own extension to accomplish this result?
More information about the Python-list