INFO: SetupComm Only Takes Even Number Bytes Buffer Size (163132)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
- the operating system: Microsoft Windows Millennium Edition
- the operating system: Microsoft Windows NT 3.51
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows XP
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.
Modification Type: | Minor | Last Reviewed: | 9/27/2004 |
---|
Keywords: | kbAPI kbinfo kbKernBase kbSerial KB163132 |
---|
|