visualprog (JIRA)
2017-03-05 17:09:35 UTC
visualprog created CORE-12892:
---------------------------------
Summary: CreateFile and serial port COM1
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------
Summary: CreateFile and serial port COM1
Key: CORE-12892
URL: https://jira.reactos.org/browse/CORE-12892
Project: Core ReactOS
Issue Type: Bug
Reporter: visualprog
Assignee: Bug Zilla
Attachments: COMTEST.JPG
Hello
How to use CreateFile for open serial port COM1 ?
I created the exe program for testing, see the picture and
GetLastError() return 2, ERROR_FILE_NOT_FOUND
OS version 0.4.3
Thank
PS:COM1 driver will be updated on the Device manager.
-----------------------------------------
hCom = CreateFile(
"COM1",
GENERIC_READ| GENERIC_WRITE,
0, /* comm devices must be opened w/exclusive-access */
NULL, /* no security attrs */
OPEN_EXISTING, /* comm devices must use OPEN_EXISTING */
0, /* not overlapped I/O FILE_FLAG_OVERLAPPED*/
NULL /* hTemplate must be NULL for comm devices */
);
if( hCom==INVALID_HANDLE_VALUE)
eFilerr = GetLastError( );
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira