Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
573 B

  1. #include <assert.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <nt.h>
  5. #include <ntrtl.h>
  6. #include <nturtl.h>
  7. #include <windows.h>
  8. int
  9. main(
  10. int argc,
  11. char *argv[],
  12. char *envp[]
  13. )
  14. {
  15. int i=0;
  16. SMALL_RECT Window;
  17. Window.Left = 0;
  18. Window.Top = 0;
  19. Window.Right = 10;
  20. Window.Bottom = 5;
  21. SetConsoleWindowInfo(GetStdHandle(STD_OUTPUT_HANDLE),
  22. TRUE,
  23. &Window
  24. );
  25. while ( TRUE ) {
  26. printf("%d\n",++i);
  27. }
  28. }