Source code of Windows XP (NT5)
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.

162 lines
3.7 KiB

  1. /***
  2. *io.h - declarations for low-level file handling and I/O functions
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file contains the function declarations for the low-level
  8. * file handling and I/O functions.
  9. *
  10. ****/
  11. #ifndef _INC_IO
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if (_MSC_VER <= 600)
  16. #define __cdecl _cdecl
  17. #define __far _far
  18. #endif
  19. #ifdef _WINDOWS
  20. #ifndef _WINDLL
  21. #ifndef _WINFO_DEFINED
  22. /* interface version number */
  23. #define _QWINVER 0
  24. /* max number of windows */
  25. #define _WFILE 20
  26. /* values for windows screen buffer size */
  27. #define _WINBUFINF 0
  28. #define _WINBUFDEF -1
  29. /* size/move settings */
  30. #define _WINSIZEMIN 1
  31. #define _WINSIZEMAX 2
  32. #define _WINSIZERESTORE 3
  33. #define _WINSIZECHAR 4
  34. /* size/move query types */
  35. #define _WINMAXREQ 100
  36. #define _WINCURRREQ 101
  37. /* values for closing window */
  38. #define _WINPERSIST 1
  39. #define _WINNOPERSIST 0
  40. /* pseudo file handle for frame window */
  41. #define _WINFRAMEHAND -1
  42. /* menu items */
  43. #define _WINSTATBAR 1
  44. #define _WINTILE 2
  45. #define _WINCASCADE 3
  46. #define _WINARRANGE 4
  47. /* quickwin exit options */
  48. #define _WINEXITPROMPT 1
  49. #define _WINEXITNOPERSIST 2
  50. #define _WINEXITPERSIST 3
  51. /* open structure */
  52. #pragma pack(2)
  53. struct _wopeninfo {
  54. unsigned int _version;
  55. const char __far * _title;
  56. long _wbufsize;
  57. };
  58. #pragma pack()
  59. /* size/move structure */
  60. struct _wsizeinfo {
  61. unsigned int _version;
  62. unsigned int _type;
  63. unsigned int _x;
  64. unsigned int _y;
  65. unsigned int _h;
  66. unsigned int _w;
  67. };
  68. #define _WINFO_DEFINED
  69. #endif
  70. #endif
  71. #endif
  72. /* function prototypes */
  73. int __cdecl _access(const char *, int);
  74. int __cdecl _chmod(const char *, int);
  75. int __cdecl _chsize(int, long);
  76. int __cdecl _close(int);
  77. int __cdecl _commit(int);
  78. int __cdecl _creat(const char *, int);
  79. int __cdecl _dup(int);
  80. int __cdecl _dup2(int, int);
  81. int __cdecl _eof(int);
  82. long __cdecl _filelength(int);
  83. int __cdecl _isatty(int);
  84. int __cdecl _locking(int, int, long);
  85. long __cdecl _lseek(int, long, int);
  86. char * __cdecl _mktemp(char *);
  87. int __cdecl _open(const char *, int, ...);
  88. int __cdecl _read(int, void *, unsigned int);
  89. int __cdecl remove(const char *);
  90. int __cdecl rename(const char *, const char *);
  91. int __cdecl _setmode(int, int);
  92. int __cdecl _sopen(const char *, int, int, ...);
  93. long __cdecl _tell(int);
  94. int __cdecl _umask(int);
  95. int __cdecl _unlink(const char *);
  96. int __cdecl _write(int, const void *, unsigned int);
  97. #ifdef _WINDOWS
  98. #ifndef _WINDLL
  99. int __cdecl _wabout(char *);
  100. int __cdecl _wclose(int, int);
  101. int __cdecl _wgetexit(void);
  102. int __cdecl _wgetfocus(void);
  103. long __cdecl _wgetscreenbuf(int);
  104. int __cdecl _wgetsize(int, int, struct _wsizeinfo *);
  105. int __cdecl _wmenuclick(int);
  106. int __cdecl _wopen(struct _wopeninfo *, struct _wsizeinfo *, int);
  107. int __cdecl _wsetexit(int);
  108. int __cdecl _wsetfocus(int);
  109. int __cdecl _wsetscreenbuf(int, long);
  110. int __cdecl _wsetsize(int, struct _wsizeinfo *);
  111. void __cdecl _wyield(void);
  112. #endif
  113. #endif
  114. #ifndef __STDC__
  115. /* Non-ANSI names for compatibility */
  116. int __cdecl access(const char *, int);
  117. int __cdecl chmod(const char *, int);
  118. int __cdecl chsize(int, long);
  119. int __cdecl close(int);
  120. int __cdecl creat(const char *, int);
  121. int __cdecl dup(int);
  122. int __cdecl dup2(int, int);
  123. int __cdecl eof(int);
  124. long __cdecl filelength(int);
  125. int __cdecl isatty(int);
  126. int __cdecl locking(int, int, long);
  127. long __cdecl lseek(int, long, int);
  128. char * __cdecl mktemp(char *);
  129. int __cdecl open(const char *, int, ...);
  130. int __cdecl read(int, void *, unsigned int);
  131. int __cdecl setmode(int, int);
  132. int __cdecl sopen(const char *, int, int, ...);
  133. long __cdecl tell(int);
  134. int __cdecl umask(int);
  135. int __cdecl unlink(const char *);
  136. int __cdecl write(int, const void *, unsigned int);
  137. #endif
  138. #ifdef __cplusplus
  139. }
  140. #endif
  141. #define _INC_IO
  142. #endif