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

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

Comentários