Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created August 27, 2011 20:21
Show Gist options
  • Save luislavena/1175831 to your computer and use it in GitHub Desktop.
Save luislavena/1175831 to your computer and use it in GitHub Desktop.
#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