If I choose to create a Windows Non-console Application, and implement `printf/cout` in the code, where does the `printf/cout` write? Does it write to the `stdout` buffer? If yes, is there any way to read it from `stdout` and print it to some text file or do a `MessageBox` with the text (just to verify that I have read it correctly)?

**EDIT::** Just to clarify that I do not want to redirect the output anywhere. I would like to know, where does `printf/cout` write? And if it writes to some default buffer, is there a way to read the output, just to verify that I have read the correct output and from the correct buffer. **Please, do not give me solutions to redirect the "stdout"**.