CreateFile() Using CONOUT$ or CONIN$Last reviewed: December 16, 1996Article ID: Q90088 |
The information in this article applies to:
If you attempt to open a console input or output handle by calling the CreateFile() function with the special CONIN$ or CONOUT$ filenames, this call will return INVALID_HANDLE_VALUE if you do not use the proper sharing attributes for the fdwShareMode parameter in your CreateFile() call. Be sure to use FILE_SHARE_READ when opening "CONIN$" and FILE_SHARE_WRITE when opening "CONOUT$".
|
KBCategory: kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |