Created
August 27, 2011 20:21
-
-
Save luislavena/1175831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> | |
void main() | |
{ | |
HANDLE hin, hout, herr; | |
hin = GetStdHandle(STD_INPUT_HANDLE); | |
hout = GetStdHandle(STD_OUTPUT_HANDLE); | |
herr = GetStdHandle(STD_ERROR_HANDLE); | |
printf("In: %i\n", hin); | |
printf("Out: %i\n", hout); | |
printf("Err: %i\n", herr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment