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.

129 lines
1.9 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 RgCloseFile
  68. VOID
  69. INTERNAL
  70. RgCloseFile(
  71. HFILE hFile
  72. );
  73. #endif
  74. #ifndef RgDeleteFile
  75. BOOL
  76. INTERNAL
  77. RgDeleteFile(
  78. LPCSTR lpFileName
  79. );
  80. #endif
  81. #ifndef RgRenameFile
  82. BOOL
  83. INTERNAL
  84. RgRenameFile(
  85. LPCSTR lpExistingFileName,
  86. LPCSTR lpNewFileName
  87. );
  88. #endif
  89. #define FILE_ATTRIBUTE_NONE 0
  90. #ifndef RgGetFileAttributes
  91. DWORD
  92. INTERNAL
  93. RgGetFileAttributes(
  94. LPCSTR lpFileName
  95. );
  96. #endif
  97. #ifndef RgSetFileAttributes
  98. BOOL
  99. INTERNAL
  100. RgSetFileAttributes(
  101. LPCSTR lpFileName,
  102. UINT FileAttributes
  103. );
  104. #endif
  105. #ifndef RgGetFileSize
  106. DWORD
  107. INTERNAL
  108. RgGetFileSize(
  109. HFILE hFile
  110. );
  111. #endif
  112. #endif // _REGFSIO_