>    I am trying to understand synaser.pas.  In its 
> tBlockSerial.GetPortAddr routine, the Windows EscapeCommFunction
> procedure is called with 10 as its 'dwfunc' argument.  The documented
> possibilities for this argument (search Windows.pas for "SETXOFF"; or
> search for EscapeCommFunction on the Web) range only 1 to 9.  What
> does 10 do?

It is undocumented call. ;-) And is used on Windows 9x only!

Problem is: On windows9x system reporting EV_TXEMPTY when last byte 
is sent to serial port hardware. It is too soon, because hardware 
need some time to transmit bytes in hardware buffer into wires. On 
WindowsNT based systems it is OK.

So, on Win9x I need tthis little hack. I can ask serial port hardware 
 for TXEMPTY flag myself, but I need to know used I/O port number. 
But how to get I/.O port number? By undocumented call of 
EscapeCommFunction, of course! ;-)



-- 
Lukas Gebauer.

http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
http://geoget.ararat.cz/ - Geocaching solution


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to