The information in this article applies to:
SUMMARY
CreateFile() can be used to get a handle to a serial port. The "Win32
Programmer's Reference" entry for "CreateFile()" mentions that the share
mode must be 0, the create parameter must be OPEN_EXISTING, and the
template must be NULL.
is returned if you use "COM10" or greater. If the name of the port is \\.\COM10, the correct way to specify the serial port in a call to CreateFile() is as follows:
NOTES: This syntax also works for ports COM1 through COM9. Certain boards
will let you choose the port names yourself. This syntax works for those
names as well.
Additional query words: 3.10 3.50
Keywords : kbAPI kbCommPort kbKernBase kbWinOS2000 kbDSupport kbGrpKernBase kbSerial |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |