CreateFile() Using CONOUT$ or CONIN$

ID: Q90088

3.10 3.50 3.51 4.00 | 4.00

WINDOWS NT          | WINDOWS
kbprg

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 KBSubcategory: BseFileio Additional reference words: 3.10 3.50 3.51 4.00 95

Keywords          : kbAPI kbKernBase kbGrpKernBase 
Version           : 3.10 3.50 3.51 4.00 | 4.00
Platform          : NT WINDOWS

Last Reviewed: December 18, 1996