Microsoft KB Archive/163132

{|
 * width="100%"|

INFO: SetupComm Only Takes Even Number Bytes Buffer Size in NT

 * }

Q163132

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), used with:
 * the operating system: Microsoft Windows NT, versions 3.51, 4.0
 * Microsoft Windows 95
 * the operating system: Microsoft Windows 2000

-

SUMMARY
In Windows NT, 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.

In Windows 95, there are no problems associated with the use of odd numbers.

Additional query words:

Keywords : kbAPI kbKernBase kbOSWin2000 kbDSupport kbComPort kbSerial

Issue type : kbinfo

Technology : kbAudDeveloper kbWin32sSearch kbWin32API