on Dec 12th, 2012, 8:31pm, manxman wrote:| From the link you give I could presumably increase the buffer size |
|
Yes, the SetupComm API function is the way to try to increase it. The MSDN description doesn't make clear whether a 'success' return from the function (i.e. a non-zero value) means that the requested buffer size was accepted, but if in doubt you can always call the GetCommProperties API which returns the current buffer size in the dwCurrentRxQueue member. If I try to double the buffer size from the default 4096 bytes to 8192 bytes, here it succeeds:
Code: SYS "SetupComm", @hfile%(channel%), 8192, 0
Richard.