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

ID: Q163132


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT versions 3.51, 4.0
    • Microsoft Windows 95
    • 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 kbWinOS2000 kbDSupport kbComPort kbSerial
Version : winnt:3.51,4.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: January 6, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.