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.

73 lines
1.6 KiB

  1. /***
  2. *conio.h - console and port I/O declarations
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This include file contains the function declarations for
  8. * the MS C V2.03 compatible console and port I/O routines.
  9. *
  10. ****/
  11. #ifndef _INC_CONIO
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if (_MSC_VER <= 600)
  16. #define __cdecl _cdecl
  17. #define __far _far
  18. #endif
  19. /* function prototypes */
  20. #ifndef _WINDOWS
  21. char * __cdecl _cgets(char *);
  22. int __cdecl _cprintf(const char *, ...);
  23. int __cdecl _cputs(const char *);
  24. int __cdecl _cscanf(const char *, ...);
  25. int __cdecl _getch(void);
  26. int __cdecl _getche(void);
  27. #endif
  28. int __cdecl _inp(unsigned);
  29. unsigned __cdecl _inpw(unsigned);
  30. #ifndef _WINDOWS
  31. int __cdecl _kbhit(void);
  32. #endif
  33. int __cdecl _outp(unsigned, int);
  34. unsigned __cdecl _outpw(unsigned, unsigned);
  35. #ifndef _WINDOWS
  36. int __cdecl _putch(int);
  37. int __cdecl _ungetch(int);
  38. #endif
  39. #ifndef __STDC__
  40. /* Non-ANSI names for compatibility */
  41. #ifndef _WINDOWS
  42. char * __cdecl cgets(char *);
  43. int __cdecl cprintf(const char *, ...);
  44. int __cdecl cputs(const char *);
  45. int __cdecl cscanf(const char *, ...);
  46. int __cdecl getch(void);
  47. int __cdecl getche(void);
  48. #endif
  49. int __cdecl inp(unsigned);
  50. unsigned __cdecl inpw(unsigned);
  51. #ifndef _WINDOWS
  52. int __cdecl kbhit(void);
  53. #endif
  54. int __cdecl outp(unsigned, int);
  55. unsigned __cdecl outpw(unsigned, unsigned);
  56. #ifndef _WINDOWS
  57. int __cdecl putch(int);
  58. int __cdecl ungetch(int);
  59. #endif
  60. #endif
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #define _INC_CONIO
  65. #endif