- return (PFILE)0;
-}
-
-VOID FsCloseFile(PFILE FileHandle)
-{
- ULONG FileId = (ULONG)FileHandle;
-
- //
- // Close the handle. Do not check for error,
- // this function is supposed to always succeed.
- //
- ArcClose(FileId);
-}
-
-/*
- * ReadFile()
- * returns number of bytes read or EOF
- */
-BOOLEAN FsReadFile(PFILE FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Buffer)
-{
- ULONG FileId = (ULONG)FileHandle;
-
- //
- // Read the file
- //
- return (ArcRead(FileId, Buffer, BytesToRead, BytesRead) == ESUCCESS);
-}
-
-BOOLEAN FsGetFileInformation(PFILE FileHandle, FILEINFORMATION* Information)
-{
- ULONG FileId = (ULONG)FileHandle;
-
- //
- // Get file information
- //
- return (ArcGetFileInformation(FileId, Information) == ESUCCESS);
-}
-
-ULONG FsGetFileSize(PFILE FileHandle)
-{
- ULONG FileId = (ULONG)FileHandle;
- FILEINFORMATION Information;
- ARC_STATUS Status;
-
- //
- // Query file informations
- //
- Status = ArcGetFileInformation(FileId, &Information);
-
- //
- // Check for error
- //
- if (Status != ESUCCESS || Information.EndingAddress.HighPart != 0)