code_junkie

What does CreateFile(“CONIN$” ..) do?

Nov 13th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. hin = GetStdHandle(STD_INPUT_HANDLE);
  2. ....
  3. r = ReadFile(hin, .....);
  4.  
  5. hin=CreateFile("CONIN$",GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ,0,OPEN_EXISTING,0,0);
  6. ....
  7. r = ReadFile( hin ...... )
Add Comment
Please, Sign In to add comment