Console-Docs
Console-Docs copied to clipboard
Show some samples with `CreateFile` over `GetStdHandle`
Originally from #93
I'm pretty sure we never show examples of using CreateFile with the CONIN$
and CONOUT$
special names to gain access to the underlying console (no matter what is in the standard handles). Or if we do... I don't think we go into much detail.
This represents documenting that fact/
Adding below all the locations I found where CONIN$
and CONOUT$
are documented after running a bing search:
https://docs.microsoft.com/en-us/windows/console/console-handles https://docs.microsoft.com/en-us/windows/console/setstdhandle https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea https://docs.microsoft.com/en-us/windows/console/getstdhandle https://docs.microsoft.com/en-us/windows/console/console-input-buffer
The solution can be to expand one of those locations with a code sample and then link to that location whenever the terms are mentioned elsewhere.
Github searches for the terms: https://github.com/MicrosoftDocs/Console-Docs/search?q=CONIN https://github.com/MicrosoftDocs/Console-Docs/search?q=CONOUT