Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

INFO: CreateFile() Using CONOUT$ or CONIN$


Summary

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$".

↑ Back to the top


Keywords: kbbillprodsweep, kbapi, kbconsole, kbdsupport, kbinfo, kbkernbase, kb

↑ Back to the top

Article Info
Article ID : 90088
Revision : 3
Created on : 4/20/2018
Published on : 4/20/2018
Exists online : False
Views : 829