2001-05-15 03:50:25 +00:00
|
|
|
/*
|
|
|
|
* FreeLoader
|
2003-01-19 01:04:01 +00:00
|
|
|
* Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
|
2001-05-15 03:50:25 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2001-05-15 03:50:25 +00:00
|
|
|
*/
|
|
|
|
|
2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2001-05-15 03:50:25 +00:00
|
|
|
|
2009-04-20 20:04:23 +00:00
|
|
|
typedef struct tagDEVVTBL
|
|
|
|
{
|
2015-01-04 23:41:14 +00:00
|
|
|
ARC_CLOSE Close;
|
|
|
|
ARC_GET_FILE_INFORMATION GetFileInformation;
|
|
|
|
ARC_OPEN Open;
|
|
|
|
ARC_READ Read;
|
|
|
|
ARC_SEEK Seek;
|
|
|
|
LPCWSTR ServiceName;
|
2009-04-20 20:04:23 +00:00
|
|
|
} DEVVTBL;
|
2001-11-15 07:48:33 +00:00
|
|
|
|
2019-08-10 11:44:33 +00:00
|
|
|
#define MAX_FDS 60
|
2001-11-15 07:48:33 +00:00
|
|
|
|
2015-01-03 20:45:34 +00:00
|
|
|
ARC_STATUS ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId);
|
2015-01-04 23:41:14 +00:00
|
|
|
ARC_STATUS ArcClose(ULONG FileId);
|
2015-01-03 20:45:34 +00:00
|
|
|
ARC_STATUS ArcRead(ULONG FileId, VOID* Buffer, ULONG N, ULONG* Count);
|
|
|
|
ARC_STATUS ArcSeek(ULONG FileId, LARGE_INTEGER* Position, SEEKMODE SeekMode);
|
2015-01-04 23:41:14 +00:00
|
|
|
ARC_STATUS ArcGetFileInformation(ULONG FileId, FILEINFORMATION* Information);
|
2009-04-20 20:04:23 +00:00
|
|
|
|
2015-01-04 23:41:14 +00:00
|
|
|
VOID FileSystemError(PCSTR ErrorString);
|
2019-08-10 11:44:33 +00:00
|
|
|
ULONG FsOpenFile(PCSTR FileName);
|
2015-01-04 23:41:14 +00:00
|
|
|
ULONG FsGetNumPathParts(PCSTR Path);
|
|
|
|
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path);
|
|
|
|
|
|
|
|
VOID FsRegisterDevice(CHAR* Prefix, const DEVVTBL* FuncTable);
|
|
|
|
LPCWSTR FsGetServiceName(ULONG FileId);
|
|
|
|
VOID FsSetDeviceSpecific(ULONG FileId, VOID* Specific);
|
|
|
|
VOID* FsGetDeviceSpecific(ULONG FileId);
|
|
|
|
ULONG FsGetDeviceId(ULONG FileId);
|
|
|
|
VOID FsInit(VOID);
|