Knowledge Base

INFO: SetupComm Only Takes Even Number Bytes Buffer Size

Article ID: 163132

Article Last Modified on 11/21/2006


APPLIES TO


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