Windows equivalent to "/dev/stdin"? Windows equivalent to "/dev/stdin"? windows windows

Windows equivalent to "/dev/stdin"?


To the best of my knowledge there is no equivalent of /dev/stdin. However, if you really needed to you could create your own named pipe (CreateNamedPipe) and pass the name to the C++ library, using a separate thread to feed the input from stdin into the named pipe.


The equivalent pseudo files on Windows are conIN$ and conOUT$.


I may be misinterpreting your question - you know about cin and stdin, right? If you need a real live winapi handle for ReadFile or whatever, use GetStdHandle(STD_INPUT_HANDLE)