INFO: CreateFile() Using CONOUT$ or CONIN$


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

ID do Artigo: 90088 - Última Revisão: 21 de nov de 2006 - Revisão: 1