30#define TAG_DEVICE_NAME 'NDsF'
31#define TAG_DEVICE 'vDsF'
85 if (*
p ==
'(' && *(
p + 1) ==
')')
99 if (*
p ==
'(' && *(
p + 1) ==
')')
110 DeviceOpenMode = OpenMode;
121 if (
pDevice->ReferenceCount == 0)
124 for (DeviceId = 0; DeviceId <
MAX_FDS; DeviceId++)
151 if (!
FileData[DeviceId].FileFuncTable)
154 if (!
FileData[DeviceId].FileFuncTable)
157 if (!
FileData[DeviceId].FileFuncTable)
159 if (!
FileData[DeviceId].FileFuncTable)
162#if defined(_M_IX86) || defined(_M_AMD64)
164 if (!
FileData[DeviceId].FileFuncTable)
168 if (!
FileData[DeviceId].FileFuncTable)
171 pDevice->FuncTable->Close(DeviceId);
263 ERR(
"%s\n", ErrorString);
296 cchPathLen =
min(
sizeof(FullPath)/
sizeof(
CHAR),
strlen(FullPath));
297 if (cchPathLen >=
sizeof(FullPath)/
sizeof(
CHAR))
301 cchPathLen > 0 && (FullPath[cchPathLen-1] !=
'\\' && FullPath[cchPathLen-1] !=
'/'))
309 cchPathLen > 0 && (FullPath[cchPathLen-1] ==
'\\' || FullPath[cchPathLen-1] ==
'/'))
322 return ArcOpen(FullPath, OpenMode, FileId);
347 TRACE(
"FsGetNumPathParts() Path = %s NumPathParts = %d\n",
Path,
num);
382 TRACE(
"FsGetFirstNameFromPath() Path = %s FirstName = %s\n",
Path,
Buffer);
PRTL_UNICODE_STRING_BUFFER Path
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
NTSTATUS FatMount(_In_ ULONG DeviceId, _In_ ULONG Unknown, _Out_ PBL_FILE_ENTRY *FileEntry)
#define DBG_DEFAULT_CHANNEL(ch)
const DEVVTBL * BtrFsMount(ULONG DeviceId)
const DEVVTBL * Ext2Mount(ULONG DeviceId)
const DEVVTBL * NtfsMount(ULONG DeviceId)
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
VOID UiMessageBox(_In_ PCSTR Format,...)
ARC_STATUS ArcClose(ULONG FileId)
ARC_STATUS ArcGetFileInformation(ULONG FileId, FILEINFORMATION *Information)
ARC_STATUS ArcSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode)
ARC_STATUS ArcOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
static LIST_ENTRY DeviceListHead
ULONG FsGetNumPathParts(PCSTR Path)
ARC_STATUS FsOpenFile(IN PCSTR FileName, IN PCSTR DefaultPath OPTIONAL, IN OPENMODE OpenMode, OUT PULONG FileId)
VOID FileSystemError(PCSTR ErrorString)
struct tagFILEDATA FILEDATA
ULONG FsGetDeviceId(ULONG FileId)
PCWSTR FsGetServiceName(ULONG FileId)
VOID * FsGetDeviceSpecific(ULONG FileId)
static FILEDATA FileData[MAX_FDS]
ARC_STATUS ArcRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
VOID FsSetDeviceSpecific(ULONG FileId, VOID *Specific)
VOID FsRegisterDevice(CHAR *Prefix, const DEVVTBL *FuncTable)
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path)
#define NT_SUCCESS(StatCode)
#define InsertHeadList(ListHead, Entry)
#define InitializeListHead(ListHead)
struct _FileName FileName
const DEVVTBL * PxeMount(ULONG DeviceId)
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
const DEVVTBL * IsoMount(ULONG DeviceId)
_In_ ULONG _In_ ULONG _In_ ULONG Length
NTSTRSAFEAPI RtlStringCbCatA(_Inout_updates_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
NTSTRSAFEAPI RtlStringCbCopyA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ NTSTRSAFE_PCSTR pszSrc)
_Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
PULONG MinorVersion OPTIONAL
struct _LIST_ENTRY * Flink
const DEVVTBL * FuncTable
ARC_GET_FILE_INFORMATION GetFileInformation
const DEVVTBL * FileFuncTable
const DEVVTBL * FuncTable
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
_In_ __drv_aliasesMem PSTRING Prefix