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.

138 lines
2.0 KiB

  1. //
  2. // REGFSIO.H
  3. //
  4. // Copyright (C) Microsoft Corporation, 1995
  5. //
  6. // Prototypes for file system I/O. Many of these prototypes may not be used
  7. // if a direct mapping is available in the target environment.
  8. //
  9. #ifndef _REGFSIO_
  10. #define _REGFSIO_
  11. // Consistent with both 16-bit and 32-bit windows.h.
  12. #ifndef HFILE_ERROR
  13. typedef int HFILE;
  14. #define HFILE_ERROR ((HFILE)-1)
  15. #endif
  16. // Special value used for the VMM version when we haven't fully initialized yet
  17. // but are reading SYSTEM.DAT from the XMS cache.
  18. #define HFILE_MEMORY ((HFILE)-2)
  19. #ifndef RgCreateFile
  20. HFILE
  21. INTERNAL
  22. RgCreateFile(
  23. LPCSTR lpFileName
  24. );
  25. #endif
  26. #ifndef RgOpenFile
  27. HFILE
  28. INTERNAL
  29. RgOpenFile(
  30. LPCSTR lpFileName,
  31. int Mode
  32. );
  33. #endif
  34. #ifndef RgCreateTempFile
  35. HFILE
  36. INTERNAL
  37. RgCreateTempFile(
  38. LPSTR lpFileName
  39. );
  40. #endif
  41. #ifndef RgReadFile
  42. BOOL
  43. INTERNAL
  44. RgReadFile(
  45. HFILE hFile,
  46. LPVOID lpBuffer,
  47. UINT ByteCount
  48. );
  49. #endif
  50. #ifndef RgWriteFile
  51. BOOL
  52. INTERNAL
  53. RgWriteFile(
  54. HFILE hFile,
  55. LPVOID lpBuffer,
  56. UINT ByteCount
  57. );
  58. #endif
  59. #ifndef RgSeekFile
  60. BOOL
  61. INTERNAL
  62. RgSeekFile(
  63. HFILE hFile,
  64. LONG FileOffset
  65. );
  66. #endif
  67. #ifndef RgCommitFile
  68. BOOL
  69. INTERNAL
  70. RgCommitFile(
  71. HFILE hFile
  72. );
  73. #endif
  74. #ifndef RgCloseFile
  75. VOID
  76. INTERNAL
  77. RgCloseFile(
  78. HFILE hFile
  79. );
  80. #endif
  81. #ifndef RgDeleteFile
  82. BOOL
  83. INTERNAL
  84. RgDeleteFile(
  85. LPCSTR lpFileName
  86. );
  87. #endif
  88. #ifndef RgRenameFile
  89. BOOL
  90. INTERNAL
  91. RgRenameFile(
  92. LPCSTR lpExistingFileName,
  93. LPCSTR lpNewFileName
  94. );
  95. #endif
  96. #define FILE_ATTRIBUTE_NONE 0
  97. #ifndef RgGetFileAttributes
  98. DWORD
  99. INTERNAL
  100. RgGetFileAttributes(
  101. LPCSTR lpFileName
  102. );
  103. #endif
  104. #ifndef RgSetFileAttributes
  105. BOOL
  106. INTERNAL
  107. RgSetFileAttributes(
  108. LPCSTR lpFileName,
  109. UINT FileAttributes
  110. );
  111. #endif
  112. #ifndef RgGetFileSize
  113. DWORD
  114. INTERNAL
  115. RgGetFileSize(
  116. HFILE hFile
  117. );
  118. #endif
  119. #endif // _REGFSIO_