INFO: SetupComm Only Takes Even Number Bytes Buffer Size
Article ID: 163132
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows 98 Standard Edition
- Microsoft Windows Millennium Edition
- Microsoft Windows NT 3.51 Service Pack 5
- Microsoft Windows 2000 Standard Edition
- Microsoft Windows XP Professional
This article was previously published under Q163132
SUMMARY
In Microsoft Windows NT, Windows 2000, Windows XP the size of the input and output buffers for the SetupComm() function must be specified in even numbers of bytes. The API returns error 13 (ERROR_INVALID_DATA)if this condition is not met. This applies to both Windows NT versions 3.51 and 4.0, Windows 2000, and Windows XP.
In MIcrosoft Windows 95, WIndows 98, and Windows Millennium Edition (Me) there are no problems associated with the use of odd numbers.
Keywords: kbapi kbinfo kbkernbase kbserial KB163132