Console-Docs icon indicating copy to clipboard operation
Console-Docs copied to clipboard

Show some samples with `CreateFile` over `GetStdHandle`

Open miniksa opened this issue 3 years ago • 1 comments

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/

miniksa avatar Aug 30 '21 16:08 miniksa

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

pizzaz93 avatar May 03 '22 23:05 pizzaz93