27#define SECTORSIZE 2048
28#define TAG_ISO_BUFFER 'BosI'
29#define TAG_ISO_FILE 'FosI'
38 TRACE(
"IsoSearchDirectoryBufferForFile() DirectoryBuffer = 0x%x DirectoryLength = %d FileName = %s\n", DirectoryBuffer, DirectoryLength,
FileName);
49 if (
Record->RecordLength == 0)
55 if (
Offset >= DirectoryLength)
62 else if (
Record->FileIdLength == 1 &&
Record->FileId[0] == 1)
100 PVOID* pDirectoryBuffer)
102 PVOID DirectoryBuffer;
108 TRACE(
"IsoBufferDirectory() DirectoryStartSector = %d DirectoryLength = %d\n", DirectoryStartSector, DirectoryLength);
116 TRACE(
"Trying to allocate (DirectoryLength) %d bytes.\n", DirectoryLength);
118 if (!DirectoryBuffer)
139 *pDirectoryBuffer = DirectoryBuffer;
155 ULONG NumberOfPathParts;
157 PVOID DirectoryBuffer;
158 ULONG DirectorySector;
159 ULONG DirectoryLength;
193 for (
i=0;
i<NumberOfPathParts;
i++)
230 if ((
i+1) < NumberOfPathParts)
233 DirectoryLength = IsoFileInfo.
FileSize;
258 TRACE(
"IsoGetFileInformation(%lu) -> FileSize = %lu, FilePointer = 0x%lx\n",
276 TRACE(
"IsoOpen() FileName = %s\n",
Path);
301 ULONG OffsetInSector;
302 ULONG LengthInSector;
303 ULONG NumberOfSectors;
387 *
Count += LengthInSector;
454 TRACE(
"IsoRead() done\n");
503 TRACE(
"Enter IsoMount(%lu)\n", DeviceId);
520 WARN(
"Unrecognized CDROM format\n");
530 TRACE(
"Recognized ISO9660 drive, size %lu MB (%lu sectors)\n",
PRTL_UNICODE_STRING_BUFFER Path
ACPI_SIZE strlen(const char *String)
#define DBG_DEFAULT_CHANNEL(ch)
ARC_STATUS ArcSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode)
ULONG FsGetNumPathParts(PCSTR Path)
ULONG FsGetDeviceId(ULONG FileId)
VOID * FsGetDeviceSpecific(ULONG FileId)
ARC_STATUS ArcRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
VOID FsSetDeviceSpecific(ULONG FileId, VOID *Specific)
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCSTR Path)
FORCEINLINE PVOID FrLdrTempAlloc(_In_ SIZE_T Size, _In_ ULONG Tag)
FORCEINLINE VOID FrLdrTempFree(PVOID Allocation, ULONG Tag)
const DEVVTBL * IsoMount(ULONG DeviceId)
ARC_STATUS IsoOpen(CHAR *Path, OPENMODE OpenMode, ULONG *FileId)
ARC_STATUS IsoRead(ULONG FileId, VOID *Buffer, ULONG N, ULONG *Count)
ARC_STATUS IsoClose(ULONG FileId)
ARC_STATUS IsoSeek(ULONG FileId, LARGE_INTEGER *Position, SEEKMODE SeekMode)
static ARC_STATUS IsoBufferDirectory(ULONG DeviceId, ULONG DirectoryStartSector, ULONG DirectoryLength, PVOID *pDirectoryBuffer)
static BOOLEAN IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectoryLength, PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer)
const DEVVTBL Iso9660FuncTable
static ARC_STATUS IsoLookupFile(PCSTR FileName, ULONG DeviceId, PISO_FILE_INFO IsoFileInfoPointer)
ARC_STATUS IsoGetFileInformation(ULONG FileId, FILEINFORMATION *Information)
#define ROUND_UP(n, align)
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
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
struct _DIR_RECORD * PDIR_RECORD
#define RtlEqualMemory(dst, src, len)
_In_ ULONG _In_ ULONG Offset
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesRead
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
_In_ struct _KBUGCHECK_REASON_CALLBACK_RECORD * Record